Mercurial > pidgin
annotate libgaim/protocols/oscar/Makefile.mingw @ 14277:06f03f2bc6c6
[gaim-migrate @ 16962]
Fix that last commit
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Mon, 21 Aug 2006 22:48:19 +0000 |
parents | a7590884324d |
children | 82373bb6a47a |
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/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 \ | |
14232
a7590884324d
[gaim-migrate @ 16914]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
58 -I$(LIBGAIM_TOP) \ |
a7590884324d
[gaim-migrate @ 16914]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
59 -I$(LIBGAIM_TOP)/win32 \ |
14192 | 60 -I$(GAIM_TOP) |
61 | |
62 | |
63 LIB_PATHS = -L$(GTK_TOP)/lib \ | |
14232
a7590884324d
[gaim-migrate @ 16914]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
64 -L$(LIBGAIM_TOP) |
14192 | 65 |
66 | |
67 ## | |
68 ## SOURCES, OBJECTS | |
69 ## | |
70 | |
71 C_SRC = \ | |
14232
a7590884324d
[gaim-migrate @ 16914]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
72 bstream.c \ |
14192 | 73 family_admin.c \ |
74 family_advert.c \ | |
75 family_alert.c \ | |
76 family_auth.c \ | |
77 family_bart.c \ | |
78 family_bos.c \ | |
79 family_buddy.c \ | |
80 family_chat.c \ | |
81 family_chatnav.c \ | |
82 family_icq.c \ | |
83 family_icbm.c \ | |
84 family_invite.c \ | |
85 family_locate.c \ | |
86 family_odir.c \ | |
87 family_popup.c \ | |
88 family_oservice.c \ | |
89 family_feedbag.c \ | |
90 family_stats.c \ | |
91 family_translate.c \ | |
92 family_userlookup.c \ | |
93 flap_connection.c \ | |
14232
a7590884324d
[gaim-migrate @ 16914]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
94 misc.c \ |
a7590884324d
[gaim-migrate @ 16914]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
95 msgcookie.c \ |
a7590884324d
[gaim-migrate @ 16914]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
96 odc.c \ |
a7590884324d
[gaim-migrate @ 16914]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
97 oft.c \ |
a7590884324d
[gaim-migrate @ 16914]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
98 oscar.c \ |
14192 | 99 oscar_data.c \ |
14232
a7590884324d
[gaim-migrate @ 16914]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
100 peer.c \ |
14192 | 101 peer_proxy.c \ |
102 rxhandlers.c \ | |
14232
a7590884324d
[gaim-migrate @ 16914]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
103 snac.c \ |
a7590884324d
[gaim-migrate @ 16914]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
104 tlv.c \ |
14192 | 105 util.c |
106 | |
107 | |
108 OBJECTS = $(C_SRC:%.c=%.o) | |
109 | |
110 | |
111 ## | |
112 ## LIBRARIES | |
113 ## | |
114 | |
14232
a7590884324d
[gaim-migrate @ 16914]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
115 LIBS = \ |
14192 | 116 -lglib-2.0 \ |
117 -lintl \ | |
118 -lws2_32 \ | |
119 -lgaim | |
120 | |
121 | |
122 ## | |
123 ## RULES | |
124 ## | |
125 | |
126 # How to make a C file | |
127 | |
128 %.o: %.c | |
129 $(CC) $(CFLAGS) $(DEFINES) $(INCLUDE_PATHS) -o $@ -c $< | |
130 | |
131 ## | |
132 ## TARGET DEFINITIONS | |
133 ## | |
134 | |
135 .PHONY: all clean | |
136 | |
137 all: $(TARGET).dll | |
138 | |
139 install: | |
140 cp $(OSCAR_ROOT)/$(TARGET).dll $(DLL_INSTALL_DIR) | |
141 | |
142 | |
143 ## | |
144 ## BUILD Dependencies | |
145 ## | |
146 | |
14232
a7590884324d
[gaim-migrate @ 16914]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
147 $(LIBGAIM_TOP)/libgaim.dll.a: |
a7590884324d
[gaim-migrate @ 16914]
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 | |
14232
a7590884324d
[gaim-migrate @ 16914]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
154 $(TARGET).dll: $(OBJECTS) $(LIBGAIM_TOP)/libgaim.dll.a |
a7590884324d
[gaim-migrate @ 16914]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
155 $(CC) -shared $(OBJECTS) $(LIB_PATHS) $(LIBS) $(DLL_LD_FLAGS) -o $(TARGET).dll |
14192 | 156 |
157 ## | |
158 ## CLEAN RULES | |
159 ## | |
160 | |
161 clean: | |
162 rm -rf *.o | |
163 rm -rf $(TARGET).dll |