Mercurial > pidgin.yaz
annotate src/protocols/msn/Makefile.mingw @ 8808:bbd8cdaf0ad5
[gaim-migrate @ 9570]
A massive patch by shx to reorganize MSN some more and add command
processor support. This allows us to do cool things like produce more
detailed error messages. For example, the Invalid Username dialog now
shows the username of the invalid user.
I modified the aforementioned dialog so it'll look a little nicer looking,
and also mention the account this happened on. It also removes the user
from your blist, as there's no point to keeping the user on there.
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Sun, 25 Apr 2004 22:02:06 +0000 |
parents | fc27237783ee |
children | 502707ca1836 |
rev | line source |
---|---|
3630 | 1 # |
2 # Makefile.mingw | |
3 # | |
4 # Description: Makefile for win32 (mingw) version of libmsn | |
5 # | |
6 | |
7 # | |
8 # PATHS | |
9 # | |
10 | |
11 INCLUDE_DIR := . | |
12 GTK_TOP := ../../../../win32-dev/gtk_2_0 | |
13 GAIM_TOP := ../../.. | |
14 MSN_ROOT := . | |
15 GAIM_INSTALL_DIR := $(GAIM_TOP)/win32-install-dir | |
16 | |
17 ## | |
18 ## VARIABLE DEFINITIONS | |
19 ## | |
20 | |
21 TARGET = libmsn | |
22 | |
23 # Compiler Options | |
24 | |
3718
fd3880c03f0d
[gaim-migrate @ 3851]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3630
diff
changeset
|
25 CFLAGS = |
3630 | 26 |
3718
fd3880c03f0d
[gaim-migrate @ 3851]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3630
diff
changeset
|
27 DEFINES = |
3630 | 28 |
29 # Static or Plugin... | |
30 ifeq ($(TYPE),STATIC) | |
31 DEFINES += -DSTATIC | |
32 DLL_INSTALL_DIR = $(GAIM_INSTALL_DIR) | |
33 else | |
34 ifeq ($(TYPE),PLUGIN) | |
35 DLL_INSTALL_DIR = $(GAIM_INSTALL_DIR)/plugins | |
36 endif | |
37 endif | |
38 | |
39 | |
40 ## | |
41 ## INCLUDE MAKEFILES | |
42 ## | |
43 | |
3718
fd3880c03f0d
[gaim-migrate @ 3851]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3630
diff
changeset
|
44 include $(GAIM_TOP)/src/win32/global.mak |
3630 | 45 |
46 ## | |
47 ## INCLUDE PATHS | |
48 ## | |
49 | |
50 INCLUDE_PATHS += -I$(MSN_ROOT) \ | |
51 -I$(GTK_TOP)/include \ | |
52 -I$(GTK_TOP)/include/gtk-2.0 \ | |
53 -I$(GTK_TOP)/include/glib-2.0 \ | |
54 -I$(GTK_TOP)/include/pango-1.0 \ | |
55 -I$(GTK_TOP)/include/atk-1.0 \ | |
56 -I$(GTK_TOP)/lib/glib-2.0/include \ | |
57 -I$(GTK_TOP)/lib/gtk-2.0/include \ | |
58 -I$(GAIM_TOP)/src \ | |
59 -I$(GAIM_TOP)/src/win32 \ | |
60 -I$(GAIM_TOP) | |
61 | |
62 | |
63 LIB_PATHS = -L$(GTK_TOP)/lib \ | |
64 -L$(GAIM_TOP)/src | |
65 | |
66 | |
67 ## | |
68 ## SOURCES, OBJECTS | |
69 ## | |
70 | |
8808
bbd8cdaf0ad5
[gaim-migrate @ 9570]
Christian Hammond <chipx86@chipx86.com>
parents:
8583
diff
changeset
|
71 C_SRC = cmdproc.c \ |
bbd8cdaf0ad5
[gaim-migrate @ 9570]
Christian Hammond <chipx86@chipx86.com>
parents:
8583
diff
changeset
|
72 command.c \ |
bbd8cdaf0ad5
[gaim-migrate @ 9570]
Christian Hammond <chipx86@chipx86.com>
parents:
8583
diff
changeset
|
73 error.c \ |
5746
2c04c55222b7
[gaim-migrate @ 6171]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5371
diff
changeset
|
74 group.c \ |
8808
bbd8cdaf0ad5
[gaim-migrate @ 9570]
Christian Hammond <chipx86@chipx86.com>
parents:
8583
diff
changeset
|
75 history.c \ |
7302
33bbe8e9714f
[gaim-migrate @ 7886]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
6853
diff
changeset
|
76 httpmethod.c \ |
4546
a951bb590857
[gaim-migrate @ 4825]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3718
diff
changeset
|
77 msg.c \ |
a951bb590857
[gaim-migrate @ 4825]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3718
diff
changeset
|
78 msn.c \ |
6795
40ba19133882
[gaim-migrate @ 7334]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5932
diff
changeset
|
79 msnobject.c \ |
40ba19133882
[gaim-migrate @ 7334]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5932
diff
changeset
|
80 msnslp.c \ |
5312
89948fedf782
[gaim-migrate @ 5684]
Christian Hammond <chipx86@chipx86.com>
parents:
4546
diff
changeset
|
81 notification.c \ |
8171
d0ba2f7b40e7
[gaim-migrate @ 8884]
Christian Hammond <chipx86@chipx86.com>
parents:
7302
diff
changeset
|
82 nexus.c \ |
5371
daaeaf4696a1
[gaim-migrate @ 5747]
Christian Hammond <chipx86@chipx86.com>
parents:
5312
diff
changeset
|
83 page.c \ |
5312
89948fedf782
[gaim-migrate @ 5684]
Christian Hammond <chipx86@chipx86.com>
parents:
4546
diff
changeset
|
84 servconn.c \ |
89948fedf782
[gaim-migrate @ 5684]
Christian Hammond <chipx86@chipx86.com>
parents:
4546
diff
changeset
|
85 session.c \ |
5371
daaeaf4696a1
[gaim-migrate @ 5747]
Christian Hammond <chipx86@chipx86.com>
parents:
5312
diff
changeset
|
86 state.c \ |
5312
89948fedf782
[gaim-migrate @ 5684]
Christian Hammond <chipx86@chipx86.com>
parents:
4546
diff
changeset
|
87 switchboard.c \ |
8808
bbd8cdaf0ad5
[gaim-migrate @ 9570]
Christian Hammond <chipx86@chipx86.com>
parents:
8583
diff
changeset
|
88 table.c \ |
bbd8cdaf0ad5
[gaim-migrate @ 9570]
Christian Hammond <chipx86@chipx86.com>
parents:
8583
diff
changeset
|
89 transaction.c \ |
5312
89948fedf782
[gaim-migrate @ 5684]
Christian Hammond <chipx86@chipx86.com>
parents:
4546
diff
changeset
|
90 user.c \ |
89948fedf782
[gaim-migrate @ 5684]
Christian Hammond <chipx86@chipx86.com>
parents:
4546
diff
changeset
|
91 utils.c |
3630 | 92 |
93 | |
94 OBJECTS = $(C_SRC:%.c=%.o) | |
95 | |
96 | |
97 ## | |
98 ## LIBRARIES | |
99 ## | |
100 | |
5932
bb7723f0b4b9
[gaim-migrate @ 6372]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5746
diff
changeset
|
101 LIBS = -lgtk-win32-2.0 \ |
bb7723f0b4b9
[gaim-migrate @ 6372]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5746
diff
changeset
|
102 -lglib-2.0 \ |
bb7723f0b4b9
[gaim-migrate @ 6372]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5746
diff
changeset
|
103 -lgdk-win32-2.0 \ |
bb7723f0b4b9
[gaim-migrate @ 6372]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5746
diff
changeset
|
104 -lgmodule-2.0 \ |
bb7723f0b4b9
[gaim-migrate @ 6372]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5746
diff
changeset
|
105 -lgobject-2.0 \ |
bb7723f0b4b9
[gaim-migrate @ 6372]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5746
diff
changeset
|
106 -lws2_32 \ |
bb7723f0b4b9
[gaim-migrate @ 6372]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5746
diff
changeset
|
107 -lintl \ |
bb7723f0b4b9
[gaim-migrate @ 6372]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5746
diff
changeset
|
108 -lgaim |
3630 | 109 |
110 ## | |
111 ## RULES | |
112 ## | |
113 | |
114 # How to make a C file | |
115 | |
116 %.o: %.c | |
117 $(CC) $(CFLAGS) $(DEFINES) $(INCLUDE_PATHS) -o $@ -c $< | |
118 | |
119 ## | |
120 ## TARGET DEFINITIONS | |
121 ## | |
122 | |
123 .PHONY: all clean | |
124 | |
125 all: $(TARGET).dll | |
126 | |
127 install: | |
128 cp $(MSN_ROOT)/$(TARGET).dll $(DLL_INSTALL_DIR) | |
129 | |
130 | |
131 ## | |
132 ## BUILD Dependencies | |
133 ## | |
134 | |
135 $(GAIM_TOP)/src/gaim.lib: | |
136 $(MAKE) -C $(GAIM_TOP)/src -f Makefile.mingw gaim.lib | |
137 | |
138 ## | |
139 ## BUILD DLL | |
140 ## | |
141 | |
5932
bb7723f0b4b9
[gaim-migrate @ 6372]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5746
diff
changeset
|
142 $(TARGET).dll: $(OBJECTS) $(GAIM_TOP)/src/gaim.lib |
bb7723f0b4b9
[gaim-migrate @ 6372]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5746
diff
changeset
|
143 $(CC) -shared $(OBJECTS) $(LIB_PATHS) $(LIBS) $(DLL_LD_FLAGS) -Wl,--out-implib,$(TARGET).lib -o $(TARGET).dll |
3630 | 144 |
145 | |
146 ## | |
147 ## CLEAN RULES | |
148 ## | |
149 | |
150 clean: | |
151 rm -rf *.o | |
152 rm -rf $(TARGET).dll | |
153 rm -rf $(TARGET).lib |