Mercurial > pidgin.yaz
annotate libgaim/protocols/qq/Makefile.mingw @ 14404:8ff8f1c897b5
[gaim-migrate @ 17112]
Fixed chat support.
committer: Tailor Script <tailor@pidgin.im>
author | Mark Huetsch <markhuetsch> |
---|---|
date | Fri, 01 Sep 2006 11:03:18 +0000 |
parents | 8793fc8f7064 |
children | 516ef76d6430 |
rev | line source |
---|---|
14192 | 1 # |
2 # Makefile.mingw | |
3 # | |
4 # Description: Makefile for win32 (mingw) version of OpenQ src | |
5 # | |
6 | |
14315
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14293
diff
changeset
|
7 GAIM_TOP := ../../.. |
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14293
diff
changeset
|
8 include $(GAIM_TOP)/libgaim/win32/global.mak |
14192 | 9 |
10 TARGET = openq | |
14315
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14293
diff
changeset
|
11 OPENQ_TOP := .. |
14192 | 12 TYPE = PLUGIN |
13 OPENQ_VERSION := $(shell cat $(OPENQ_TOP)/VERSION) | |
14315
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14293
diff
changeset
|
14 DEFINES += -DOPENQ_VERSION=\"$(OPENQ_VERSION)\" |
14192 | 15 |
14293
82373bb6a47a
[gaim-migrate @ 16983]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
16 # Static or Plugin... |
14192 | 17 ifeq ($(TYPE),STATIC) |
18 DEFINES += -DSTATIC | |
19 DLL_INSTALL_DIR = $(GAIM_INSTALL_DIR) | |
20 else | |
21 ifeq ($(TYPE),PLUGIN) | |
14315
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14293
diff
changeset
|
22 DLL_INSTALL_DIR = $(GAIM_INSTALL_PLUGINS_DIR) |
14192 | 23 endif |
24 endif | |
25 | |
26 ## | |
27 ## INCLUDE PATHS | |
28 ## | |
29 INCLUDE_PATHS += \ | |
30 -I$(OPENQ_ROOT) \ | |
31 -I$(GTK_TOP)/include \ | |
32 -I$(GTK_TOP)/include/glib-2.0 \ | |
33 -I$(GTK_TOP)/lib/glib-2.0/include \ | |
14315
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14293
diff
changeset
|
34 -I$(GAIM_LIB_TOP) \ |
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14293
diff
changeset
|
35 -I$(GAIM_LIB_TOP)/win32 \ |
14192 | 36 -I$(GAIM_TOP) |
37 | |
38 LIB_PATHS = \ | |
39 -L$(GTK_TOP)/lib \ | |
14315
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14293
diff
changeset
|
40 -L$(GAIM_LIB_TOP) |
14192 | 41 |
42 ## | |
43 ## SOURCES, OBJECTS | |
44 ## | |
45 C_SRC = \ | |
46 buddy_info.c \ | |
47 buddy_list.c \ | |
48 buddy_opt.c \ | |
49 buddy_status.c \ | |
50 char_conv.c \ | |
51 crypt.c \ | |
52 file_trans.c \ | |
53 group.c \ | |
54 group_conv.c \ | |
55 group_find.c \ | |
56 group_free.c \ | |
14404 | 57 group_internal.c \ |
14192 | 58 group_im.c \ |
59 group_info.c \ | |
60 group_join.c \ | |
61 group_misc.c \ | |
62 group_network.c \ | |
63 group_opt.c \ | |
64 group_search.c \ | |
65 header_info.c \ | |
66 im.c \ | |
67 keep_alive.c \ | |
68 login_logout.c \ | |
69 packet_parse.c \ | |
70 qq.c \ | |
71 qq_proxy.c \ | |
72 recv_core.c \ | |
73 send_core.c \ | |
74 send_file.c \ | |
75 sendqueue.c \ | |
76 show.c \ | |
77 sys_msg.c \ | |
78 udp_proxy_s5.c \ | |
79 utils.c | |
80 | |
81 OBJECTS = $(C_SRC:%.c=%.o) | |
82 | |
83 ## | |
84 ## LIBRARIES | |
85 ## | |
86 LIBS = \ | |
87 -lglib-2.0 \ | |
88 -lws2_32 \ | |
89 -lintl \ | |
90 -lgaim | |
91 | |
14315
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14293
diff
changeset
|
92 include $(GAIM_COMMON_RULES) |
14192 | 93 |
94 ## | |
95 ## TARGET DEFINITIONS | |
96 ## | |
97 .PHONY: all clean | |
98 | |
99 all: $(TARGET).dll | |
100 | |
14315
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14293
diff
changeset
|
101 install: all $(DLL_INSTALL_DIR) |
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14293
diff
changeset
|
102 cp $(TARGET).dll $(DLL_INSTALL_DIR) |
14192 | 103 |
14315
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14293
diff
changeset
|
104 $(OBJECTS): $(GAIM_CONFIG_H) |
14192 | 105 |
14315
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14293
diff
changeset
|
106 $(TARGET).dll: $(GAIM_LIBGAIM_DLL).a $(OBJECTS) |
14192 | 107 $(CC) -shared $(OBJECTS) $(LIB_PATHS) $(LIBS) $(DLL_LD_FLAGS) -o $(TARGET).dll |
108 | |
109 ## | |
110 ## CLEAN RULES | |
111 ## | |
112 clean: | |
14315
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14293
diff
changeset
|
113 rm -rf $(OBJECTS) |
14192 | 114 rm -rf $(TARGET).dll |
115 | |
14315
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14293
diff
changeset
|
116 include $(GAIM_COMMON_TARGETS) |