Mercurial > pidgin
annotate src/protocols/msn/Makefile.mingw @ 9262:572e4658492c
[gaim-migrate @ 10061]
Patch by Justin Wood. He says:
"User icon would set wrong status There is a small window, that if you set
a user icon, you'll set the wrong status for the next update.
Thought this over, and it shouldn't have any nasty side effects.. but there
are potential problems, if a status change message is lost. Things should
be ok though, that said"
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Fri, 11 Jun 2004 00:16:36 +0000 |
parents | 551599e6a6fa |
children | 86a6d78b070b |
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 \ |
9202
d4e4b73eb2c6
[gaim-migrate @ 9997]
Christian Hammond <chipx86@chipx86.com>
parents:
9201
diff
changeset
|
73 directconn.c \ |
8808
bbd8cdaf0ad5
[gaim-migrate @ 9570]
Christian Hammond <chipx86@chipx86.com>
parents:
8583
diff
changeset
|
74 error.c \ |
5746
2c04c55222b7
[gaim-migrate @ 6171]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5371
diff
changeset
|
75 group.c \ |
8808
bbd8cdaf0ad5
[gaim-migrate @ 9570]
Christian Hammond <chipx86@chipx86.com>
parents:
8583
diff
changeset
|
76 history.c \ |
7302
33bbe8e9714f
[gaim-migrate @ 7886]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
6853
diff
changeset
|
77 httpmethod.c \ |
4546
a951bb590857
[gaim-migrate @ 4825]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3718
diff
changeset
|
78 msg.c \ |
a951bb590857
[gaim-migrate @ 4825]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3718
diff
changeset
|
79 msn.c \ |
9193
502707ca1836
[gaim-migrate @ 9988]
Christian Hammond <chipx86@chipx86.com>
parents:
8808
diff
changeset
|
80 nexus.c \ |
5312
89948fedf782
[gaim-migrate @ 5684]
Christian Hammond <chipx86@chipx86.com>
parents:
4546
diff
changeset
|
81 notification.c \ |
9193
502707ca1836
[gaim-migrate @ 9988]
Christian Hammond <chipx86@chipx86.com>
parents:
8808
diff
changeset
|
82 object.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 \ |
9193
502707ca1836
[gaim-migrate @ 9988]
Christian Hammond <chipx86@chipx86.com>
parents:
8808
diff
changeset
|
86 slp.c \ |
502707ca1836
[gaim-migrate @ 9988]
Christian Hammond <chipx86@chipx86.com>
parents:
8808
diff
changeset
|
87 slpcall.c \ |
502707ca1836
[gaim-migrate @ 9988]
Christian Hammond <chipx86@chipx86.com>
parents:
8808
diff
changeset
|
88 slplink.c \ |
502707ca1836
[gaim-migrate @ 9988]
Christian Hammond <chipx86@chipx86.com>
parents:
8808
diff
changeset
|
89 slpmsg.c \ |
502707ca1836
[gaim-migrate @ 9988]
Christian Hammond <chipx86@chipx86.com>
parents:
8808
diff
changeset
|
90 slpsession.c \ |
5371
daaeaf4696a1
[gaim-migrate @ 5747]
Christian Hammond <chipx86@chipx86.com>
parents:
5312
diff
changeset
|
91 state.c \ |
5312
89948fedf782
[gaim-migrate @ 5684]
Christian Hammond <chipx86@chipx86.com>
parents:
4546
diff
changeset
|
92 switchboard.c \ |
9203
551599e6a6fa
[gaim-migrate @ 9998]
Christian Hammond <chipx86@chipx86.com>
parents:
9202
diff
changeset
|
93 sync.c \ |
8808
bbd8cdaf0ad5
[gaim-migrate @ 9570]
Christian Hammond <chipx86@chipx86.com>
parents:
8583
diff
changeset
|
94 table.c \ |
bbd8cdaf0ad5
[gaim-migrate @ 9570]
Christian Hammond <chipx86@chipx86.com>
parents:
8583
diff
changeset
|
95 transaction.c \ |
5312
89948fedf782
[gaim-migrate @ 5684]
Christian Hammond <chipx86@chipx86.com>
parents:
4546
diff
changeset
|
96 user.c \ |
9193
502707ca1836
[gaim-migrate @ 9988]
Christian Hammond <chipx86@chipx86.com>
parents:
8808
diff
changeset
|
97 userlist.c \ |
5312
89948fedf782
[gaim-migrate @ 5684]
Christian Hammond <chipx86@chipx86.com>
parents:
4546
diff
changeset
|
98 utils.c |
3630 | 99 |
100 | |
101 OBJECTS = $(C_SRC:%.c=%.o) | |
102 | |
103 | |
104 ## | |
105 ## LIBRARIES | |
106 ## | |
107 | |
5932
bb7723f0b4b9
[gaim-migrate @ 6372]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5746
diff
changeset
|
108 LIBS = -lgtk-win32-2.0 \ |
bb7723f0b4b9
[gaim-migrate @ 6372]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5746
diff
changeset
|
109 -lglib-2.0 \ |
bb7723f0b4b9
[gaim-migrate @ 6372]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5746
diff
changeset
|
110 -lgdk-win32-2.0 \ |
bb7723f0b4b9
[gaim-migrate @ 6372]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5746
diff
changeset
|
111 -lgmodule-2.0 \ |
bb7723f0b4b9
[gaim-migrate @ 6372]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5746
diff
changeset
|
112 -lgobject-2.0 \ |
bb7723f0b4b9
[gaim-migrate @ 6372]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5746
diff
changeset
|
113 -lws2_32 \ |
bb7723f0b4b9
[gaim-migrate @ 6372]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5746
diff
changeset
|
114 -lintl \ |
bb7723f0b4b9
[gaim-migrate @ 6372]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5746
diff
changeset
|
115 -lgaim |
3630 | 116 |
117 ## | |
118 ## RULES | |
119 ## | |
120 | |
121 # How to make a C file | |
122 | |
123 %.o: %.c | |
124 $(CC) $(CFLAGS) $(DEFINES) $(INCLUDE_PATHS) -o $@ -c $< | |
125 | |
126 ## | |
127 ## TARGET DEFINITIONS | |
128 ## | |
129 | |
130 .PHONY: all clean | |
131 | |
132 all: $(TARGET).dll | |
133 | |
134 install: | |
135 cp $(MSN_ROOT)/$(TARGET).dll $(DLL_INSTALL_DIR) | |
136 | |
137 | |
138 ## | |
139 ## BUILD Dependencies | |
140 ## | |
141 | |
142 $(GAIM_TOP)/src/gaim.lib: | |
143 $(MAKE) -C $(GAIM_TOP)/src -f Makefile.mingw gaim.lib | |
144 | |
145 ## | |
146 ## BUILD DLL | |
147 ## | |
148 | |
5932
bb7723f0b4b9
[gaim-migrate @ 6372]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5746
diff
changeset
|
149 $(TARGET).dll: $(OBJECTS) $(GAIM_TOP)/src/gaim.lib |
bb7723f0b4b9
[gaim-migrate @ 6372]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5746
diff
changeset
|
150 $(CC) -shared $(OBJECTS) $(LIB_PATHS) $(LIBS) $(DLL_LD_FLAGS) -Wl,--out-implib,$(TARGET).lib -o $(TARGET).dll |
3630 | 151 |
152 | |
153 ## | |
154 ## CLEAN RULES | |
155 ## | |
156 | |
157 clean: | |
158 rm -rf *.o | |
159 rm -rf $(TARGET).dll | |
160 rm -rf $(TARGET).lib |