Mercurial > pidgin
annotate src/protocols/oscar/Makefile.mingw @ 3790:12b29552f1d7
[gaim-migrate @ 3930]
Better than cheddar, it's i18n input...
committer: Tailor Script <tailor@pidgin.im>
author | Rob Flynn <gaim@robflynn.com> |
---|---|
date | Wed, 23 Oct 2002 00:12:49 +0000 |
parents | fd3880c03f0d |
children | 07283934dedd |
rev | line source |
---|---|
3630 | 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 := ../../.. | |
14 GAIM_INSTALL_DIR := $(GAIM_TOP)/win32-install-dir | |
15 | |
16 ## | |
17 ## VARIABLE DEFINITIONS | |
18 ## | |
19 | |
20 TARGET = liboscar | |
21 | |
22 # Compiler Options | |
23 | |
3718
fd3880c03f0d
[gaim-migrate @ 3851]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3695
diff
changeset
|
24 CFLAGS = |
3630 | 25 |
3718
fd3880c03f0d
[gaim-migrate @ 3851]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3695
diff
changeset
|
26 DEFINES = |
3630 | 27 |
28 # Static or Plugin... | |
29 ifeq ($(TYPE),STATIC) | |
30 DEFINES += -DSTATIC | |
31 DLL_INSTALL_DIR = $(GAIM_INSTALL_DIR) | |
32 else | |
33 ifeq ($(TYPE),PLUGIN) | |
34 DLL_INSTALL_DIR = $(GAIM_INSTALL_DIR)/plugins | |
35 endif | |
36 endif | |
37 | |
38 | |
39 ## | |
40 ## INCLUDE MAKEFILES | |
41 ## | |
42 | |
3718
fd3880c03f0d
[gaim-migrate @ 3851]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3695
diff
changeset
|
43 include $(GAIM_TOP)/src/win32/global.mak |
3630 | 44 |
45 ## | |
46 ## INCLUDE PATHS | |
47 ## | |
48 | |
49 INCLUDE_PATHS += -I$(OSCAR_ROOT) \ | |
50 -I$(GTK_TOP)/include \ | |
51 -I$(GTK_TOP)/include/gtk-2.0 \ | |
52 -I$(GTK_TOP)/include/glib-2.0 \ | |
53 -I$(GTK_TOP)/include/pango-1.0 \ | |
54 -I$(GTK_TOP)/include/atk-1.0 \ | |
55 -I$(GTK_TOP)/lib/glib-2.0/include \ | |
56 -I$(GTK_TOP)/lib/gtk-2.0/include \ | |
57 -I$(GAIM_TOP)/src \ | |
58 -I$(GAIM_TOP)/src/win32 \ | |
59 -I$(GAIM_TOP) | |
60 | |
61 | |
62 LIB_PATHS = -L$(GTK_TOP)/lib \ | |
63 -L$(GAIM_TOP)/src | |
64 | |
65 | |
66 ## | |
67 ## SOURCES, OBJECTS | |
68 ## | |
69 | |
70 C_SRC = admin.c \ | |
71 adverts.c \ | |
72 auth.c \ | |
73 bos.c \ | |
74 buddylist.c \ | |
75 chat.c \ | |
76 chatnav.c \ | |
77 conn.c \ | |
3695 | 78 email.c \ |
3630 | 79 ft.c \ |
80 icq.c \ | |
81 im.c \ | |
82 info.c \ | |
83 invite.c \ | |
84 meta.c \ | |
85 misc.c \ | |
86 msgcookie.c \ | |
87 popups.c \ | |
88 rxhandlers.c \ | |
89 rxqueue.c \ | |
90 search.c \ | |
91 service.c \ | |
92 snac.c \ | |
93 ssi.c \ | |
94 stats.c \ | |
95 tlv.c \ | |
96 translate.c \ | |
97 txqueue.c \ | |
98 util.c \ | |
99 oscar.c | |
100 | |
101 | |
102 OBJECTS = $(C_SRC:%.c=%.o) | |
103 | |
104 | |
105 ## | |
106 ## LIBRARIES | |
107 ## | |
108 | |
109 LIBS = -lgtk-win32-2.0 -lglib-2.0 -lgdk-win32-2.0 -lgmodule-2.0 -lgobject-2.0 -lintl -lws2_32 -liberty -lgaim | |
110 | |
111 | |
112 ## | |
113 ## RULES | |
114 ## | |
115 | |
116 # How to make a C file | |
117 | |
118 %.o: %.c | |
119 $(CC) $(CFLAGS) $(DEFINES) $(INCLUDE_PATHS) -o $@ -c $< | |
120 | |
121 ## | |
122 ## TARGET DEFINITIONS | |
123 ## | |
124 | |
125 .PHONY: all clean | |
126 | |
127 all: $(TARGET).dll | |
128 | |
129 install: | |
130 cp $(OSCAR_ROOT)/$(TARGET).dll $(DLL_INSTALL_DIR) | |
131 | |
132 | |
133 ## | |
134 ## BUILD Dependencies | |
135 ## | |
136 | |
137 $(GAIM_TOP)/src/gaim.lib: | |
138 $(MAKE) -C $(GAIM_TOP)/src -f Makefile.mingw gaim.lib | |
139 | |
140 ## | |
141 ## BUILD DLL | |
142 ## | |
143 | |
144 $(TARGET).def: $(OBJECTS) | |
145 dlltool --dllname $(TARGET).dll -z $(TARGET).def --export-all-symbols $(OBJECTS) | |
146 | |
147 $(TARGET).base: $(OBJECTS) $(GAIM_TOP)/src/gaim.lib | |
3718
fd3880c03f0d
[gaim-migrate @ 3851]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3695
diff
changeset
|
148 $(CC) -mdll -o junk.tmp -Wl,--base-file,$@ $(OBJECTS) $(LIB_PATHS) $(LIBS) |
3630 | 149 rm -rf junk.tmp |
150 | |
151 $(TARGET).exp: $(TARGET).def $(TARGET).base | |
152 dlltool --dllname $(TARGET).dll --base-file $(TARGET).base \ | |
153 --output-exp $(TARGET).exp --def $(TARGET).def | |
154 rm -rf $(TARGET).base | |
155 | |
156 $(TARGET).dll: $(OBJECTS) $(TARGET).exp $(GAIM_TOP)/src/gaim.lib | |
157 dlltool -D $(TARGET).dll -d $(TARGET).def -l $(TARGET).lib | |
3718
fd3880c03f0d
[gaim-migrate @ 3851]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3695
diff
changeset
|
158 $(CC) -mdll -o $(TARGET).dll $(OBJECTS) -Wl,$(TARGET).exp $(LIB_PATHS) $(LIBS) |
3630 | 159 rm -rf $(TARGET).exp |
160 | |
161 ## | |
162 ## CLEAN RULES | |
163 ## | |
164 | |
165 clean: | |
166 rm -rf *.o | |
167 rm -rf $(TARGET).dll | |
168 rm -rf $(TARGET).lib | |
169 rm -rf $(TARGET).def |