Mercurial > pidgin.yaz
annotate libgaim/protocols/qq/Makefile.mingw @ 14293:82373bb6a47a
[gaim-migrate @ 16983]
Restructure updates for some makefiles that are not used by default and may not fully work.
Remove gtk import stuff from oscar Makefile.mingw
committer: Tailor Script <tailor@pidgin.im>
author | Daniel Atallah <daniel.atallah@gmail.com> |
---|---|
date | Tue, 22 Aug 2006 18:10:43 +0000 |
parents | 60b1bc8dbf37 |
children | 8793fc8f7064 |
rev | line source |
---|---|
14192 | 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 := ../../.. | |
14293
82373bb6a47a
[gaim-migrate @ 16983]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
15 LIBGAIM_TOP := ../.. |
14192 | 16 OPENQ_ROOT := . |
17 GAIM_INSTALL_DIR := $(GAIM_TOP)/win32-install-dir | |
18 | |
19 ## | |
20 ## VARIABLE DEFINITIONS | |
21 ## | |
22 | |
23 TARGET = openq | |
24 | |
25 TYPE = PLUGIN | |
26 | |
27 OPENQ_VERSION := $(shell cat $(OPENQ_TOP)/VERSION) | |
28 | |
29 # Compiler Options | |
30 | |
31 CFLAGS = | |
32 | |
33 DEFINES = -DOPENQ_VERSION=\"$(OPENQ_VERSION)\" | |
34 | |
14293
82373bb6a47a
[gaim-migrate @ 16983]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
35 # Static or Plugin... |
14192 | 36 ifeq ($(TYPE),STATIC) |
37 DEFINES += -DSTATIC | |
38 DLL_INSTALL_DIR = $(GAIM_INSTALL_DIR) | |
39 else | |
40 ifeq ($(TYPE),PLUGIN) | |
41 DLL_INSTALL_DIR = $(GAIM_INSTALL_DIR)/plugins | |
42 endif | |
43 endif | |
44 | |
45 | |
46 ## | |
47 ## INCLUDE MAKEFILES | |
48 ## | |
49 | |
14293
82373bb6a47a
[gaim-migrate @ 16983]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
50 include $(LIBGAIM_TOP)/win32/global.mak |
14192 | 51 |
52 ## | |
53 ## INCLUDE PATHS | |
54 ## | |
55 | |
56 INCLUDE_PATHS += \ | |
57 -I$(OPENQ_ROOT) \ | |
58 -I$(GTK_TOP)/include \ | |
59 -I$(GTK_TOP)/include/glib-2.0 \ | |
60 -I$(GTK_TOP)/lib/glib-2.0/include \ | |
14293
82373bb6a47a
[gaim-migrate @ 16983]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
61 -I$(LIBGAIM_TOP) \ |
82373bb6a47a
[gaim-migrate @ 16983]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
62 -I$(LIBGAIM_TOP)/win32 \ |
14192 | 63 -I$(GAIM_TOP) |
64 | |
65 LIB_PATHS = \ | |
66 -L$(GTK_TOP)/lib \ | |
14293
82373bb6a47a
[gaim-migrate @ 16983]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
67 -L$(LIBGAIM_TOP) |
14192 | 68 |
69 ## | |
70 ## SOURCES, OBJECTS | |
71 ## | |
72 | |
73 C_SRC = \ | |
74 buddy_info.c \ | |
75 buddy_list.c \ | |
76 buddy_opt.c \ | |
77 buddy_status.c \ | |
78 char_conv.c \ | |
79 crypt.c \ | |
80 file_trans.c \ | |
81 group.c \ | |
82 group_conv.c \ | |
83 group_find.c \ | |
84 group_free.c \ | |
85 group_hash.c \ | |
86 group_im.c \ | |
87 group_info.c \ | |
88 group_join.c \ | |
89 group_misc.c \ | |
90 group_network.c \ | |
91 group_opt.c \ | |
92 group_search.c \ | |
93 header_info.c \ | |
94 im.c \ | |
95 keep_alive.c \ | |
96 login_logout.c \ | |
97 packet_parse.c \ | |
98 qq.c \ | |
99 qq_proxy.c \ | |
100 recv_core.c \ | |
101 send_core.c \ | |
102 send_file.c \ | |
103 sendqueue.c \ | |
104 show.c \ | |
105 sys_msg.c \ | |
106 udp_proxy_s5.c \ | |
107 utils.c | |
108 | |
109 OBJECTS = $(C_SRC:%.c=%.o) | |
110 | |
111 ## | |
112 ## LIBRARIES | |
113 ## | |
114 | |
115 LIBS = \ | |
116 -lglib-2.0 \ | |
117 -lws2_32 \ | |
118 -lintl \ | |
119 -lgaim | |
120 | |
121 ## | |
122 ## RULES | |
123 ## | |
124 | |
125 # How to make a C file | |
126 | |
127 %.o: %.c | |
128 $(CC) $(CFLAGS) $(DEFINES) $(INCLUDE_PATHS) -o $@ -c $< | |
129 | |
130 ## | |
131 ## TARGET DEFINITIONS | |
132 ## | |
133 | |
134 .PHONY: all clean | |
135 | |
136 all: $(TARGET).dll | |
137 | |
138 install: | |
139 mkdir -p $(DLL_INSTALL_DIR) | |
140 cp $(OPENQ_ROOT)/$(TARGET).dll $(DLL_INSTALL_DIR) | |
141 | |
142 | |
143 ## | |
144 ## BUILD Dependencies | |
145 ## | |
146 | |
14293
82373bb6a47a
[gaim-migrate @ 16983]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
147 $(LIBGAIM_TOP)/libgaim.dll.a: |
82373bb6a47a
[gaim-migrate @ 16983]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
148 $(MAKE) -C $(LIBGAIM_TOP) -f Makefile.mingw libgaim.dll.a |
14192 | 149 |
150 ## | |
151 ## BUILD DLL | |
152 ## | |
153 | |
14293
82373bb6a47a
[gaim-migrate @ 16983]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
154 $(TARGET).dll: $(OBJECTS) $(LIBGAIM_TOP)/libgaim.dll.a |
14192 | 155 $(CC) -shared $(OBJECTS) $(LIB_PATHS) $(LIBS) $(DLL_LD_FLAGS) -o $(TARGET).dll |
156 | |
157 ## | |
158 ## CLEAN RULES | |
159 ## | |
160 | |
161 clean: | |
162 rm -rf *.o | |
163 rm -rf $(TARGET).dll | |
164 |