1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.1.1 (http://bakefile.sourceforge.net)
4 # Do not modify, all changes will be overwritten!
5 # =========================================================================
7 !include ../../../build/msw/config.wat
9 # -------------------------------------------------------------------------
10 # Do not modify the rest of this file!
11 # -------------------------------------------------------------------------
13 # Speed up compilation a bit:
16 ! loaddll wccaxp wccdaxp
17 ! loaddll wcc386 wccd386
19 ! loaddll wppaxp wppdaxp
20 ! loaddll wpp386 wppd386
25 # We need these variables in some bakefile-made rules:
26 WATCOM_CWD = $+ $(%cdrive):$(%cwd) $-
28 ### Conditionally set variables: ###
38 !ifeq OFFICIAL_BUILD 0
39 VENDORTAG = _$(VENDOR)
41 !ifeq OFFICIAL_BUILD 1
46 !ifeq DEBUG_FLAG default
67 !ifeq DEBUG_INFO default
72 !ifeq DEBUG_INFO default
84 !ifeq DEBUG_INFO default
85 __DEBUGINFO_1 = debug all
89 !ifeq DEBUG_INFO default
97 __DEBUGINFO_1 = debug all
101 !ifeq DEBUG_FLAG default
102 __DEBUG_DEFINE_p = -d__WXDEBUG__
106 __DEBUG_DEFINE_p = -d__WXDEBUG__
110 __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
114 __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
118 __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
125 __OPTIMIZEFLAG = -ot -ox
128 !ifeq RUNTIME_LIBS dynamic
131 !ifeq RUNTIME_LIBS static
136 __UNICODE_DEFINE_p = -dwxUSE_UNICODE=1
140 __WXLIB_BASE_p = wxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
145 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core.lib
150 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
154 __WXUNIV_DEFINE_p = -d__WXUNIVERSAL__
156 __mmediadll___depname =
158 __mmediadll___depname = &
159 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)250$(WXUNICODEFLAG)$(WXDEBUGFLAG)_mmedia_wat$(VENDORTAG).dll
161 __mmedialib___depname =
163 __mmedialib___depname = &
164 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_mmedia.lib
170 ..\..\src\mmedia\..\..\..\lib\wat_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
171 MMEDIADLL_CXXFLAGS = $(CPPFLAGS) -bd $(__DEBUGINFO) $(__OPTIMIZEFLAG) -bm &
172 $(__RUNTIME_LIBS) -d__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) &
173 $(__UNICODE_DEFINE_p) -i=..\..\src\mmedia\..\..\..\include &
174 -i=$(LIBDIRNAME) -i=..\..\src\mmedia\..\..\..\src\tiff &
175 -i=..\..\src\mmedia\..\..\..\src\jpeg &
176 -i=..\..\src\mmedia\..\..\..\src\png &
177 -i=..\..\src\mmedia\..\..\..\src\zlib &
178 -i=..\..\src\mmedia\..\..\..\src\regex &
179 -i=..\..\src\mmedia\..\..\..\src\expat\lib &
180 -i=..\..\src\mmedia\..\..\include -dWXUSINGDLL -dWXMAKINGDLL_MMEDIA &
181 $(CXXFLAGS) /fh=$(OBJS)\wxprec_mmediadll.pch
182 MMEDIADLL_OBJECTS = &
183 $(OBJS)\mmediadll_dummy.obj &
184 $(OBJS)\mmediadll_cdwin.obj &
185 $(OBJS)\mmediadll_sndwin.obj &
186 $(OBJS)\mmediadll_vidwin.obj &
187 $(OBJS)\mmediadll_cdbase.obj &
188 $(OBJS)\mmediadll_g711.obj &
189 $(OBJS)\mmediadll_g721.obj &
190 $(OBJS)\mmediadll_g723_24.obj &
191 $(OBJS)\mmediadll_g723_40.obj &
192 $(OBJS)\mmediadll_g72x.obj &
193 $(OBJS)\mmediadll_sndaiff.obj &
194 $(OBJS)\mmediadll_sndbase.obj &
195 $(OBJS)\mmediadll_sndcodec.obj &
196 $(OBJS)\mmediadll_sndcpcm.obj &
197 $(OBJS)\mmediadll_sndfile.obj &
198 $(OBJS)\mmediadll_sndg72x.obj &
199 $(OBJS)\mmediadll_sndmsad.obj &
200 $(OBJS)\mmediadll_sndpcm.obj &
201 $(OBJS)\mmediadll_sndulaw.obj &
202 $(OBJS)\mmediadll_sndwav.obj &
203 $(OBJS)\mmediadll_vidbase.obj
204 MMEDIALIB_CXXFLAGS = $(CPPFLAGS) $(__DEBUGINFO) $(__OPTIMIZEFLAG) -bm &
205 $(__RUNTIME_LIBS) -d__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) &
206 $(__UNICODE_DEFINE_p) -i=..\..\src\mmedia\..\..\..\include &
207 -i=$(LIBDIRNAME) -i=..\..\src\mmedia\..\..\..\src\tiff &
208 -i=..\..\src\mmedia\..\..\..\src\jpeg &
209 -i=..\..\src\mmedia\..\..\..\src\png &
210 -i=..\..\src\mmedia\..\..\..\src\zlib &
211 -i=..\..\src\mmedia\..\..\..\src\regex &
212 -i=..\..\src\mmedia\..\..\..\src\expat\lib &
213 -i=..\..\src\mmedia\..\..\include $(CXXFLAGS) &
214 /fh=$(OBJS)\wxprec_mmedialib.pch
215 MMEDIALIB_OBJECTS = &
216 $(OBJS)\mmedialib_dummy.obj &
217 $(OBJS)\mmedialib_cdwin.obj &
218 $(OBJS)\mmedialib_sndwin.obj &
219 $(OBJS)\mmedialib_vidwin.obj &
220 $(OBJS)\mmedialib_cdbase.obj &
221 $(OBJS)\mmedialib_g711.obj &
222 $(OBJS)\mmedialib_g721.obj &
223 $(OBJS)\mmedialib_g723_24.obj &
224 $(OBJS)\mmedialib_g723_40.obj &
225 $(OBJS)\mmedialib_g72x.obj &
226 $(OBJS)\mmedialib_sndaiff.obj &
227 $(OBJS)\mmedialib_sndbase.obj &
228 $(OBJS)\mmedialib_sndcodec.obj &
229 $(OBJS)\mmedialib_sndcpcm.obj &
230 $(OBJS)\mmedialib_sndfile.obj &
231 $(OBJS)\mmedialib_sndg72x.obj &
232 $(OBJS)\mmedialib_sndmsad.obj &
233 $(OBJS)\mmedialib_sndpcm.obj &
234 $(OBJS)\mmedialib_sndulaw.obj &
235 $(OBJS)\mmedialib_sndwav.obj &
236 $(OBJS)\mmedialib_vidbase.obj
238 wat_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
243 -if not exist $(OBJS) mkdir $(OBJS)
247 all : .SYMBOLIC $(__mmediadll___depname) $(__mmedialib___depname)
249 $(OBJS)\mmediadll_cdbase.obj : .AUTODEPEND ../../src/mmedia\cdbase.cpp
250 $(CXX) -zq -fo=$^@ $(MMEDIADLL_CXXFLAGS) $<
252 $(OBJS)\mmediadll_cdwin.obj : .AUTODEPEND ../../src/mmedia\cdwin.cpp
253 $(CXX) -zq -fo=$^@ $(MMEDIADLL_CXXFLAGS) $<
255 $(OBJS)\mmediadll_dummy.obj : .AUTODEPEND ../../src/mmedia\..\..\..\src\msw\dummy.cpp
256 $(CXX) -zq -fo=$^@ $(MMEDIADLL_CXXFLAGS) $<
258 $(OBJS)\mmediadll_g711.obj : .AUTODEPEND ../../src/mmedia\g711.cpp
259 $(CXX) -zq -fo=$^@ $(MMEDIADLL_CXXFLAGS) $<
261 $(OBJS)\mmediadll_g721.obj : .AUTODEPEND ../../src/mmedia\g721.cpp
262 $(CXX) -zq -fo=$^@ $(MMEDIADLL_CXXFLAGS) $<
264 $(OBJS)\mmediadll_g723_24.obj : .AUTODEPEND ../../src/mmedia\g723_24.cpp
265 $(CXX) -zq -fo=$^@ $(MMEDIADLL_CXXFLAGS) $<
267 $(OBJS)\mmediadll_g723_40.obj : .AUTODEPEND ../../src/mmedia\g723_40.cpp
268 $(CXX) -zq -fo=$^@ $(MMEDIADLL_CXXFLAGS) $<
270 $(OBJS)\mmediadll_g72x.obj : .AUTODEPEND ../../src/mmedia\g72x.cpp
271 $(CXX) -zq -fo=$^@ $(MMEDIADLL_CXXFLAGS) $<
273 $(OBJS)\mmediadll_sndaiff.obj : .AUTODEPEND ../../src/mmedia\sndaiff.cpp
274 $(CXX) -zq -fo=$^@ $(MMEDIADLL_CXXFLAGS) $<
276 $(OBJS)\mmediadll_sndbase.obj : .AUTODEPEND ../../src/mmedia\sndbase.cpp
277 $(CXX) -zq -fo=$^@ $(MMEDIADLL_CXXFLAGS) $<
279 $(OBJS)\mmediadll_sndcodec.obj : .AUTODEPEND ../../src/mmedia\sndcodec.cpp
280 $(CXX) -zq -fo=$^@ $(MMEDIADLL_CXXFLAGS) $<
282 $(OBJS)\mmediadll_sndcpcm.obj : .AUTODEPEND ../../src/mmedia\sndcpcm.cpp
283 $(CXX) -zq -fo=$^@ $(MMEDIADLL_CXXFLAGS) $<
285 $(OBJS)\mmediadll_sndfile.obj : .AUTODEPEND ../../src/mmedia\sndfile.cpp
286 $(CXX) -zq -fo=$^@ $(MMEDIADLL_CXXFLAGS) $<
288 $(OBJS)\mmediadll_sndg72x.obj : .AUTODEPEND ../../src/mmedia\sndg72x.cpp
289 $(CXX) -zq -fo=$^@ $(MMEDIADLL_CXXFLAGS) $<
291 $(OBJS)\mmediadll_sndmsad.obj : .AUTODEPEND ../../src/mmedia\sndmsad.cpp
292 $(CXX) -zq -fo=$^@ $(MMEDIADLL_CXXFLAGS) $<
294 $(OBJS)\mmediadll_sndpcm.obj : .AUTODEPEND ../../src/mmedia\sndpcm.cpp
295 $(CXX) -zq -fo=$^@ $(MMEDIADLL_CXXFLAGS) $<
297 $(OBJS)\mmediadll_sndulaw.obj : .AUTODEPEND ../../src/mmedia\sndulaw.cpp
298 $(CXX) -zq -fo=$^@ $(MMEDIADLL_CXXFLAGS) $<
300 $(OBJS)\mmediadll_sndwav.obj : .AUTODEPEND ../../src/mmedia\sndwav.cpp
301 $(CXX) -zq -fo=$^@ $(MMEDIADLL_CXXFLAGS) $<
303 $(OBJS)\mmediadll_sndwin.obj : .AUTODEPEND ../../src/mmedia\sndwin.cpp
304 $(CXX) -zq -fo=$^@ $(MMEDIADLL_CXXFLAGS) $<
306 $(OBJS)\mmediadll_vidbase.obj : .AUTODEPEND ../../src/mmedia\vidbase.cpp
307 $(CXX) -zq -fo=$^@ $(MMEDIADLL_CXXFLAGS) $<
309 $(OBJS)\mmediadll_vidwin.obj : .AUTODEPEND ../../src/mmedia\vidwin.cpp
310 $(CXX) -zq -fo=$^@ $(MMEDIADLL_CXXFLAGS) $<
312 $(OBJS)\mmedialib_cdbase.obj : .AUTODEPEND ../../src/mmedia\cdbase.cpp
313 $(CXX) -zq -fo=$^@ $(MMEDIALIB_CXXFLAGS) $<
315 $(OBJS)\mmedialib_cdwin.obj : .AUTODEPEND ../../src/mmedia\cdwin.cpp
316 $(CXX) -zq -fo=$^@ $(MMEDIALIB_CXXFLAGS) $<
318 $(OBJS)\mmedialib_dummy.obj : .AUTODEPEND ../../src/mmedia\..\..\..\src\msw\dummy.cpp
319 $(CXX) -zq -fo=$^@ $(MMEDIALIB_CXXFLAGS) $<
321 $(OBJS)\mmedialib_g711.obj : .AUTODEPEND ../../src/mmedia\g711.cpp
322 $(CXX) -zq -fo=$^@ $(MMEDIALIB_CXXFLAGS) $<
324 $(OBJS)\mmedialib_g721.obj : .AUTODEPEND ../../src/mmedia\g721.cpp
325 $(CXX) -zq -fo=$^@ $(MMEDIALIB_CXXFLAGS) $<
327 $(OBJS)\mmedialib_g723_24.obj : .AUTODEPEND ../../src/mmedia\g723_24.cpp
328 $(CXX) -zq -fo=$^@ $(MMEDIALIB_CXXFLAGS) $<
330 $(OBJS)\mmedialib_g723_40.obj : .AUTODEPEND ../../src/mmedia\g723_40.cpp
331 $(CXX) -zq -fo=$^@ $(MMEDIALIB_CXXFLAGS) $<
333 $(OBJS)\mmedialib_g72x.obj : .AUTODEPEND ../../src/mmedia\g72x.cpp
334 $(CXX) -zq -fo=$^@ $(MMEDIALIB_CXXFLAGS) $<
336 $(OBJS)\mmedialib_sndaiff.obj : .AUTODEPEND ../../src/mmedia\sndaiff.cpp
337 $(CXX) -zq -fo=$^@ $(MMEDIALIB_CXXFLAGS) $<
339 $(OBJS)\mmedialib_sndbase.obj : .AUTODEPEND ../../src/mmedia\sndbase.cpp
340 $(CXX) -zq -fo=$^@ $(MMEDIALIB_CXXFLAGS) $<
342 $(OBJS)\mmedialib_sndcodec.obj : .AUTODEPEND ../../src/mmedia\sndcodec.cpp
343 $(CXX) -zq -fo=$^@ $(MMEDIALIB_CXXFLAGS) $<
345 $(OBJS)\mmedialib_sndcpcm.obj : .AUTODEPEND ../../src/mmedia\sndcpcm.cpp
346 $(CXX) -zq -fo=$^@ $(MMEDIALIB_CXXFLAGS) $<
348 $(OBJS)\mmedialib_sndfile.obj : .AUTODEPEND ../../src/mmedia\sndfile.cpp
349 $(CXX) -zq -fo=$^@ $(MMEDIALIB_CXXFLAGS) $<
351 $(OBJS)\mmedialib_sndg72x.obj : .AUTODEPEND ../../src/mmedia\sndg72x.cpp
352 $(CXX) -zq -fo=$^@ $(MMEDIALIB_CXXFLAGS) $<
354 $(OBJS)\mmedialib_sndmsad.obj : .AUTODEPEND ../../src/mmedia\sndmsad.cpp
355 $(CXX) -zq -fo=$^@ $(MMEDIALIB_CXXFLAGS) $<
357 $(OBJS)\mmedialib_sndpcm.obj : .AUTODEPEND ../../src/mmedia\sndpcm.cpp
358 $(CXX) -zq -fo=$^@ $(MMEDIALIB_CXXFLAGS) $<
360 $(OBJS)\mmedialib_sndulaw.obj : .AUTODEPEND ../../src/mmedia\sndulaw.cpp
361 $(CXX) -zq -fo=$^@ $(MMEDIALIB_CXXFLAGS) $<
363 $(OBJS)\mmedialib_sndwav.obj : .AUTODEPEND ../../src/mmedia\sndwav.cpp
364 $(CXX) -zq -fo=$^@ $(MMEDIALIB_CXXFLAGS) $<
366 $(OBJS)\mmedialib_sndwin.obj : .AUTODEPEND ../../src/mmedia\sndwin.cpp
367 $(CXX) -zq -fo=$^@ $(MMEDIALIB_CXXFLAGS) $<
369 $(OBJS)\mmedialib_vidbase.obj : .AUTODEPEND ../../src/mmedia\vidbase.cpp
370 $(CXX) -zq -fo=$^@ $(MMEDIALIB_CXXFLAGS) $<
372 $(OBJS)\mmedialib_vidwin.obj : .AUTODEPEND ../../src/mmedia\vidwin.cpp
373 $(CXX) -zq -fo=$^@ $(MMEDIALIB_CXXFLAGS) $<
376 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
377 -if exist $(OBJS)\*.res del $(OBJS)\*.res
378 -if exist $(OBJS)\*.lbc del $(OBJS)\*.lbc
379 -if exist $(OBJS)\*.ilk del $(OBJS)\*.ilk
380 -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)250$(WXUNICODEFLAG)$(WXDEBUGFLAG)_mmedia_wat$(VENDORTAG).dll del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)250$(WXUNICODEFLAG)$(WXDEBUGFLAG)_mmedia_wat$(VENDORTAG).dll
381 -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_mmedia.lib del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_mmedia.lib
382 -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_mmedia.lib del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_mmedia.lib
385 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)250$(WXUNICODEFLAG)$(WXDEBUGFLAG)_mmedia_wat$(VENDORTAG).dll : $(MMEDIADLL_OBJECTS)
386 @%create $(OBJS)\mmediadll.lbc
387 @%append $(OBJS)\mmediadll.lbc option quiet
388 @%append $(OBJS)\mmediadll.lbc name $^@
389 @%append $(OBJS)\mmediadll.lbc option incremental
390 @%append $(OBJS)\mmediadll.lbc $(LDFLAGS) $(__DEBUGINFO_1) libpath $(LIBDIRNAME)
391 @for %i in ($(MMEDIADLL_OBJECTS)) do @%append $(OBJS)\mmediadll.lbc file %i
392 @for %i in ( $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) wxzlib$(WXDEBUGFLAG).lib wxregex$(WXDEBUGFLAG).lib wxexpat$(WXDEBUGFLAG).lib kernel32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib winmm.lib shell32.lib comctl32.lib odbc32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib advapi32.lib wsock32.lib $(__WXLIB_CORE_p) $(__WXLIB_BASE_p)) do @%append $(OBJS)\mmediadll.lbc library %i
393 @%append $(OBJS)\mmediadll.lbc
394 @%append $(OBJS)\mmediadll.lbc system nt_dll
395 wlink @$(OBJS)\mmediadll.lbc
396 wlib -q -n -b $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_mmedia.lib +$^@
400 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_mmedia.lib : $(MMEDIALIB_OBJECTS)
401 @%create $(OBJS)\mmedialib.lbc
402 @for %i in ($(MMEDIALIB_OBJECTS)) do @%append $(OBJS)\mmedialib.lbc +%i
403 wlib -q -p2048 -n -b $^@ @$(OBJS)\mmedialib.lbc