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)0
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 -I$(SETUPHDIR) -I..\..\src\mmedia\..\..\..\include -W -Wall \
28 -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 -I$(SETUPHDIR) -I..\..\src\mmedia\..\..\..\include -W -Wall \
59 -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 ($(MONOLITHIC),1)
162 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
165 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
168 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
171 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
174 __UNICOWS_LIB_p = -lunicows
176 ifeq ($(MONOLITHIC),0)
178 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
180 ifeq ($(MONOLITHIC),0)
182 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
185 __mmedialib___depname = \
186 $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_mmedia.a
188 ifeq ($(BUILD),debug)
189 ifeq ($(DEBUG_INFO),default)
193 ifeq ($(BUILD),release)
194 ifeq ($(DEBUG_INFO),default)
198 ifeq ($(DEBUG_INFO),0)
201 ifeq ($(DEBUG_INFO),1)
204 ifeq ($(BUILD),debug)
207 ifeq ($(BUILD),release)
210 ifeq ($(USE_THREADS),0)
213 ifeq ($(USE_THREADS),1)
214 __THREADSFLAG = -mthreads
217 __RTTIFLAG = -fno-rtti
222 ifeq ($(USE_EXCEPTIONS),0)
223 __EXCEPTIONSFLAG = -fno-exceptions
225 ifeq ($(USE_EXCEPTIONS),1)
229 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
231 ifeq ($(BUILD),debug)
232 ifeq ($(DEBUG_FLAG),default)
233 __DEBUG_DEFINE_p = -D__WXDEBUG__
236 ifeq ($(DEBUG_FLAG),1)
237 __DEBUG_DEFINE_p = -D__WXDEBUG__
239 ifeq ($(USE_EXCEPTIONS),0)
240 __EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
243 __RTTI_DEFINE_p = -DwxNO_RTTI
245 ifeq ($(USE_THREADS),0)
246 __THREAD_DEFINE_p = -DwxNO_THREADS
249 __UNICODE_DEFINE_p = -D_UNICODE
252 __MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
258 -if not exist $(OBJS) mkdir $(OBJS)
262 all: $(__mmediadll___depname) $(__mmedialib___depname)
265 -if exist $(OBJS)\*.o del $(OBJS)\*.o
266 -if exist $(OBJS)\*.d del $(OBJS)\*.d
267 -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
268 -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
269 -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
272 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_mmedia_gcc$(VENDORTAG).dll: $(MMEDIADLL_OBJECTS) $(OBJS)\mmediadll_version_rc.o
273 $(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) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lodbc32 $(__WXLIB_CORE_p) $(__WXLIB_BASE_p)
277 $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_mmedia.a: $(MMEDIALIB_OBJECTS)
279 ar rcu $@ $(MMEDIALIB_OBJECTS)
283 $(OBJS)\mmediadll_dummy.o: ../../src/mmedia/../../../src/common/dummy.cpp
284 $(CXX) -c -o $@ $(MMEDIADLL_CXXFLAGS) $(CPPDEPS) $<
286 $(OBJS)\mmediadll_version_rc.o: ../../src/mmedia/../../../src/msw/version.rc
287 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) --include-dir $(SETUPHDIR) --include-dir ../../src/mmedia/../../../include --define WXDLLNAME=wx$(PORTNAME)$(WXUNIVNAME)$(WX_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_mmedia_gcc$(VENDORTAG)
289 $(OBJS)\mmediadll_cdwin.o: ../../src/mmedia/cdwin.cpp
290 $(CXX) -c -o $@ $(MMEDIADLL_CXXFLAGS) $(CPPDEPS) $<
292 $(OBJS)\mmediadll_sndwin.o: ../../src/mmedia/sndwin.cpp
293 $(CXX) -c -o $@ $(MMEDIADLL_CXXFLAGS) $(CPPDEPS) $<
295 $(OBJS)\mmediadll_vidwin.o: ../../src/mmedia/vidwin.cpp
296 $(CXX) -c -o $@ $(MMEDIADLL_CXXFLAGS) $(CPPDEPS) $<
298 $(OBJS)\mmediadll_cdbase.o: ../../src/mmedia/cdbase.cpp
299 $(CXX) -c -o $@ $(MMEDIADLL_CXXFLAGS) $(CPPDEPS) $<
301 $(OBJS)\mmediadll_g711.o: ../../src/mmedia/g711.cpp
302 $(CXX) -c -o $@ $(MMEDIADLL_CXXFLAGS) $(CPPDEPS) $<
304 $(OBJS)\mmediadll_g721.o: ../../src/mmedia/g721.cpp
305 $(CXX) -c -o $@ $(MMEDIADLL_CXXFLAGS) $(CPPDEPS) $<
307 $(OBJS)\mmediadll_g723_24.o: ../../src/mmedia/g723_24.cpp
308 $(CXX) -c -o $@ $(MMEDIADLL_CXXFLAGS) $(CPPDEPS) $<
310 $(OBJS)\mmediadll_g723_40.o: ../../src/mmedia/g723_40.cpp
311 $(CXX) -c -o $@ $(MMEDIADLL_CXXFLAGS) $(CPPDEPS) $<
313 $(OBJS)\mmediadll_g72x.o: ../../src/mmedia/g72x.cpp
314 $(CXX) -c -o $@ $(MMEDIADLL_CXXFLAGS) $(CPPDEPS) $<
316 $(OBJS)\mmediadll_sndaiff.o: ../../src/mmedia/sndaiff.cpp
317 $(CXX) -c -o $@ $(MMEDIADLL_CXXFLAGS) $(CPPDEPS) $<
319 $(OBJS)\mmediadll_sndbase.o: ../../src/mmedia/sndbase.cpp
320 $(CXX) -c -o $@ $(MMEDIADLL_CXXFLAGS) $(CPPDEPS) $<
322 $(OBJS)\mmediadll_sndcodec.o: ../../src/mmedia/sndcodec.cpp
323 $(CXX) -c -o $@ $(MMEDIADLL_CXXFLAGS) $(CPPDEPS) $<
325 $(OBJS)\mmediadll_sndcpcm.o: ../../src/mmedia/sndcpcm.cpp
326 $(CXX) -c -o $@ $(MMEDIADLL_CXXFLAGS) $(CPPDEPS) $<
328 $(OBJS)\mmediadll_sndfile.o: ../../src/mmedia/sndfile.cpp
329 $(CXX) -c -o $@ $(MMEDIADLL_CXXFLAGS) $(CPPDEPS) $<
331 $(OBJS)\mmediadll_sndg72x.o: ../../src/mmedia/sndg72x.cpp
332 $(CXX) -c -o $@ $(MMEDIADLL_CXXFLAGS) $(CPPDEPS) $<
334 $(OBJS)\mmediadll_sndmsad.o: ../../src/mmedia/sndmsad.cpp
335 $(CXX) -c -o $@ $(MMEDIADLL_CXXFLAGS) $(CPPDEPS) $<
337 $(OBJS)\mmediadll_sndpcm.o: ../../src/mmedia/sndpcm.cpp
338 $(CXX) -c -o $@ $(MMEDIADLL_CXXFLAGS) $(CPPDEPS) $<
340 $(OBJS)\mmediadll_sndulaw.o: ../../src/mmedia/sndulaw.cpp
341 $(CXX) -c -o $@ $(MMEDIADLL_CXXFLAGS) $(CPPDEPS) $<
343 $(OBJS)\mmediadll_sndwav.o: ../../src/mmedia/sndwav.cpp
344 $(CXX) -c -o $@ $(MMEDIADLL_CXXFLAGS) $(CPPDEPS) $<
346 $(OBJS)\mmediadll_vidbase.o: ../../src/mmedia/vidbase.cpp
347 $(CXX) -c -o $@ $(MMEDIADLL_CXXFLAGS) $(CPPDEPS) $<
349 $(OBJS)\mmedialib_dummy.o: ../../src/mmedia/../../../src/common/dummy.cpp
350 $(CXX) -c -o $@ $(MMEDIALIB_CXXFLAGS) $(CPPDEPS) $<
352 $(OBJS)\mmedialib_cdwin.o: ../../src/mmedia/cdwin.cpp
353 $(CXX) -c -o $@ $(MMEDIALIB_CXXFLAGS) $(CPPDEPS) $<
355 $(OBJS)\mmedialib_sndwin.o: ../../src/mmedia/sndwin.cpp
356 $(CXX) -c -o $@ $(MMEDIALIB_CXXFLAGS) $(CPPDEPS) $<
358 $(OBJS)\mmedialib_vidwin.o: ../../src/mmedia/vidwin.cpp
359 $(CXX) -c -o $@ $(MMEDIALIB_CXXFLAGS) $(CPPDEPS) $<
361 $(OBJS)\mmedialib_cdbase.o: ../../src/mmedia/cdbase.cpp
362 $(CXX) -c -o $@ $(MMEDIALIB_CXXFLAGS) $(CPPDEPS) $<
364 $(OBJS)\mmedialib_g711.o: ../../src/mmedia/g711.cpp
365 $(CXX) -c -o $@ $(MMEDIALIB_CXXFLAGS) $(CPPDEPS) $<
367 $(OBJS)\mmedialib_g721.o: ../../src/mmedia/g721.cpp
368 $(CXX) -c -o $@ $(MMEDIALIB_CXXFLAGS) $(CPPDEPS) $<
370 $(OBJS)\mmedialib_g723_24.o: ../../src/mmedia/g723_24.cpp
371 $(CXX) -c -o $@ $(MMEDIALIB_CXXFLAGS) $(CPPDEPS) $<
373 $(OBJS)\mmedialib_g723_40.o: ../../src/mmedia/g723_40.cpp
374 $(CXX) -c -o $@ $(MMEDIALIB_CXXFLAGS) $(CPPDEPS) $<
376 $(OBJS)\mmedialib_g72x.o: ../../src/mmedia/g72x.cpp
377 $(CXX) -c -o $@ $(MMEDIALIB_CXXFLAGS) $(CPPDEPS) $<
379 $(OBJS)\mmedialib_sndaiff.o: ../../src/mmedia/sndaiff.cpp
380 $(CXX) -c -o $@ $(MMEDIALIB_CXXFLAGS) $(CPPDEPS) $<
382 $(OBJS)\mmedialib_sndbase.o: ../../src/mmedia/sndbase.cpp
383 $(CXX) -c -o $@ $(MMEDIALIB_CXXFLAGS) $(CPPDEPS) $<
385 $(OBJS)\mmedialib_sndcodec.o: ../../src/mmedia/sndcodec.cpp
386 $(CXX) -c -o $@ $(MMEDIALIB_CXXFLAGS) $(CPPDEPS) $<
388 $(OBJS)\mmedialib_sndcpcm.o: ../../src/mmedia/sndcpcm.cpp
389 $(CXX) -c -o $@ $(MMEDIALIB_CXXFLAGS) $(CPPDEPS) $<
391 $(OBJS)\mmedialib_sndfile.o: ../../src/mmedia/sndfile.cpp
392 $(CXX) -c -o $@ $(MMEDIALIB_CXXFLAGS) $(CPPDEPS) $<
394 $(OBJS)\mmedialib_sndg72x.o: ../../src/mmedia/sndg72x.cpp
395 $(CXX) -c -o $@ $(MMEDIALIB_CXXFLAGS) $(CPPDEPS) $<
397 $(OBJS)\mmedialib_sndmsad.o: ../../src/mmedia/sndmsad.cpp
398 $(CXX) -c -o $@ $(MMEDIALIB_CXXFLAGS) $(CPPDEPS) $<
400 $(OBJS)\mmedialib_sndpcm.o: ../../src/mmedia/sndpcm.cpp
401 $(CXX) -c -o $@ $(MMEDIALIB_CXXFLAGS) $(CPPDEPS) $<
403 $(OBJS)\mmedialib_sndulaw.o: ../../src/mmedia/sndulaw.cpp
404 $(CXX) -c -o $@ $(MMEDIALIB_CXXFLAGS) $(CPPDEPS) $<
406 $(OBJS)\mmedialib_sndwav.o: ../../src/mmedia/sndwav.cpp
407 $(CXX) -c -o $@ $(MMEDIALIB_CXXFLAGS) $(CPPDEPS) $<
409 $(OBJS)\mmedialib_vidbase.o: ../../src/mmedia/vidbase.cpp
410 $(CXX) -c -o $@ $(MMEDIALIB_CXXFLAGS) $(CPPDEPS) $<
415 # Dependencies tracking: