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: ###
32 LIBDIRNAME = ..\..\src\mmedia\..\..\..\lib\wat_lib$(CFG)
35 LIBDIRNAME = ..\..\src\mmedia\..\..\..\lib\wat_dll$(CFG)
45 !ifeq OFFICIAL_BUILD 0
46 VENDORTAG = _$(VENDOR)
48 !ifeq OFFICIAL_BUILD 1
53 !ifeq DEBUG_FLAG default
74 !ifeq DEBUG_INFO default
79 !ifeq DEBUG_INFO default
91 !ifeq DEBUG_INFO default
92 __DEBUGINFO_1 = debug all
96 !ifeq DEBUG_INFO default
104 __DEBUGINFO_1 = debug all
108 !ifeq DEBUG_FLAG default
109 __DEBUG_DEFINE_p = -d__WXDEBUG__
113 __DEBUG_DEFINE_p = -d__WXDEBUG__
117 __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
121 __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
125 __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
132 __OPTIMIZEFLAG = -ot -ox
135 !ifeq RUNTIME_LIBS dynamic
138 !ifeq RUNTIME_LIBS static
143 __UNICODE_DEFINE_p = -dwxUSE_UNICODE=1
147 __WXLIB_BASE_p = wxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
152 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core.lib
157 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
161 __WXUNIV_DEFINE_p = -d__WXUNIVERSAL__
163 __mmediadll___depname =
165 __mmediadll___depname = &
166 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)250$(WXUNICODEFLAG)$(WXDEBUGFLAG)_mmedia_wat$(VENDORTAG).dll
168 __mmedialib___depname =
170 __mmedialib___depname = &
171 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_mmedia.lib
176 MMEDIADLL_CXXFLAGS = $(CPPFLAGS) -bd $(__DEBUGINFO) $(__OPTIMIZEFLAG) -bm &
177 $(__RUNTIME_LIBS) -d__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) &
178 $(__UNICODE_DEFINE_p) -i=..\..\src\mmedia\..\..\..\include -i=$(SETUPHDIR) &
179 -i=..\..\src\mmedia\..\..\include -dWXUSINGDLL -dWXMAKINGDLL_MMEDIA &
180 $(CXXFLAGS) /fh=$(OBJS)\wxprec_mmediadll.pch
181 MMEDIADLL_OBJECTS = &
182 $(OBJS)\mmediadll_dummy.obj &
183 $(OBJS)\mmediadll_cdwin.obj &
184 $(OBJS)\mmediadll_sndwin.obj &
185 $(OBJS)\mmediadll_vidwin.obj &
186 $(OBJS)\mmediadll_cdbase.obj &
187 $(OBJS)\mmediadll_g711.obj &
188 $(OBJS)\mmediadll_g721.obj &
189 $(OBJS)\mmediadll_g723_24.obj &
190 $(OBJS)\mmediadll_g723_40.obj &
191 $(OBJS)\mmediadll_g72x.obj &
192 $(OBJS)\mmediadll_sndaiff.obj &
193 $(OBJS)\mmediadll_sndbase.obj &
194 $(OBJS)\mmediadll_sndcodec.obj &
195 $(OBJS)\mmediadll_sndcpcm.obj &
196 $(OBJS)\mmediadll_sndfile.obj &
197 $(OBJS)\mmediadll_sndg72x.obj &
198 $(OBJS)\mmediadll_sndmsad.obj &
199 $(OBJS)\mmediadll_sndpcm.obj &
200 $(OBJS)\mmediadll_sndulaw.obj &
201 $(OBJS)\mmediadll_sndwav.obj &
202 $(OBJS)\mmediadll_vidbase.obj
203 MMEDIALIB_CXXFLAGS = $(CPPFLAGS) $(__DEBUGINFO) $(__OPTIMIZEFLAG) -bm &
204 $(__RUNTIME_LIBS) -d__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) &
205 $(__UNICODE_DEFINE_p) -i=..\..\src\mmedia\..\..\..\include -i=$(SETUPHDIR) &
206 -i=..\..\src\mmedia\..\..\include $(CXXFLAGS) &
207 /fh=$(OBJS)\wxprec_mmedialib.pch
208 MMEDIALIB_OBJECTS = &
209 $(OBJS)\mmedialib_dummy.obj &
210 $(OBJS)\mmedialib_cdwin.obj &
211 $(OBJS)\mmedialib_sndwin.obj &
212 $(OBJS)\mmedialib_vidwin.obj &
213 $(OBJS)\mmedialib_cdbase.obj &
214 $(OBJS)\mmedialib_g711.obj &
215 $(OBJS)\mmedialib_g721.obj &
216 $(OBJS)\mmedialib_g723_24.obj &
217 $(OBJS)\mmedialib_g723_40.obj &
218 $(OBJS)\mmedialib_g72x.obj &
219 $(OBJS)\mmedialib_sndaiff.obj &
220 $(OBJS)\mmedialib_sndbase.obj &
221 $(OBJS)\mmedialib_sndcodec.obj &
222 $(OBJS)\mmedialib_sndcpcm.obj &
223 $(OBJS)\mmedialib_sndfile.obj &
224 $(OBJS)\mmedialib_sndg72x.obj &
225 $(OBJS)\mmedialib_sndmsad.obj &
226 $(OBJS)\mmedialib_sndpcm.obj &
227 $(OBJS)\mmedialib_sndulaw.obj &
228 $(OBJS)\mmedialib_sndwav.obj &
229 $(OBJS)\mmedialib_vidbase.obj
231 wat_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
233 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
238 -if not exist $(OBJS) mkdir $(OBJS)
242 all : .SYMBOLIC $(__mmediadll___depname) $(__mmedialib___depname)
244 $(OBJS)\mmediadll_cdbase.obj : .AUTODEPEND ../../src/mmedia\cdbase.cpp
245 $(CXX) -zq -fo=$^@ $(MMEDIADLL_CXXFLAGS) $<
247 $(OBJS)\mmediadll_cdwin.obj : .AUTODEPEND ../../src/mmedia\cdwin.cpp
248 $(CXX) -zq -fo=$^@ $(MMEDIADLL_CXXFLAGS) $<
250 $(OBJS)\mmediadll_dummy.obj : .AUTODEPEND ../../src/mmedia\..\..\..\src\msw\dummy.cpp
251 $(CXX) -zq -fo=$^@ $(MMEDIADLL_CXXFLAGS) $<
253 $(OBJS)\mmediadll_g711.obj : .AUTODEPEND ../../src/mmedia\g711.cpp
254 $(CXX) -zq -fo=$^@ $(MMEDIADLL_CXXFLAGS) $<
256 $(OBJS)\mmediadll_g721.obj : .AUTODEPEND ../../src/mmedia\g721.cpp
257 $(CXX) -zq -fo=$^@ $(MMEDIADLL_CXXFLAGS) $<
259 $(OBJS)\mmediadll_g723_24.obj : .AUTODEPEND ../../src/mmedia\g723_24.cpp
260 $(CXX) -zq -fo=$^@ $(MMEDIADLL_CXXFLAGS) $<
262 $(OBJS)\mmediadll_g723_40.obj : .AUTODEPEND ../../src/mmedia\g723_40.cpp
263 $(CXX) -zq -fo=$^@ $(MMEDIADLL_CXXFLAGS) $<
265 $(OBJS)\mmediadll_g72x.obj : .AUTODEPEND ../../src/mmedia\g72x.cpp
266 $(CXX) -zq -fo=$^@ $(MMEDIADLL_CXXFLAGS) $<
268 $(OBJS)\mmediadll_sndaiff.obj : .AUTODEPEND ../../src/mmedia\sndaiff.cpp
269 $(CXX) -zq -fo=$^@ $(MMEDIADLL_CXXFLAGS) $<
271 $(OBJS)\mmediadll_sndbase.obj : .AUTODEPEND ../../src/mmedia\sndbase.cpp
272 $(CXX) -zq -fo=$^@ $(MMEDIADLL_CXXFLAGS) $<
274 $(OBJS)\mmediadll_sndcodec.obj : .AUTODEPEND ../../src/mmedia\sndcodec.cpp
275 $(CXX) -zq -fo=$^@ $(MMEDIADLL_CXXFLAGS) $<
277 $(OBJS)\mmediadll_sndcpcm.obj : .AUTODEPEND ../../src/mmedia\sndcpcm.cpp
278 $(CXX) -zq -fo=$^@ $(MMEDIADLL_CXXFLAGS) $<
280 $(OBJS)\mmediadll_sndfile.obj : .AUTODEPEND ../../src/mmedia\sndfile.cpp
281 $(CXX) -zq -fo=$^@ $(MMEDIADLL_CXXFLAGS) $<
283 $(OBJS)\mmediadll_sndg72x.obj : .AUTODEPEND ../../src/mmedia\sndg72x.cpp
284 $(CXX) -zq -fo=$^@ $(MMEDIADLL_CXXFLAGS) $<
286 $(OBJS)\mmediadll_sndmsad.obj : .AUTODEPEND ../../src/mmedia\sndmsad.cpp
287 $(CXX) -zq -fo=$^@ $(MMEDIADLL_CXXFLAGS) $<
289 $(OBJS)\mmediadll_sndpcm.obj : .AUTODEPEND ../../src/mmedia\sndpcm.cpp
290 $(CXX) -zq -fo=$^@ $(MMEDIADLL_CXXFLAGS) $<
292 $(OBJS)\mmediadll_sndulaw.obj : .AUTODEPEND ../../src/mmedia\sndulaw.cpp
293 $(CXX) -zq -fo=$^@ $(MMEDIADLL_CXXFLAGS) $<
295 $(OBJS)\mmediadll_sndwav.obj : .AUTODEPEND ../../src/mmedia\sndwav.cpp
296 $(CXX) -zq -fo=$^@ $(MMEDIADLL_CXXFLAGS) $<
298 $(OBJS)\mmediadll_sndwin.obj : .AUTODEPEND ../../src/mmedia\sndwin.cpp
299 $(CXX) -zq -fo=$^@ $(MMEDIADLL_CXXFLAGS) $<
301 $(OBJS)\mmediadll_vidbase.obj : .AUTODEPEND ../../src/mmedia\vidbase.cpp
302 $(CXX) -zq -fo=$^@ $(MMEDIADLL_CXXFLAGS) $<
304 $(OBJS)\mmediadll_vidwin.obj : .AUTODEPEND ../../src/mmedia\vidwin.cpp
305 $(CXX) -zq -fo=$^@ $(MMEDIADLL_CXXFLAGS) $<
307 $(OBJS)\mmedialib_cdbase.obj : .AUTODEPEND ../../src/mmedia\cdbase.cpp
308 $(CXX) -zq -fo=$^@ $(MMEDIALIB_CXXFLAGS) $<
310 $(OBJS)\mmedialib_cdwin.obj : .AUTODEPEND ../../src/mmedia\cdwin.cpp
311 $(CXX) -zq -fo=$^@ $(MMEDIALIB_CXXFLAGS) $<
313 $(OBJS)\mmedialib_dummy.obj : .AUTODEPEND ../../src/mmedia\..\..\..\src\msw\dummy.cpp
314 $(CXX) -zq -fo=$^@ $(MMEDIALIB_CXXFLAGS) $<
316 $(OBJS)\mmedialib_g711.obj : .AUTODEPEND ../../src/mmedia\g711.cpp
317 $(CXX) -zq -fo=$^@ $(MMEDIALIB_CXXFLAGS) $<
319 $(OBJS)\mmedialib_g721.obj : .AUTODEPEND ../../src/mmedia\g721.cpp
320 $(CXX) -zq -fo=$^@ $(MMEDIALIB_CXXFLAGS) $<
322 $(OBJS)\mmedialib_g723_24.obj : .AUTODEPEND ../../src/mmedia\g723_24.cpp
323 $(CXX) -zq -fo=$^@ $(MMEDIALIB_CXXFLAGS) $<
325 $(OBJS)\mmedialib_g723_40.obj : .AUTODEPEND ../../src/mmedia\g723_40.cpp
326 $(CXX) -zq -fo=$^@ $(MMEDIALIB_CXXFLAGS) $<
328 $(OBJS)\mmedialib_g72x.obj : .AUTODEPEND ../../src/mmedia\g72x.cpp
329 $(CXX) -zq -fo=$^@ $(MMEDIALIB_CXXFLAGS) $<
331 $(OBJS)\mmedialib_sndaiff.obj : .AUTODEPEND ../../src/mmedia\sndaiff.cpp
332 $(CXX) -zq -fo=$^@ $(MMEDIALIB_CXXFLAGS) $<
334 $(OBJS)\mmedialib_sndbase.obj : .AUTODEPEND ../../src/mmedia\sndbase.cpp
335 $(CXX) -zq -fo=$^@ $(MMEDIALIB_CXXFLAGS) $<
337 $(OBJS)\mmedialib_sndcodec.obj : .AUTODEPEND ../../src/mmedia\sndcodec.cpp
338 $(CXX) -zq -fo=$^@ $(MMEDIALIB_CXXFLAGS) $<
340 $(OBJS)\mmedialib_sndcpcm.obj : .AUTODEPEND ../../src/mmedia\sndcpcm.cpp
341 $(CXX) -zq -fo=$^@ $(MMEDIALIB_CXXFLAGS) $<
343 $(OBJS)\mmedialib_sndfile.obj : .AUTODEPEND ../../src/mmedia\sndfile.cpp
344 $(CXX) -zq -fo=$^@ $(MMEDIALIB_CXXFLAGS) $<
346 $(OBJS)\mmedialib_sndg72x.obj : .AUTODEPEND ../../src/mmedia\sndg72x.cpp
347 $(CXX) -zq -fo=$^@ $(MMEDIALIB_CXXFLAGS) $<
349 $(OBJS)\mmedialib_sndmsad.obj : .AUTODEPEND ../../src/mmedia\sndmsad.cpp
350 $(CXX) -zq -fo=$^@ $(MMEDIALIB_CXXFLAGS) $<
352 $(OBJS)\mmedialib_sndpcm.obj : .AUTODEPEND ../../src/mmedia\sndpcm.cpp
353 $(CXX) -zq -fo=$^@ $(MMEDIALIB_CXXFLAGS) $<
355 $(OBJS)\mmedialib_sndulaw.obj : .AUTODEPEND ../../src/mmedia\sndulaw.cpp
356 $(CXX) -zq -fo=$^@ $(MMEDIALIB_CXXFLAGS) $<
358 $(OBJS)\mmedialib_sndwav.obj : .AUTODEPEND ../../src/mmedia\sndwav.cpp
359 $(CXX) -zq -fo=$^@ $(MMEDIALIB_CXXFLAGS) $<
361 $(OBJS)\mmedialib_sndwin.obj : .AUTODEPEND ../../src/mmedia\sndwin.cpp
362 $(CXX) -zq -fo=$^@ $(MMEDIALIB_CXXFLAGS) $<
364 $(OBJS)\mmedialib_vidbase.obj : .AUTODEPEND ../../src/mmedia\vidbase.cpp
365 $(CXX) -zq -fo=$^@ $(MMEDIALIB_CXXFLAGS) $<
367 $(OBJS)\mmedialib_vidwin.obj : .AUTODEPEND ../../src/mmedia\vidwin.cpp
368 $(CXX) -zq -fo=$^@ $(MMEDIALIB_CXXFLAGS) $<
371 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
372 -if exist $(OBJS)\*.res del $(OBJS)\*.res
373 -if exist $(OBJS)\*.lbc del $(OBJS)\*.lbc
374 -if exist $(OBJS)\*.ilk del $(OBJS)\*.ilk
375 -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
376 -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_mmedia.lib del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_mmedia.lib
377 -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_mmedia.lib del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_mmedia.lib
380 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)250$(WXUNICODEFLAG)$(WXDEBUGFLAG)_mmedia_wat$(VENDORTAG).dll : $(MMEDIADLL_OBJECTS)
381 @%create $(OBJS)\mmediadll.lbc
382 @%append $(OBJS)\mmediadll.lbc option quiet
383 @%append $(OBJS)\mmediadll.lbc name $^@
384 @%append $(OBJS)\mmediadll.lbc option caseexact
385 @%append $(OBJS)\mmediadll.lbc $(LDFLAGS) $(__DEBUGINFO_1) libpath $(LIBDIRNAME)
386 @for %i in ($(MMEDIADLL_OBJECTS)) do @%append $(OBJS)\mmediadll.lbc file %i
387 @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
388 @%append $(OBJS)\mmediadll.lbc
389 @%append $(OBJS)\mmediadll.lbc system nt_dll
390 wlink @$(OBJS)\mmediadll.lbc
391 wlib -q -n -b $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_mmedia.lib +$^@
395 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_mmedia.lib : $(MMEDIALIB_OBJECTS)
396 @%create $(OBJS)\mmedialib.lbc
397 @for %i in ($(MMEDIALIB_OBJECTS)) do @%append $(OBJS)\mmedialib.lbc +%i
398 wlib -q -p2048 -n -b $^@ @$(OBJS)\mmedialib.lbc