Mercurial > pidgin.yaz
annotate libgaim/protocols/oscar/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 | a7590884324d |
children | 8793fc8f7064 |
rev | line source |
---|---|
14192 | 1 # |
2 # Makefile.mingw | |
3 # | |
4 # Description: Makefile for win32 (mingw) version of liboscar | |
5 # | |
6 | |
7 # | |
8 # PATHS | |
9 # | |
10 | |
11 OSCAR_ROOT := . | |
12 GTK_TOP := ../../../../win32-dev/gtk_2_0 | |
13 GAIM_TOP := ../../.. | |
14232
a7590884324d
[gaim-migrate @ 16914]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
14 LIBGAIM_TOP := ../.. |
14192 | 15 GAIM_INSTALL_DIR := $(GAIM_TOP)/win32-install-dir |
16 | |
17 ## | |
18 ## VARIABLE DEFINITIONS | |
19 ## | |
20 | |
21 TARGET = liboscar | |
22 | |
23 # Compiler Options | |
24 | |
25 CFLAGS = | |
26 | |
27 DEFINES = | |
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 | |
14232
a7590884324d
[gaim-migrate @ 16914]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
44 include $(LIBGAIM_TOP)/win32/global.mak |
14192 | 45 |
46 ## | |
47 ## INCLUDE PATHS | |
48 ## | |
49 | |
50 INCLUDE_PATHS += -I$(OSCAR_ROOT) \ | |
51 -I$(GTK_TOP)/include \ | |
52 -I$(GTK_TOP)/include/glib-2.0 \ | |
53 -I$(GTK_TOP)/lib/glib-2.0/include \ | |
14232
a7590884324d
[gaim-migrate @ 16914]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
54 -I$(LIBGAIM_TOP) \ |
a7590884324d
[gaim-migrate @ 16914]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
55 -I$(LIBGAIM_TOP)/win32 \ |
14192 | 56 -I$(GAIM_TOP) |
57 | |
58 | |
59 LIB_PATHS = -L$(GTK_TOP)/lib \ | |
14232
a7590884324d
[gaim-migrate @ 16914]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
60 -L$(LIBGAIM_TOP) |
14192 | 61 |
62 | |
63 ## | |
64 ## SOURCES, OBJECTS | |
65 ## | |
66 | |
67 C_SRC = \ | |
14232
a7590884324d
[gaim-migrate @ 16914]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
68 bstream.c \ |
14192 | 69 family_admin.c \ |
70 family_advert.c \ | |
71 family_alert.c \ | |
72 family_auth.c \ | |
73 family_bart.c \ | |
74 family_bos.c \ | |
75 family_buddy.c \ | |
76 family_chat.c \ | |
77 family_chatnav.c \ | |
78 family_icq.c \ | |
79 family_icbm.c \ | |
80 family_invite.c \ | |
81 family_locate.c \ | |
82 family_odir.c \ | |
83 family_popup.c \ | |
84 family_oservice.c \ | |
85 family_feedbag.c \ | |
86 family_stats.c \ | |
87 family_translate.c \ | |
88 family_userlookup.c \ | |
89 flap_connection.c \ | |
14232
a7590884324d
[gaim-migrate @ 16914]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
90 misc.c \ |
a7590884324d
[gaim-migrate @ 16914]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
91 msgcookie.c \ |
a7590884324d
[gaim-migrate @ 16914]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
92 odc.c \ |
a7590884324d
[gaim-migrate @ 16914]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
93 oft.c \ |
a7590884324d
[gaim-migrate @ 16914]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
94 oscar.c \ |
14192 | 95 oscar_data.c \ |
14232
a7590884324d
[gaim-migrate @ 16914]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
96 peer.c \ |
14192 | 97 peer_proxy.c \ |
98 rxhandlers.c \ | |
14232
a7590884324d
[gaim-migrate @ 16914]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
99 snac.c \ |
a7590884324d
[gaim-migrate @ 16914]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
100 tlv.c \ |
14192 | 101 util.c |
102 | |
103 | |
104 OBJECTS = $(C_SRC:%.c=%.o) | |
105 | |
106 | |
107 ## | |
108 ## LIBRARIES | |
109 ## | |
110 | |
14232
a7590884324d
[gaim-migrate @ 16914]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
111 LIBS = \ |
14192 | 112 -lglib-2.0 \ |
113 -lintl \ | |
114 -lws2_32 \ | |
115 -lgaim | |
116 | |
117 | |
118 ## | |
119 ## RULES | |
120 ## | |
121 | |
122 # How to make a C file | |
123 | |
124 %.o: %.c | |
125 $(CC) $(CFLAGS) $(DEFINES) $(INCLUDE_PATHS) -o $@ -c $< | |
126 | |
127 ## | |
128 ## TARGET DEFINITIONS | |
129 ## | |
130 | |
131 .PHONY: all clean | |
132 | |
133 all: $(TARGET).dll | |
134 | |
135 install: | |
136 cp $(OSCAR_ROOT)/$(TARGET).dll $(DLL_INSTALL_DIR) | |
137 | |
138 | |
139 ## | |
140 ## BUILD Dependencies | |
141 ## | |
142 | |
14232
a7590884324d
[gaim-migrate @ 16914]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
143 $(LIBGAIM_TOP)/libgaim.dll.a: |
a7590884324d
[gaim-migrate @ 16914]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
144 $(MAKE) -C $(LIBGAIM_TOP) -f Makefile.mingw libgaim.dll.a |
14192 | 145 |
146 ## | |
147 ## BUILD DLL | |
148 ## | |
149 | |
14232
a7590884324d
[gaim-migrate @ 16914]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
150 $(TARGET).dll: $(OBJECTS) $(LIBGAIM_TOP)/libgaim.dll.a |
a7590884324d
[gaim-migrate @ 16914]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
151 $(CC) -shared $(OBJECTS) $(LIB_PATHS) $(LIBS) $(DLL_LD_FLAGS) -o $(TARGET).dll |
14192 | 152 |
153 ## | |
154 ## CLEAN RULES | |
155 ## | |
156 | |
157 clean: | |
158 rm -rf *.o | |
159 rm -rf $(TARGET).dll |