Mercurial > pidgin.yaz
comparison src/Makefile.mingw @ 3715:764d6f1848b2
[gaim-migrate @ 3848]
Introduction of global.mak
committer: Tailor Script <tailor@pidgin.im>
author | Herman Bloggs <hermanator12002@yahoo.com> |
---|---|
date | Wed, 16 Oct 2002 19:40:00 +0000 |
parents | d26752101ae4 |
children | 3cd422d1d958 |
comparison
equal
deleted
inserted
replaced
3714:380b043a4a1c | 3715:764d6f1848b2 |
---|---|
5 # | 5 # |
6 | 6 |
7 # | 7 # |
8 # PATHS | 8 # PATHS |
9 # | 9 # |
10 | |
11 BUILD_TOOLS = /usr/local/mingw | |
12 | 10 |
13 INCLUDE_DIR := . | 11 INCLUDE_DIR := . |
14 GTK_TOP := ../../win32-dev/gtk_2_0 | 12 GTK_TOP := ../../win32-dev/gtk_2_0 |
15 GAIM_TOP := .. | 13 GAIM_TOP := .. |
16 GAIM_SRC := . | 14 GAIM_SRC := . |
22 ## VARIABLE DEFINITIONS | 20 ## VARIABLE DEFINITIONS |
23 ## | 21 ## |
24 | 22 |
25 TARGET = gaim | 23 TARGET = gaim |
26 | 24 |
27 VERSION := $(shell cat $(GAIM_TOP)/VERSION) | |
28 | |
29 # Compiler and Linker Options | 25 # Compiler and Linker Options |
30 | 26 |
31 GCOPTS = -B $(BUILD_TOOLS) | 27 CFLAGS = |
32 | 28 |
33 CC = gcc.exe $(GCOPTS) | 29 DEFINES = |
34 | |
35 CFLAGS = -g -mno-cygwin -fnative-struct | |
36 | |
37 DEFINES = -DHAVE_CONFIG_H -DVERSION=\"$(VERSION)\" -DGTK_ENABLE_BROKEN | |
38 | 30 |
39 LDFLAGS = -mwindows | 31 LDFLAGS = -mwindows |
40 | 32 |
41 #-mconsole | 33 #-mconsole |
42 #-mwindows | 34 #-mwindows |
43 | 35 |
44 ## | 36 ## |
45 ## INCLUDE MAKEFILES | 37 ## INCLUDE MAKEFILES |
46 ## | 38 ## |
47 | 39 |
40 include $(GAIM_TOP)/src/win32/global.mak | |
48 | 41 |
49 ## | 42 ## |
50 ## INCLUDE PATHS | 43 ## INCLUDE PATHS |
51 ## | 44 ## |
52 | 45 |
105 prpl.c \ | 98 prpl.c \ |
106 server.c \ | 99 server.c \ |
107 sound.c \ | 100 sound.c \ |
108 util.c \ | 101 util.c \ |
109 win32/win32dep.c \ | 102 win32/win32dep.c \ |
110 win32/MinimizeToTray.c | 103 win32/MinimizeToTray.c \ |
104 win32/libc_interface.c | |
111 | 105 |
112 RC_SRC = win32/gaimrc.rc | 106 RC_SRC = win32/gaimrc.rc |
113 | 107 |
114 EXE_C_SRC = win_aim.c | 108 EXE_C_SRC = win_aim.c |
115 | 109 |
172 $(TARGET).def: $(HEADER_DEPS) $(DLL_OBJECTS) | 166 $(TARGET).def: $(HEADER_DEPS) $(DLL_OBJECTS) |
173 dlltool -D $(TARGET).dll -z $(TARGET).def --export-all-symbols \ | 167 dlltool -D $(TARGET).dll -z $(TARGET).def --export-all-symbols \ |
174 --exclude-symbols WinMain@16 $^ | 168 --exclude-symbols WinMain@16 $^ |
175 | 169 |
176 $(TARGET).base: $(HEADER_DEPS) $(DLL_OBJECTS) | 170 $(TARGET).base: $(HEADER_DEPS) $(DLL_OBJECTS) |
177 gcc -mdll $(LDFLAGS) -o junk.tmp -Wl,--base-file,$@ $(DLL_OBJECTS) $(LIB_PATHS) $(DLL_LIBS) | 171 $(CC) -mdll $(LDFLAGS) -o junk.tmp -Wl,--base-file,$@ $(DLL_OBJECTS) $(LIB_PATHS) $(DLL_LIBS) |
178 rm -rf junk.tmp | 172 rm -rf junk.tmp |
179 | 173 |
180 $(TARGET).exp: $(TARGET).base $(TARGET).def | 174 $(TARGET).exp: $(TARGET).base $(TARGET).def |
181 dlltool --dllname $(TARGET).dll --base-file $(TARGET).base \ | 175 dlltool --dllname $(TARGET).dll --base-file $(TARGET).base \ |
182 --output-exp $(TARGET).exp --def $(TARGET).def | 176 --output-exp $(TARGET).exp --def $(TARGET).def |
183 | 177 |
184 $(TARGET).dll: $(HEADER_DEPS) $(DLL_OBJECTS) $(TARGET).exp | 178 $(TARGET).dll: $(HEADER_DEPS) $(DLL_OBJECTS) $(TARGET).exp |
185 gcc -mdll $(LDFLAGS) -o $(TARGET).dll $(DLL_OBJECTS) -Wl,$(TARGET).exp $(LIB_PATHS) $(DLL_LIBS) | 179 $(CC) -mdll $(LDFLAGS) -o $(TARGET).dll $(DLL_OBJECTS) -Wl,$(TARGET).exp $(LIB_PATHS) $(DLL_LIBS) |
186 rm -rf $(TARGET).exp $(TARGET).def $(TARGET).base | 180 rm -rf $(TARGET).exp $(TARGET).def $(TARGET).base |
187 | 181 |
188 $(TARGET).lib: $(TARGET).def | 182 $(TARGET).lib: $(TARGET).def |
189 dlltool -D $(TARGET).dll -d $(TARGET).def -l $(TARGET).lib | 183 dlltool -D $(TARGET).dll -d $(TARGET).def -l $(TARGET).lib |
190 | 184 |
191 # | 185 # |
192 # BUILD EXE | 186 # BUILD EXE |
193 # | 187 # |
194 | 188 |
195 $(TARGET).exe: $(TARGET).lib $(EXE_OBJECTS) | 189 $(TARGET).exe: $(TARGET).lib $(EXE_OBJECTS) |
196 gcc $(LDFLAGS) $(EXE_OBJECTS) $(LIB_PATHS) $(EXE_LIBS) -o $(TARGET).exe | 190 $(CC) $(LDFLAGS) $(EXE_OBJECTS) $(LIB_PATHS) $(EXE_LIBS) -o $(TARGET).exe |
197 | |
198 # -Wl,--subsystem,windows | |
199 | 191 |
200 ## | 192 ## |
201 ## CLEAN RULES | 193 ## CLEAN RULES |
202 ## | 194 ## |
203 | 195 |