comparison src/Makefile.mingw @ 3984:e0f868943dee

[gaim-migrate @ 4175] Flashing window feature now implemented for all Win versions committer: Tailor Script <tailor@pidgin.im>
author Herman Bloggs <hermanator12002@yahoo.com>
date Tue, 19 Nov 2002 17:38:11 +0000
parents 020345f97ceb
children 1e9dbcdf8455
comparison
equal deleted inserted replaced
3983:a1245dcf7b31 3984:e0f868943dee
67 LIB_PATHS = -L$(GTK_TOP)/lib \ 67 LIB_PATHS = -L$(GTK_TOP)/lib \
68 -L$(GAIM_SRC) \ 68 -L$(GAIM_SRC) \
69 -L$(IDLETRACKER_TOP) \ 69 -L$(IDLETRACKER_TOP) \
70 -L$(PERL_LIB_DIR) \ 70 -L$(PERL_LIB_DIR) \
71 -L$(ASPELL_TOP)/lib \ 71 -L$(ASPELL_TOP)/lib \
72 -L$(GTKSPELL_TOP)/gtkspell \ 72 -L$(GTKSPELL_TOP)/gtkspell
73 -L$(MINGW_PLUS_DIR)
74
75 73
76 ## 74 ##
77 ## SOURCES, OBJECTS 75 ## SOURCES, OBJECTS
78 ## 76 ##
79 77
82 $(GAIM_TOP)/sounds/Receive.h \ 80 $(GAIM_TOP)/sounds/Receive.h \
83 $(GAIM_TOP)/sounds/RedAlert.h \ 81 $(GAIM_TOP)/sounds/RedAlert.h \
84 $(GAIM_TOP)/sounds/Send.h 82 $(GAIM_TOP)/sounds/Send.h
85 83
86 HEADER_DEPS = $(SOUND_H_FILES) 84 HEADER_DEPS = $(SOUND_H_FILES)
87
88 LIB_DEPS = $(MINGW_PLUS_DIR)/user32plus.lib
89 85
90 DLL_C_SRC = aim.c \ 86 DLL_C_SRC = aim.c \
91 about.c \ 87 about.c \
92 away.c \ 88 away.c \
93 browser.c \ 89 browser.c \
139 -lgmodule-2.0 \ 135 -lgmodule-2.0 \
140 -lgdk_pixbuf-2.0 \ 136 -lgdk_pixbuf-2.0 \
141 -lws2_32 \ 137 -lws2_32 \
142 -liberty \ 138 -liberty \
143 -lwinmm \ 139 -lwinmm \
144 -luser32plus \
145 -lperl56 \ 140 -lperl56 \
146 -laspell-15 \ 141 -laspell-15 \
147 -lIdleTrac 142 -lIdleTrac
148 143
149 144
179 174
180 $(GAIM_SRC)/win32/IdleTracker/IdleTrac.dll: 175 $(GAIM_SRC)/win32/IdleTracker/IdleTrac.dll:
181 $(MAKE) -C $(GAIM_SRC)/win32/IdleTracker -f Makefile.mingw 176 $(MAKE) -C $(GAIM_SRC)/win32/IdleTracker -f Makefile.mingw
182 177
183 # 178 #
184 # BUILD DEPS
185 #
186
187 $(MINGW_PLUS_DIR)/user32plus.lib: $(MINGW_PLUS_DIR)/user32plus.def
188 $(MAKE) -C $(MINGW_PLUS_DIR) -f Makefile.mingw user32plus.lib
189
190 #
191 # BUILD DLL 179 # BUILD DLL
192 # 180 #
193 181
194 $(TARGET).def: $(HEADER_DEPS) $(DLL_OBJECTS) 182 $(TARGET).def: $(HEADER_DEPS) $(DLL_OBJECTS)
195 dlltool -D $(TARGET).dll -z $(TARGET).def --export-all-symbols \ 183 dlltool -D $(TARGET).dll -z $(TARGET).def --export-all-symbols \
196 --exclude-symbols WinMain@16 $^ 184 --exclude-symbols WinMain@16 $^
197 185
198 $(TARGET).base: $(HEADER_DEPS) $(LIB_DEPS) $(DLL_OBJECTS) 186 $(TARGET).base: $(HEADER_DEPS) $(DLL_OBJECTS)
199 $(CC) -mdll $(LDFLAGS) -o junk.tmp -Wl,--base-file,$@ $(DLL_OBJECTS) $(LIB_PATHS) $(DLL_LIBS) 187 $(CC) -mdll $(LDFLAGS) -o junk.tmp -Wl,--base-file,$@ $(DLL_OBJECTS) $(LIB_PATHS) $(DLL_LIBS)
200 rm -rf junk.tmp 188 rm -rf junk.tmp
201 189
202 $(TARGET).exp: $(TARGET).base $(TARGET).def 190 $(TARGET).exp: $(TARGET).base $(TARGET).def
203 dlltool --dllname $(TARGET).dll --base-file $(TARGET).base \ 191 dlltool --dllname $(TARGET).dll --base-file $(TARGET).base \
204 --output-exp $(TARGET).exp --def $(TARGET).def 192 --output-exp $(TARGET).exp --def $(TARGET).def
205 193
206 $(TARGET).dll: $(HEADER_DEPS) $(LIB_DEPS) $(DLL_OBJECTS) $(GAIM_SRC)/win32/IdleTracker/IdleTrac.dll $(TARGET).exp 194 $(TARGET).dll: $(HEADER_DEPS) $(DLL_OBJECTS) $(GAIM_SRC)/win32/IdleTracker/IdleTrac.dll $(TARGET).exp
207 $(CC) -mdll $(LDFLAGS) -o $(TARGET).dll $(DLL_OBJECTS) -Wl,$(TARGET).exp $(LIB_PATHS) $(DLL_LIBS) 195 $(CC) -mdll $(LDFLAGS) -o $(TARGET).dll $(DLL_OBJECTS) -Wl,$(TARGET).exp $(LIB_PATHS) $(DLL_LIBS)
208 rm -rf $(TARGET).exp $(TARGET).def $(TARGET).base 196 rm -rf $(TARGET).exp $(TARGET).def $(TARGET).base
209 197
210 $(TARGET).lib: $(TARGET).def 198 $(TARGET).lib: $(TARGET).def
211 dlltool -D $(TARGET).dll -d $(TARGET).def -l $(TARGET).lib 199 dlltool -D $(TARGET).dll -d $(TARGET).def -l $(TARGET).lib