1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.2.0 (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
17 WX_VERSION_NODOT = $(WX_RELEASE_NODOT)2
19 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
20 LIBDIRNAME = ..\..\src\mmedia\..\..\..\lib\gcc_$(LIBTYPE_SUFFIX)$(CFG)
22 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
23 MMEDIADLL_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) \
24 $(GCCFLAGS) -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
25 $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
26 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \
27 $(__GFXCTX_DEFINE_p) -I$(SETUPHDIR) -I..\..\src\mmedia\..\..\..\include -W \
28 -Wall -I..\..\src\mmedia\..\..\include -DWXUSINGDLL -DWXMAKINGDLL_MMEDIA \
29 $(__RTTIFLAG) $(__EXCEPTIONSFLAG) -Wno-ctor-dtor-privacy $(CPPFLAGS) \
32 $(OBJS)\mmediadll_dummy.o \
33 $(OBJS)\mmediadll_version_rc.o \
34 $(OBJS)\mmediadll_cdwin.o \
35 $(OBJS)\mmediadll_sndwin.o \
36 $(OBJS)\mmediadll_vidwin.o \
37 $(OBJS)\mmediadll_cdbase.o \
38 $(OBJS)\mmediadll_g711.o \
39 $(OBJS)\mmediadll_g721.o \
40 $(OBJS)\mmediadll_g723_24.o \
41 $(OBJS)\mmediadll_g723_40.o \
42 $(OBJS)\mmediadll_g72x.o \
43 $(OBJS)\mmediadll_sndaiff.o \
44 $(OBJS)\mmediadll_sndbase.o \
45 $(OBJS)\mmediadll_sndcodec.o \
46 $(OBJS)\mmediadll_sndcpcm.o \
47 $(OBJS)\mmediadll_sndfile.o \
48 $(OBJS)\mmediadll_sndg72x.o \
49 $(OBJS)\mmediadll_sndmsad.o \
50 $(OBJS)\mmediadll_sndpcm.o \
51 $(OBJS)\mmediadll_sndulaw.o \
52 $(OBJS)\mmediadll_sndwav.o \
53 $(OBJS)\mmediadll_vidbase.o
54 MMEDIALIB_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) \
55 $(GCCFLAGS) -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
56 $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
57 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \
58 $(__GFXCTX_DEFINE_p) -I$(SETUPHDIR) -I..\..\src\mmedia\..\..\..\include -W \
59 -Wall -I..\..\src\mmedia\..\..\include $(__RTTIFLAG) $(__EXCEPTIONSFLAG) \
60 -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)
62 $(OBJS)\mmedialib_dummy.o \
63 $(OBJS)\mmedialib_cdwin.o \
64 $(OBJS)\mmedialib_sndwin.o \
65 $(OBJS)\mmedialib_vidwin.o \
66 $(OBJS)\mmedialib_cdbase.o \
67 $(OBJS)\mmedialib_g711.o \
68 $(OBJS)\mmedialib_g721.o \
69 $(OBJS)\mmedialib_g723_24.o \
70 $(OBJS)\mmedialib_g723_40.o \
71 $(OBJS)\mmedialib_g72x.o \
72 $(OBJS)\mmedialib_sndaiff.o \
73 $(OBJS)\mmedialib_sndbase.o \
74 $(OBJS)\mmedialib_sndcodec.o \
75 $(OBJS)\mmedialib_sndcpcm.o \
76 $(OBJS)\mmedialib_sndfile.o \
77 $(OBJS)\mmedialib_sndg72x.o \
78 $(OBJS)\mmedialib_sndmsad.o \
79 $(OBJS)\mmedialib_sndpcm.o \
80 $(OBJS)\mmedialib_sndulaw.o \
81 $(OBJS)\mmedialib_sndwav.o \
82 $(OBJS)\mmedialib_vidbase.o
84 ### Conditionally set variables: ###
86 ifeq ($(GCC_VERSION),2.95)
87 GCCFLAGS = -fvtable-thunks
95 ifeq ($(OFFICIAL_BUILD),0)
96 VENDORTAG = _$(VENDOR)
98 ifeq ($(OFFICIAL_BUILD),1)
101 ifeq ($(BUILD),debug)
102 ifeq ($(DEBUG_FLAG),default)
106 ifeq ($(DEBUG_FLAG),1)
124 ifeq ($(MONOLITHIC),0)
127 ifeq ($(MONOLITHIC),1)
131 __mmediadll___depname = \
132 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_mmedia_gcc$(VENDORTAG).dll
135 __WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__
137 ifeq ($(BUILD),debug)
138 ifeq ($(DEBUG_FLAG),default)
139 __DEBUG_DEFINE_p_1 = --define __WXDEBUG__
142 ifeq ($(DEBUG_FLAG),1)
143 __DEBUG_DEFINE_p_1 = --define __WXDEBUG__
145 ifeq ($(USE_EXCEPTIONS),0)
146 __EXCEPTIONS_DEFINE_p_1 = --define wxNO_EXCEPTIONS
149 __RTTI_DEFINE_p_1 = --define wxNO_RTTI
151 ifeq ($(USE_THREADS),0)
152 __THREAD_DEFINE_p_1 = --define wxNO_THREADS
155 __UNICODE_DEFINE_p_1 = --define _UNICODE
158 __MSLU_DEFINE_p_1 = --define wxUSE_UNICODE_MSLU=1
160 ifeq ($(USE_GDIPLUS),1)
161 __GFXCTX_DEFINE_p_1 = --define wxUSE_GRAPHICS_CONTEXT=1
163 ifeq ($(MONOLITHIC),1)
165 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
168 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
171 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
174 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
177 __UNICOWS_LIB_p = -lunicows
179 ifeq ($(USE_GDIPLUS),1)
180 __GDIPLUS_LIB_p = -lgdiplus
182 ifeq ($(MONOLITHIC),0)
184 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
186 ifeq ($(MONOLITHIC),0)
188 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
191 __mmedialib___depname = \
192 $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_mmedia.a
194 ifeq ($(BUILD),debug)
195 ifeq ($(DEBUG_INFO),default)
199 ifeq ($(BUILD),release)
200 ifeq ($(DEBUG_INFO),default)
204 ifeq ($(DEBUG_INFO),0)
207 ifeq ($(DEBUG_INFO),1)
210 ifeq ($(BUILD),debug)
213 ifeq ($(BUILD),release)
216 ifeq ($(USE_THREADS),0)
219 ifeq ($(USE_THREADS),1)
220 __THREADSFLAG = -mthreads
223 __RTTIFLAG = -fno-rtti
228 ifeq ($(USE_EXCEPTIONS),0)
229 __EXCEPTIONSFLAG = -fno-exceptions
231 ifeq ($(USE_EXCEPTIONS),1)
235 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
237 ifeq ($(BUILD),debug)
238 ifeq ($(DEBUG_FLAG),default)
239 __DEBUG_DEFINE_p = -D__WXDEBUG__
242 ifeq ($(DEBUG_FLAG),1)
243 __DEBUG_DEFINE_p = -D__WXDEBUG__
245 ifeq ($(USE_EXCEPTIONS),0)
246 __EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
249 __RTTI_DEFINE_p = -DwxNO_RTTI
251 ifeq ($(USE_THREADS),0)
252 __THREAD_DEFINE_p = -DwxNO_THREADS
255 __UNICODE_DEFINE_p = -D_UNICODE
258 __MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
260 ifeq ($(USE_GDIPLUS),1)
261 __GFXCTX_DEFINE_p = -DwxUSE_GRAPHICS_CONTEXT=1
267 -if not exist $(OBJS) mkdir $(OBJS)
271 all: $(__mmediadll___depname) $(__mmedialib___depname)
274 -if exist $(OBJS)\*.o del $(OBJS)\*.o
275 -if exist $(OBJS)\*.d del $(OBJS)\*.d
276 -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_mmedia_gcc$(VENDORTAG).dll del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_mmedia_gcc$(VENDORTAG).dll
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
278 -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
281 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_mmedia_gcc$(VENDORTAG).dll: $(MMEDIADLL_OBJECTS) $(OBJS)\mmediadll_version_rc.o
282 $(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)
286 $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_mmedia.a: $(MMEDIALIB_OBJECTS)
288 ar rcu $@ $(MMEDIALIB_OBJECTS)
292 $(OBJS)\mmediadll_dummy.o: ../../src/mmedia/../../../src/common/dummy.cpp
293 $(CXX) -c -o $@ $(MMEDIADLL_CXXFLAGS) $(CPPDEPS) $<
295 $(OBJS)\mmediadll_version_rc.o: ../../src/mmedia/../../../src/msw/version.rc
296 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_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_mmedia_gcc$(VENDORTAG)
298 $(OBJS)\mmediadll_cdwin.o: ../../src/mmedia/cdwin.cpp
299 $(CXX) -c -o $@ $(MMEDIADLL_CXXFLAGS) $(CPPDEPS) $<
301 $(OBJS)\mmediadll_sndwin.o: ../../src/mmedia/sndwin.cpp
302 $(CXX) -c -o $@ $(MMEDIADLL_CXXFLAGS) $(CPPDEPS) $<
304 $(OBJS)\mmediadll_vidwin.o: ../../src/mmedia/vidwin.cpp
305 $(CXX) -c -o $@ $(MMEDIADLL_CXXFLAGS) $(CPPDEPS) $<
307 $(OBJS)\mmediadll_cdbase.o: ../../src/mmedia/cdbase.cpp
308 $(CXX) -c -o $@ $(MMEDIADLL_CXXFLAGS) $(CPPDEPS) $<
310 $(OBJS)\mmediadll_g711.o: ../../src/mmedia/g711.cpp
311 $(CXX) -c -o $@ $(MMEDIADLL_CXXFLAGS) $(CPPDEPS) $<
313 $(OBJS)\mmediadll_g721.o: ../../src/mmedia/g721.cpp
314 $(CXX) -c -o $@ $(MMEDIADLL_CXXFLAGS) $(CPPDEPS) $<
316 $(OBJS)\mmediadll_g723_24.o: ../../src/mmedia/g723_24.cpp
317 $(CXX) -c -o $@ $(MMEDIADLL_CXXFLAGS) $(CPPDEPS) $<
319 $(OBJS)\mmediadll_g723_40.o: ../../src/mmedia/g723_40.cpp
320 $(CXX) -c -o $@ $(MMEDIADLL_CXXFLAGS) $(CPPDEPS) $<
322 $(OBJS)\mmediadll_g72x.o: ../../src/mmedia/g72x.cpp
323 $(CXX) -c -o $@ $(MMEDIADLL_CXXFLAGS) $(CPPDEPS) $<
325 $(OBJS)\mmediadll_sndaiff.o: ../../src/mmedia/sndaiff.cpp
326 $(CXX) -c -o $@ $(MMEDIADLL_CXXFLAGS) $(CPPDEPS) $<
328 $(OBJS)\mmediadll_sndbase.o: ../../src/mmedia/sndbase.cpp
329 $(CXX) -c -o $@ $(MMEDIADLL_CXXFLAGS) $(CPPDEPS) $<
331 $(OBJS)\mmediadll_sndcodec.o: ../../src/mmedia/sndcodec.cpp
332 $(CXX) -c -o $@ $(MMEDIADLL_CXXFLAGS) $(CPPDEPS) $<
334 $(OBJS)\mmediadll_sndcpcm.o: ../../src/mmedia/sndcpcm.cpp
335 $(CXX) -c -o $@ $(MMEDIADLL_CXXFLAGS) $(CPPDEPS) $<
337 $(OBJS)\mmediadll_sndfile.o: ../../src/mmedia/sndfile.cpp
338 $(CXX) -c -o $@ $(MMEDIADLL_CXXFLAGS) $(CPPDEPS) $<
340 $(OBJS)\mmediadll_sndg72x.o: ../../src/mmedia/sndg72x.cpp
341 $(CXX) -c -o $@ $(MMEDIADLL_CXXFLAGS) $(CPPDEPS) $<
343 $(OBJS)\mmediadll_sndmsad.o: ../../src/mmedia/sndmsad.cpp
344 $(CXX) -c -o $@ $(MMEDIADLL_CXXFLAGS) $(CPPDEPS) $<
346 $(OBJS)\mmediadll_sndpcm.o: ../../src/mmedia/sndpcm.cpp
347 $(CXX) -c -o $@ $(MMEDIADLL_CXXFLAGS) $(CPPDEPS) $<
349 $(OBJS)\mmediadll_sndulaw.o: ../../src/mmedia/sndulaw.cpp
350 $(CXX) -c -o $@ $(MMEDIADLL_CXXFLAGS) $(CPPDEPS) $<
352 $(OBJS)\mmediadll_sndwav.o: ../../src/mmedia/sndwav.cpp
353 $(CXX) -c -o $@ $(MMEDIADLL_CXXFLAGS) $(CPPDEPS) $<
355 $(OBJS)\mmediadll_vidbase.o: ../../src/mmedia/vidbase.cpp
356 $(CXX) -c -o $@ $(MMEDIADLL_CXXFLAGS) $(CPPDEPS) $<
358 $(OBJS)\mmedialib_dummy.o: ../../src/mmedia/../../../src/common/dummy.cpp
359 $(CXX) -c -o $@ $(MMEDIALIB_CXXFLAGS) $(CPPDEPS) $<
361 $(OBJS)\mmedialib_cdwin.o: ../../src/mmedia/cdwin.cpp
362 $(CXX) -c -o $@ $(MMEDIALIB_CXXFLAGS) $(CPPDEPS) $<
364 $(OBJS)\mmedialib_sndwin.o: ../../src/mmedia/sndwin.cpp
365 $(CXX) -c -o $@ $(MMEDIALIB_CXXFLAGS) $(CPPDEPS) $<
367 $(OBJS)\mmedialib_vidwin.o: ../../src/mmedia/vidwin.cpp
368 $(CXX) -c -o $@ $(MMEDIALIB_CXXFLAGS) $(CPPDEPS) $<
370 $(OBJS)\mmedialib_cdbase.o: ../../src/mmedia/cdbase.cpp
371 $(CXX) -c -o $@ $(MMEDIALIB_CXXFLAGS) $(CPPDEPS) $<
373 $(OBJS)\mmedialib_g711.o: ../../src/mmedia/g711.cpp
374 $(CXX) -c -o $@ $(MMEDIALIB_CXXFLAGS) $(CPPDEPS) $<
376 $(OBJS)\mmedialib_g721.o: ../../src/mmedia/g721.cpp
377 $(CXX) -c -o $@ $(MMEDIALIB_CXXFLAGS) $(CPPDEPS) $<
379 $(OBJS)\mmedialib_g723_24.o: ../../src/mmedia/g723_24.cpp
380 $(CXX) -c -o $@ $(MMEDIALIB_CXXFLAGS) $(CPPDEPS) $<
382 $(OBJS)\mmedialib_g723_40.o: ../../src/mmedia/g723_40.cpp
383 $(CXX) -c -o $@ $(MMEDIALIB_CXXFLAGS) $(CPPDEPS) $<
385 $(OBJS)\mmedialib_g72x.o: ../../src/mmedia/g72x.cpp
386 $(CXX) -c -o $@ $(MMEDIALIB_CXXFLAGS) $(CPPDEPS) $<
388 $(OBJS)\mmedialib_sndaiff.o: ../../src/mmedia/sndaiff.cpp
389 $(CXX) -c -o $@ $(MMEDIALIB_CXXFLAGS) $(CPPDEPS) $<
391 $(OBJS)\mmedialib_sndbase.o: ../../src/mmedia/sndbase.cpp
392 $(CXX) -c -o $@ $(MMEDIALIB_CXXFLAGS) $(CPPDEPS) $<
394 $(OBJS)\mmedialib_sndcodec.o: ../../src/mmedia/sndcodec.cpp
395 $(CXX) -c -o $@ $(MMEDIALIB_CXXFLAGS) $(CPPDEPS) $<
397 $(OBJS)\mmedialib_sndcpcm.o: ../../src/mmedia/sndcpcm.cpp
398 $(CXX) -c -o $@ $(MMEDIALIB_CXXFLAGS) $(CPPDEPS) $<
400 $(OBJS)\mmedialib_sndfile.o: ../../src/mmedia/sndfile.cpp
401 $(CXX) -c -o $@ $(MMEDIALIB_CXXFLAGS) $(CPPDEPS) $<
403 $(OBJS)\mmedialib_sndg72x.o: ../../src/mmedia/sndg72x.cpp
404 $(CXX) -c -o $@ $(MMEDIALIB_CXXFLAGS) $(CPPDEPS) $<
406 $(OBJS)\mmedialib_sndmsad.o: ../../src/mmedia/sndmsad.cpp
407 $(CXX) -c -o $@ $(MMEDIALIB_CXXFLAGS) $(CPPDEPS) $<
409 $(OBJS)\mmedialib_sndpcm.o: ../../src/mmedia/sndpcm.cpp
410 $(CXX) -c -o $@ $(MMEDIALIB_CXXFLAGS) $(CPPDEPS) $<
412 $(OBJS)\mmedialib_sndulaw.o: ../../src/mmedia/sndulaw.cpp
413 $(CXX) -c -o $@ $(MMEDIALIB_CXXFLAGS) $(CPPDEPS) $<
415 $(OBJS)\mmedialib_sndwav.o: ../../src/mmedia/sndwav.cpp
416 $(CXX) -c -o $@ $(MMEDIALIB_CXXFLAGS) $(CPPDEPS) $<
418 $(OBJS)\mmedialib_vidbase.o: ../../src/mmedia/vidbase.cpp
419 $(CXX) -c -o $@ $(MMEDIALIB_CXXFLAGS) $(CPPDEPS) $<
424 # Dependencies tracking: