1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.2.1 (http://bakefile.sourceforge.net)
4 # Do not modify, all changes will be overwritten!
5 # =========================================================================
7 include ../../../build/msw/config.gcc
9 # -------------------------------------------------------------------------
10 # Do not modify the rest of this file!
11 # -------------------------------------------------------------------------
15 CPPDEPS = -MT$@ -MF$@.d -MD
18 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
19 LIBDIRNAME = ..\..\src\mmedia\..\..\..\lib\gcc_$(LIBTYPE_SUFFIX)$(CFG)
21 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
22 MMEDIADLL_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) \
23 $(GCCFLAGS) -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
24 $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
25 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \
26 $(__GFXCTX_DEFINE_p) -I$(SETUPHDIR) -I..\..\src\mmedia\..\..\..\include -W \
27 -Wall -I..\..\src\mmedia\..\..\include -DWXUSINGDLL -DWXMAKINGDLL_MMEDIA \
28 $(__RTTIFLAG) $(__EXCEPTIONSFLAG) -Wno-ctor-dtor-privacy $(CPPFLAGS) \
31 $(OBJS)\mmediadll_dummy.o \
32 $(OBJS)\mmediadll_version_rc.o \
33 $(OBJS)\mmediadll_cdwin.o \
34 $(OBJS)\mmediadll_sndwin.o \
35 $(OBJS)\mmediadll_vidwin.o \
36 $(OBJS)\mmediadll_cdbase.o \
37 $(OBJS)\mmediadll_g711.o \
38 $(OBJS)\mmediadll_g721.o \
39 $(OBJS)\mmediadll_g723_24.o \
40 $(OBJS)\mmediadll_g723_40.o \
41 $(OBJS)\mmediadll_g72x.o \
42 $(OBJS)\mmediadll_sndaiff.o \
43 $(OBJS)\mmediadll_sndbase.o \
44 $(OBJS)\mmediadll_sndcodec.o \
45 $(OBJS)\mmediadll_sndcpcm.o \
46 $(OBJS)\mmediadll_sndfile.o \
47 $(OBJS)\mmediadll_sndg72x.o \
48 $(OBJS)\mmediadll_sndmsad.o \
49 $(OBJS)\mmediadll_sndpcm.o \
50 $(OBJS)\mmediadll_sndulaw.o \
51 $(OBJS)\mmediadll_sndwav.o \
52 $(OBJS)\mmediadll_vidbase.o
53 MMEDIALIB_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) \
54 $(GCCFLAGS) -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
55 $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
56 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \
57 $(__GFXCTX_DEFINE_p) -I$(SETUPHDIR) -I..\..\src\mmedia\..\..\..\include -W \
58 -Wall -I..\..\src\mmedia\..\..\include $(__RTTIFLAG) $(__EXCEPTIONSFLAG) \
59 -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)
61 $(OBJS)\mmedialib_dummy.o \
62 $(OBJS)\mmedialib_cdwin.o \
63 $(OBJS)\mmedialib_sndwin.o \
64 $(OBJS)\mmedialib_vidwin.o \
65 $(OBJS)\mmedialib_cdbase.o \
66 $(OBJS)\mmedialib_g711.o \
67 $(OBJS)\mmedialib_g721.o \
68 $(OBJS)\mmedialib_g723_24.o \
69 $(OBJS)\mmedialib_g723_40.o \
70 $(OBJS)\mmedialib_g72x.o \
71 $(OBJS)\mmedialib_sndaiff.o \
72 $(OBJS)\mmedialib_sndbase.o \
73 $(OBJS)\mmedialib_sndcodec.o \
74 $(OBJS)\mmedialib_sndcpcm.o \
75 $(OBJS)\mmedialib_sndfile.o \
76 $(OBJS)\mmedialib_sndg72x.o \
77 $(OBJS)\mmedialib_sndmsad.o \
78 $(OBJS)\mmedialib_sndpcm.o \
79 $(OBJS)\mmedialib_sndulaw.o \
80 $(OBJS)\mmedialib_sndwav.o \
81 $(OBJS)\mmedialib_vidbase.o
83 ### Conditionally set variables: ###
85 ifeq ($(GCC_VERSION),2.95)
86 GCCFLAGS = -fvtable-thunks
94 ifeq ($(OFFICIAL_BUILD),0)
95 VENDORTAG = _$(VENDOR)
97 ifeq ($(OFFICIAL_BUILD),1)
100 ifeq ($(BUILD),debug)
101 ifeq ($(DEBUG_FLAG),default)
105 ifeq ($(DEBUG_FLAG),1)
123 ifeq ($(MONOLITHIC),0)
126 ifeq ($(MONOLITHIC),1)
130 __mmediadll___depname = \
131 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_mmedia_gcc$(VENDORTAG).dll
134 __WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__
136 ifeq ($(BUILD),debug)
137 ifeq ($(DEBUG_FLAG),default)
138 __DEBUG_DEFINE_p_1 = --define __WXDEBUG__
141 ifeq ($(DEBUG_FLAG),1)
142 __DEBUG_DEFINE_p_1 = --define __WXDEBUG__
144 ifeq ($(USE_EXCEPTIONS),0)
145 __EXCEPTIONS_DEFINE_p_1 = --define wxNO_EXCEPTIONS
148 __RTTI_DEFINE_p_1 = --define wxNO_RTTI
150 ifeq ($(USE_THREADS),0)
151 __THREAD_DEFINE_p_1 = --define wxNO_THREADS
154 __UNICODE_DEFINE_p_1 = --define _UNICODE
157 __MSLU_DEFINE_p_1 = --define wxUSE_UNICODE_MSLU=1
159 ifeq ($(USE_GDIPLUS),1)
160 __GFXCTX_DEFINE_p_1 = --define wxUSE_GRAPHICS_CONTEXT=1
162 ifeq ($(MONOLITHIC),1)
164 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
167 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
170 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
173 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
176 __UNICOWS_LIB_p = -lunicows
178 ifeq ($(USE_GDIPLUS),1)
179 __GDIPLUS_LIB_p = -lgdiplus
181 ifeq ($(MONOLITHIC),0)
183 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
185 ifeq ($(MONOLITHIC),0)
187 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
190 __mmedialib___depname = \
191 $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_mmedia.a
193 ifeq ($(BUILD),debug)
194 ifeq ($(DEBUG_INFO),default)
198 ifeq ($(BUILD),release)
199 ifeq ($(DEBUG_INFO),default)
203 ifeq ($(DEBUG_INFO),0)
206 ifeq ($(DEBUG_INFO),1)
209 ifeq ($(BUILD),debug)
212 ifeq ($(BUILD),release)
215 ifeq ($(USE_THREADS),0)
218 ifeq ($(USE_THREADS),1)
219 __THREADSFLAG = -mthreads
222 __RTTIFLAG = -fno-rtti
227 ifeq ($(USE_EXCEPTIONS),0)
228 __EXCEPTIONSFLAG = -fno-exceptions
230 ifeq ($(USE_EXCEPTIONS),1)
234 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
236 ifeq ($(BUILD),debug)
237 ifeq ($(DEBUG_FLAG),default)
238 __DEBUG_DEFINE_p = -D__WXDEBUG__
241 ifeq ($(DEBUG_FLAG),1)
242 __DEBUG_DEFINE_p = -D__WXDEBUG__
244 ifeq ($(USE_EXCEPTIONS),0)
245 __EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
248 __RTTI_DEFINE_p = -DwxNO_RTTI
250 ifeq ($(USE_THREADS),0)
251 __THREAD_DEFINE_p = -DwxNO_THREADS
254 __UNICODE_DEFINE_p = -D_UNICODE
257 __MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
259 ifeq ($(USE_GDIPLUS),1)
260 __GFXCTX_DEFINE_p = -DwxUSE_GRAPHICS_CONTEXT=1
266 -if not exist $(OBJS) mkdir $(OBJS)
270 all: $(__mmediadll___depname) $(__mmedialib___depname)
273 -if exist $(OBJS)\*.o del $(OBJS)\*.o
274 -if exist $(OBJS)\*.d del $(OBJS)\*.d
275 -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_mmedia_gcc$(VENDORTAG).dll del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_mmedia_gcc$(VENDORTAG).dll
276 -if exist $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_mmedia.a del $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_mmedia.a
277 -if exist $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_mmedia.a del $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_mmedia.a
280 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_mmedia_gcc$(VENDORTAG).dll: $(MMEDIADLL_OBJECTS) $(OBJS)\mmediadll_version_rc.o
281 $(CXX) -shared -fPIC -o $@ $(MMEDIADLL_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) $(__THREADSFLAG) -L$(LIBDIRNAME) -Wl,--out-implib,$(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_mmedia.a $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) -lwxzlib$(WXDEBUGFLAG) -lwxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG) -lwxexpat$(WXDEBUGFLAG) $(EXTRALIBS_FOR_BASE) $(__UNICOWS_LIB_p) $(__GDIPLUS_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lodbc32 $(__WXLIB_CORE_p) $(__WXLIB_BASE_p)
285 $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_mmedia.a: $(MMEDIALIB_OBJECTS)
287 ar rcu $@ $(MMEDIALIB_OBJECTS)
291 $(OBJS)\mmediadll_dummy.o: ../../src/mmedia/../../../src/common/dummy.cpp
292 $(CXX) -c -o $@ $(MMEDIADLL_CXXFLAGS) $(CPPDEPS) $<
294 $(OBJS)\mmediadll_version_rc.o: ../../src/mmedia/../../../src/msw/version.rc
295 windres --use-temp-file -i$< -o$@ --define __WXMSW__ $(__WXUNIV_DEFINE_p_1) $(__DEBUG_DEFINE_p_1) $(__EXCEPTIONS_DEFINE_p_1) $(__RTTI_DEFINE_p_1) $(__THREAD_DEFINE_p_1) $(__UNICODE_DEFINE_p_1) $(__MSLU_DEFINE_p_1) $(__GFXCTX_DEFINE_p_1) --include-dir $(SETUPHDIR) --include-dir ../../src/mmedia/../../../include --define WXDLLNAME=wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_mmedia_gcc$(VENDORTAG)
297 $(OBJS)\mmediadll_cdwin.o: ../../src/mmedia/cdwin.cpp
298 $(CXX) -c -o $@ $(MMEDIADLL_CXXFLAGS) $(CPPDEPS) $<
300 $(OBJS)\mmediadll_sndwin.o: ../../src/mmedia/sndwin.cpp
301 $(CXX) -c -o $@ $(MMEDIADLL_CXXFLAGS) $(CPPDEPS) $<
303 $(OBJS)\mmediadll_vidwin.o: ../../src/mmedia/vidwin.cpp
304 $(CXX) -c -o $@ $(MMEDIADLL_CXXFLAGS) $(CPPDEPS) $<
306 $(OBJS)\mmediadll_cdbase.o: ../../src/mmedia/cdbase.cpp
307 $(CXX) -c -o $@ $(MMEDIADLL_CXXFLAGS) $(CPPDEPS) $<
309 $(OBJS)\mmediadll_g711.o: ../../src/mmedia/g711.cpp
310 $(CXX) -c -o $@ $(MMEDIADLL_CXXFLAGS) $(CPPDEPS) $<
312 $(OBJS)\mmediadll_g721.o: ../../src/mmedia/g721.cpp
313 $(CXX) -c -o $@ $(MMEDIADLL_CXXFLAGS) $(CPPDEPS) $<
315 $(OBJS)\mmediadll_g723_24.o: ../../src/mmedia/g723_24.cpp
316 $(CXX) -c -o $@ $(MMEDIADLL_CXXFLAGS) $(CPPDEPS) $<
318 $(OBJS)\mmediadll_g723_40.o: ../../src/mmedia/g723_40.cpp
319 $(CXX) -c -o $@ $(MMEDIADLL_CXXFLAGS) $(CPPDEPS) $<
321 $(OBJS)\mmediadll_g72x.o: ../../src/mmedia/g72x.cpp
322 $(CXX) -c -o $@ $(MMEDIADLL_CXXFLAGS) $(CPPDEPS) $<
324 $(OBJS)\mmediadll_sndaiff.o: ../../src/mmedia/sndaiff.cpp
325 $(CXX) -c -o $@ $(MMEDIADLL_CXXFLAGS) $(CPPDEPS) $<
327 $(OBJS)\mmediadll_sndbase.o: ../../src/mmedia/sndbase.cpp
328 $(CXX) -c -o $@ $(MMEDIADLL_CXXFLAGS) $(CPPDEPS) $<
330 $(OBJS)\mmediadll_sndcodec.o: ../../src/mmedia/sndcodec.cpp
331 $(CXX) -c -o $@ $(MMEDIADLL_CXXFLAGS) $(CPPDEPS) $<
333 $(OBJS)\mmediadll_sndcpcm.o: ../../src/mmedia/sndcpcm.cpp
334 $(CXX) -c -o $@ $(MMEDIADLL_CXXFLAGS) $(CPPDEPS) $<
336 $(OBJS)\mmediadll_sndfile.o: ../../src/mmedia/sndfile.cpp
337 $(CXX) -c -o $@ $(MMEDIADLL_CXXFLAGS) $(CPPDEPS) $<
339 $(OBJS)\mmediadll_sndg72x.o: ../../src/mmedia/sndg72x.cpp
340 $(CXX) -c -o $@ $(MMEDIADLL_CXXFLAGS) $(CPPDEPS) $<
342 $(OBJS)\mmediadll_sndmsad.o: ../../src/mmedia/sndmsad.cpp
343 $(CXX) -c -o $@ $(MMEDIADLL_CXXFLAGS) $(CPPDEPS) $<
345 $(OBJS)\mmediadll_sndpcm.o: ../../src/mmedia/sndpcm.cpp
346 $(CXX) -c -o $@ $(MMEDIADLL_CXXFLAGS) $(CPPDEPS) $<
348 $(OBJS)\mmediadll_sndulaw.o: ../../src/mmedia/sndulaw.cpp
349 $(CXX) -c -o $@ $(MMEDIADLL_CXXFLAGS) $(CPPDEPS) $<
351 $(OBJS)\mmediadll_sndwav.o: ../../src/mmedia/sndwav.cpp
352 $(CXX) -c -o $@ $(MMEDIADLL_CXXFLAGS) $(CPPDEPS) $<
354 $(OBJS)\mmediadll_vidbase.o: ../../src/mmedia/vidbase.cpp
355 $(CXX) -c -o $@ $(MMEDIADLL_CXXFLAGS) $(CPPDEPS) $<
357 $(OBJS)\mmedialib_dummy.o: ../../src/mmedia/../../../src/common/dummy.cpp
358 $(CXX) -c -o $@ $(MMEDIALIB_CXXFLAGS) $(CPPDEPS) $<
360 $(OBJS)\mmedialib_cdwin.o: ../../src/mmedia/cdwin.cpp
361 $(CXX) -c -o $@ $(MMEDIALIB_CXXFLAGS) $(CPPDEPS) $<
363 $(OBJS)\mmedialib_sndwin.o: ../../src/mmedia/sndwin.cpp
364 $(CXX) -c -o $@ $(MMEDIALIB_CXXFLAGS) $(CPPDEPS) $<
366 $(OBJS)\mmedialib_vidwin.o: ../../src/mmedia/vidwin.cpp
367 $(CXX) -c -o $@ $(MMEDIALIB_CXXFLAGS) $(CPPDEPS) $<
369 $(OBJS)\mmedialib_cdbase.o: ../../src/mmedia/cdbase.cpp
370 $(CXX) -c -o $@ $(MMEDIALIB_CXXFLAGS) $(CPPDEPS) $<
372 $(OBJS)\mmedialib_g711.o: ../../src/mmedia/g711.cpp
373 $(CXX) -c -o $@ $(MMEDIALIB_CXXFLAGS) $(CPPDEPS) $<
375 $(OBJS)\mmedialib_g721.o: ../../src/mmedia/g721.cpp
376 $(CXX) -c -o $@ $(MMEDIALIB_CXXFLAGS) $(CPPDEPS) $<
378 $(OBJS)\mmedialib_g723_24.o: ../../src/mmedia/g723_24.cpp
379 $(CXX) -c -o $@ $(MMEDIALIB_CXXFLAGS) $(CPPDEPS) $<
381 $(OBJS)\mmedialib_g723_40.o: ../../src/mmedia/g723_40.cpp
382 $(CXX) -c -o $@ $(MMEDIALIB_CXXFLAGS) $(CPPDEPS) $<
384 $(OBJS)\mmedialib_g72x.o: ../../src/mmedia/g72x.cpp
385 $(CXX) -c -o $@ $(MMEDIALIB_CXXFLAGS) $(CPPDEPS) $<
387 $(OBJS)\mmedialib_sndaiff.o: ../../src/mmedia/sndaiff.cpp
388 $(CXX) -c -o $@ $(MMEDIALIB_CXXFLAGS) $(CPPDEPS) $<
390 $(OBJS)\mmedialib_sndbase.o: ../../src/mmedia/sndbase.cpp
391 $(CXX) -c -o $@ $(MMEDIALIB_CXXFLAGS) $(CPPDEPS) $<
393 $(OBJS)\mmedialib_sndcodec.o: ../../src/mmedia/sndcodec.cpp
394 $(CXX) -c -o $@ $(MMEDIALIB_CXXFLAGS) $(CPPDEPS) $<
396 $(OBJS)\mmedialib_sndcpcm.o: ../../src/mmedia/sndcpcm.cpp
397 $(CXX) -c -o $@ $(MMEDIALIB_CXXFLAGS) $(CPPDEPS) $<
399 $(OBJS)\mmedialib_sndfile.o: ../../src/mmedia/sndfile.cpp
400 $(CXX) -c -o $@ $(MMEDIALIB_CXXFLAGS) $(CPPDEPS) $<
402 $(OBJS)\mmedialib_sndg72x.o: ../../src/mmedia/sndg72x.cpp
403 $(CXX) -c -o $@ $(MMEDIALIB_CXXFLAGS) $(CPPDEPS) $<
405 $(OBJS)\mmedialib_sndmsad.o: ../../src/mmedia/sndmsad.cpp
406 $(CXX) -c -o $@ $(MMEDIALIB_CXXFLAGS) $(CPPDEPS) $<
408 $(OBJS)\mmedialib_sndpcm.o: ../../src/mmedia/sndpcm.cpp
409 $(CXX) -c -o $@ $(MMEDIALIB_CXXFLAGS) $(CPPDEPS) $<
411 $(OBJS)\mmedialib_sndulaw.o: ../../src/mmedia/sndulaw.cpp
412 $(CXX) -c -o $@ $(MMEDIALIB_CXXFLAGS) $(CPPDEPS) $<
414 $(OBJS)\mmedialib_sndwav.o: ../../src/mmedia/sndwav.cpp
415 $(CXX) -c -o $@ $(MMEDIALIB_CXXFLAGS) $(CPPDEPS) $<
417 $(OBJS)\mmedialib_vidbase.o: ../../src/mmedia/vidbase.cpp
418 $(CXX) -c -o $@ $(MMEDIALIB_CXXFLAGS) $(CPPDEPS) $<
423 # Dependencies tracking: