Mercurial > pidgin
comparison src/protocols/qq/Makefile.mingw @ 13870:983fd420e86b
[gaim-migrate @ 16340]
Performed minor cleanup of the OpenQ codebase and patched it into the Gaim trunk as a prpl, providing basic QQ functionality.
committer: Tailor Script <tailor@pidgin.im>
author | Mark Huetsch <markhuetsch> |
---|---|
date | Mon, 26 Jun 2006 02:58:54 +0000 |
parents | |
children | 16102b9c5c4a |
comparison
equal
deleted
inserted
replaced
13869:5642f4658b59 | 13870:983fd420e86b |
---|---|
1 # | |
2 # Makefile.mingw | |
3 # | |
4 # Description: Makefile for win32 (mingw) version of OpenQ src | |
5 # | |
6 | |
7 # | |
8 # PATHS | |
9 # | |
10 | |
11 INCLUDE_DIR := . | |
12 OPENQ_TOP := ../ | |
13 GTK_TOP := ../../../../win32-dev/gtk_2_0 | |
14 GAIM_TOP := ../../.. | |
15 OPENQ_ROOT := . | |
16 GAIM_INSTALL_DIR := $(GAIM_TOP)/win32-install-dir | |
17 | |
18 ## | |
19 ## VARIABLE DEFINITIONS | |
20 ## | |
21 | |
22 TARGET = openq | |
23 | |
24 TYPE = PLUGIN | |
25 | |
26 OPENQ_VERSION := $(shell cat $(OPENQ_TOP)/VERSION) | |
27 | |
28 # Compiler Options | |
29 | |
30 CFLAGS = | |
31 | |
32 DEFINES = -DOPENQ_VERSION=\"$(OPENQ_VERSION)\" | |
33 | |
34 # Static or Plugin... | |
35 ifeq ($(TYPE),STATIC) | |
36 DEFINES += -DSTATIC | |
37 DLL_INSTALL_DIR = $(GAIM_INSTALL_DIR) | |
38 else | |
39 ifeq ($(TYPE),PLUGIN) | |
40 DLL_INSTALL_DIR = $(GAIM_INSTALL_DIR)/plugins | |
41 endif | |
42 endif | |
43 | |
44 | |
45 ## | |
46 ## INCLUDE MAKEFILES | |
47 ## | |
48 | |
49 include $(GAIM_TOP)/src/win32/global.mak | |
50 | |
51 ## | |
52 ## INCLUDE PATHS | |
53 ## | |
54 | |
55 INCLUDE_PATHS += \ | |
56 -I$(OPENQ_ROOT) \ | |
57 -I$(GTK_TOP)/include \ | |
58 -I$(GTK_TOP)/include/gtk-2.0 \ | |
59 -I$(GTK_TOP)/include/glib-2.0 \ | |
60 -I$(GTK_TOP)/include/pango-1.0 \ | |
61 -I$(GTK_TOP)/include/atk-1.0 \ | |
62 -I$(GTK_TOP)/lib/glib-2.0/include \ | |
63 -I$(GTK_TOP)/lib/gtk-2.0/include \ | |
64 -I$(GAIM_TOP)/src \ | |
65 -I$(GAIM_TOP)/src/win32 \ | |
66 -I$(GAIM_TOP) | |
67 | |
68 LIB_PATHS = \ | |
69 -L$(GTK_TOP)/lib \ | |
70 -L$(GAIM_TOP)/src | |
71 | |
72 ## | |
73 ## SOURCES, OBJECTS | |
74 ## | |
75 | |
76 C_SRC = \ | |
77 buddy_info.c \ | |
78 buddy_list.c \ | |
79 buddy_opt.c \ | |
80 buddy_status.c \ | |
81 char_conv.c \ | |
82 crypt.c \ | |
83 file_trans.c \ | |
84 group.c \ | |
85 group_admindlg.c \ | |
86 group_conv.c \ | |
87 group_find.c \ | |
88 group_free.c \ | |
89 group_hash.c \ | |
90 group_im.c \ | |
91 group_info.c \ | |
92 group_join.c \ | |
93 group_misc.c \ | |
94 group_network.c \ | |
95 group_opt.c \ | |
96 group_search.c \ | |
97 header_info.c \ | |
98 im.c \ | |
99 infodlg.c \ | |
100 ip_location.c \ | |
101 keep_alive.c \ | |
102 login_logout.c \ | |
103 packet_parse.c \ | |
104 qq.c \ | |
105 qq_proxy.c \ | |
106 recv_core.c \ | |
107 send_core.c \ | |
108 send_file.c \ | |
109 sendqueue.c \ | |
110 show.c \ | |
111 sys_msg.c \ | |
112 udp_proxy_s5.c \ | |
113 utils.c | |
114 | |
115 OBJECTS = $(C_SRC:%.c=%.o) | |
116 | |
117 ## | |
118 ## LIBRARIES | |
119 ## | |
120 | |
121 LIBS = \ | |
122 -lgtk-win32-2.0 \ | |
123 -lglib-2.0 \ | |
124 -lgdk-win32-2.0 \ | |
125 -lgdk_pixbuf-2.0 \ | |
126 -lgmodule-2.0 \ | |
127 -lgobject-2.0 \ | |
128 -lws2_32 \ | |
129 -lintl \ | |
130 -lgaim | |
131 | |
132 ## | |
133 ## RULES | |
134 ## | |
135 | |
136 # How to make a C file | |
137 | |
138 %.o: %.c | |
139 $(CC) $(CFLAGS) $(DEFINES) $(INCLUDE_PATHS) -o $@ -c $< | |
140 | |
141 ## | |
142 ## TARGET DEFINITIONS | |
143 ## | |
144 | |
145 .PHONY: all clean | |
146 | |
147 all: $(TARGET).dll | |
148 | |
149 install: | |
150 mkdir -p $(DLL_INSTALL_DIR) | |
151 cp $(OPENQ_ROOT)/$(TARGET).dll $(DLL_INSTALL_DIR) | |
152 | |
153 | |
154 ## | |
155 ## BUILD Dependencies | |
156 ## | |
157 | |
158 $(GAIM_TOP)/src/gaim.lib: | |
159 $(MAKE) -C $(GAIM_TOP)/src -f Makefile.mingw gaim.lib | |
160 | |
161 ## | |
162 ## BUILD DLL | |
163 ## | |
164 | |
165 $(TARGET).dll: $(OBJECTS) $(GAIM_TOP)/src/gaim.lib | |
166 $(CC) -shared $(OBJECTS) $(LIB_PATHS) $(LIBS) $(DLL_LD_FLAGS) -o $(TARGET).dll | |
167 | |
168 ## | |
169 ## CLEAN RULES | |
170 ## | |
171 | |
172 clean: | |
173 rm -rf *.o | |
174 rm -rf $(TARGET).dll | |
175 rm -rf $(TARGET).lib | |
176 |