1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.1.8 (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 # -------------------------------------------------------------------------
17 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
18 LIBDIRNAME = ..\..\src\mmedia\..\..\..\lib\gcc_$(LIBTYPE_SUFFIX)$(CFG)
20 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
21 MMEDIADLL_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) \
22 $(GCCFLAGS) -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
23 $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
24 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) \
25 -I..\..\src\mmedia\..\..\..\include -I$(SETUPHDIR) -W -Wall \
26 -I..\..\src\mmedia\..\..\include -DWXUSINGDLL -DWXMAKINGDLL_MMEDIA \
27 $(__RTTIFLAG) $(__EXCEPTIONSFLAG) -Wno-ctor-dtor-privacy $(CPPFLAGS) \
30 $(OBJS)\mmediadll_dummy.o \
31 $(OBJS)\mmediadll_version_rc.o \
32 $(OBJS)\mmediadll_cdwin.o \
33 $(OBJS)\mmediadll_sndwin.o \
34 $(OBJS)\mmediadll_vidwin.o \
35 $(OBJS)\mmediadll_cdbase.o \
36 $(OBJS)\mmediadll_g711.o \
37 $(OBJS)\mmediadll_g721.o \
38 $(OBJS)\mmediadll_g723_24.o \
39 $(OBJS)\mmediadll_g723_40.o \
40 $(OBJS)\mmediadll_g72x.o \
41 $(OBJS)\mmediadll_sndaiff.o \
42 $(OBJS)\mmediadll_sndbase.o \
43 $(OBJS)\mmediadll_sndcodec.o \
44 $(OBJS)\mmediadll_sndcpcm.o \
45 $(OBJS)\mmediadll_sndfile.o \
46 $(OBJS)\mmediadll_sndg72x.o \
47 $(OBJS)\mmediadll_sndmsad.o \
48 $(OBJS)\mmediadll_sndpcm.o \
49 $(OBJS)\mmediadll_sndulaw.o \
50 $(OBJS)\mmediadll_sndwav.o \
51 $(OBJS)\mmediadll_vidbase.o
52 MMEDIALIB_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) \
53 $(GCCFLAGS) -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
54 $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
55 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) \
56 -I..\..\src\mmedia\..\..\..\include -I$(SETUPHDIR) -W -Wall \
57 -I..\..\src\mmedia\..\..\include $(__RTTIFLAG) $(__EXCEPTIONSFLAG) \
58 -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)
60 $(OBJS)\mmedialib_dummy.o \
61 $(OBJS)\mmedialib_cdwin.o \
62 $(OBJS)\mmedialib_sndwin.o \
63 $(OBJS)\mmedialib_vidwin.o \
64 $(OBJS)\mmedialib_cdbase.o \
65 $(OBJS)\mmedialib_g711.o \
66 $(OBJS)\mmedialib_g721.o \
67 $(OBJS)\mmedialib_g723_24.o \
68 $(OBJS)\mmedialib_g723_40.o \
69 $(OBJS)\mmedialib_g72x.o \
70 $(OBJS)\mmedialib_sndaiff.o \
71 $(OBJS)\mmedialib_sndbase.o \
72 $(OBJS)\mmedialib_sndcodec.o \
73 $(OBJS)\mmedialib_sndcpcm.o \
74 $(OBJS)\mmedialib_sndfile.o \
75 $(OBJS)\mmedialib_sndg72x.o \
76 $(OBJS)\mmedialib_sndmsad.o \
77 $(OBJS)\mmedialib_sndpcm.o \
78 $(OBJS)\mmedialib_sndulaw.o \
79 $(OBJS)\mmedialib_sndwav.o \
80 $(OBJS)\mmedialib_vidbase.o
82 ### Conditionally set variables: ###
84 ifeq ($(GCC_VERSION),2.95)
85 GCCFLAGS = -fvtable-thunks
93 ifeq ($(OFFICIAL_BUILD),0)
94 VENDORTAG = _$(VENDOR)
96 ifeq ($(OFFICIAL_BUILD),1)
100 ifeq ($(DEBUG_FLAG),default)
104 ifeq ($(DEBUG_FLAG),1)
122 ifeq ($(MONOLITHIC),0)
125 ifeq ($(MONOLITHIC),1)
129 __mmediadll___depname = \
130 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_mmedia_gcc$(VENDORTAG).dll
133 __WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__
135 ifeq ($(BUILD),debug)
136 ifeq ($(DEBUG_FLAG),default)
137 __DEBUG_DEFINE_p_1 = --define __WXDEBUG__
140 ifeq ($(DEBUG_FLAG),1)
141 __DEBUG_DEFINE_p_1 = --define __WXDEBUG__
143 ifeq ($(USE_EXCEPTIONS),0)
144 __EXCEPTIONS_DEFINE_p_1 = --define wxNO_EXCEPTIONS
147 __RTTI_DEFINE_p_1 = --define wxNO_RTTI
149 ifeq ($(USE_THREADS),0)
150 __THREAD_DEFINE_p_1 = --define wxNO_THREADS
153 __UNICODE_DEFINE_p_1 = --define _UNICODE
155 ifeq ($(MONOLITHIC),1)
157 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
160 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
163 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
166 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
169 __UNICOWS_LIB_p = -lunicows
171 ifeq ($(MONOLITHIC),0)
173 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
175 ifeq ($(MONOLITHIC),0)
177 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
180 __mmedialib___depname = \
181 $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_mmedia.a
183 ifeq ($(BUILD),debug)
184 ifeq ($(DEBUG_INFO),default)
188 ifeq ($(BUILD),release)
189 ifeq ($(DEBUG_INFO),default)
193 ifeq ($(DEBUG_INFO),0)
196 ifeq ($(DEBUG_INFO),1)
199 ifeq ($(BUILD),debug)
202 ifeq ($(BUILD),release)
205 ifeq ($(USE_THREADS),0)
208 ifeq ($(USE_THREADS),1)
209 __THREADSFLAG = -mthreads
212 __RTTIFLAG = -fno-rtti
217 ifeq ($(USE_EXCEPTIONS),0)
218 __EXCEPTIONSFLAG = -fno-exceptions
220 ifeq ($(USE_EXCEPTIONS),1)
224 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
226 ifeq ($(BUILD),debug)
227 ifeq ($(DEBUG_FLAG),default)
228 __DEBUG_DEFINE_p = -D__WXDEBUG__
231 ifeq ($(DEBUG_FLAG),1)
232 __DEBUG_DEFINE_p = -D__WXDEBUG__
234 ifeq ($(USE_EXCEPTIONS),0)
235 __EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
238 __RTTI_DEFINE_p = -DwxNO_RTTI
240 ifeq ($(USE_THREADS),0)
241 __THREAD_DEFINE_p = -DwxNO_THREADS
244 __UNICODE_DEFINE_p = -D_UNICODE
250 -if not exist $(OBJS) mkdir $(OBJS)
254 all: $(__mmediadll___depname) $(__mmedialib___depname)
257 -if exist $(OBJS)\*.o del $(OBJS)\*.o
258 -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
259 -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
260 -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
263 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_mmedia_gcc$(VENDORTAG).dll: $(MMEDIADLL_OBJECTS) $(OBJS)\mmediadll_version_rc.o
264 $(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)
268 $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_mmedia.a: $(MMEDIALIB_OBJECTS)
270 ar rcu $@ $(MMEDIALIB_OBJECTS)
274 $(OBJS)\mmediadll_dummy.o: ../../src/mmedia/../../../src/msw/dummy.cpp
275 $(CXX) -c -o $@ $(MMEDIADLL_CXXFLAGS) $<
277 $(OBJS)\mmediadll_version_rc.o: ../../src/mmedia/../../../src/msw/version.rc
278 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) --include-dir ../../src/mmedia/../../../include --include-dir $(SETUPHDIR) --define WXDLLNAME=wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_mmedia_gcc$(VENDORTAG)
280 $(OBJS)\mmediadll_cdwin.o: ../../src/mmedia/cdwin.cpp
281 $(CXX) -c -o $@ $(MMEDIADLL_CXXFLAGS) $<
283 $(OBJS)\mmediadll_sndwin.o: ../../src/mmedia/sndwin.cpp
284 $(CXX) -c -o $@ $(MMEDIADLL_CXXFLAGS) $<
286 $(OBJS)\mmediadll_vidwin.o: ../../src/mmedia/vidwin.cpp
287 $(CXX) -c -o $@ $(MMEDIADLL_CXXFLAGS) $<
289 $(OBJS)\mmediadll_cdbase.o: ../../src/mmedia/cdbase.cpp
290 $(CXX) -c -o $@ $(MMEDIADLL_CXXFLAGS) $<
292 $(OBJS)\mmediadll_g711.o: ../../src/mmedia/g711.cpp
293 $(CXX) -c -o $@ $(MMEDIADLL_CXXFLAGS) $<
295 $(OBJS)\mmediadll_g721.o: ../../src/mmedia/g721.cpp
296 $(CXX) -c -o $@ $(MMEDIADLL_CXXFLAGS) $<
298 $(OBJS)\mmediadll_g723_24.o: ../../src/mmedia/g723_24.cpp
299 $(CXX) -c -o $@ $(MMEDIADLL_CXXFLAGS) $<
301 $(OBJS)\mmediadll_g723_40.o: ../../src/mmedia/g723_40.cpp
302 $(CXX) -c -o $@ $(MMEDIADLL_CXXFLAGS) $<
304 $(OBJS)\mmediadll_g72x.o: ../../src/mmedia/g72x.cpp
305 $(CXX) -c -o $@ $(MMEDIADLL_CXXFLAGS) $<
307 $(OBJS)\mmediadll_sndaiff.o: ../../src/mmedia/sndaiff.cpp
308 $(CXX) -c -o $@ $(MMEDIADLL_CXXFLAGS) $<
310 $(OBJS)\mmediadll_sndbase.o: ../../src/mmedia/sndbase.cpp
311 $(CXX) -c -o $@ $(MMEDIADLL_CXXFLAGS) $<
313 $(OBJS)\mmediadll_sndcodec.o: ../../src/mmedia/sndcodec.cpp
314 $(CXX) -c -o $@ $(MMEDIADLL_CXXFLAGS) $<
316 $(OBJS)\mmediadll_sndcpcm.o: ../../src/mmedia/sndcpcm.cpp
317 $(CXX) -c -o $@ $(MMEDIADLL_CXXFLAGS) $<
319 $(OBJS)\mmediadll_sndfile.o: ../../src/mmedia/sndfile.cpp
320 $(CXX) -c -o $@ $(MMEDIADLL_CXXFLAGS) $<
322 $(OBJS)\mmediadll_sndg72x.o: ../../src/mmedia/sndg72x.cpp
323 $(CXX) -c -o $@ $(MMEDIADLL_CXXFLAGS) $<
325 $(OBJS)\mmediadll_sndmsad.o: ../../src/mmedia/sndmsad.cpp
326 $(CXX) -c -o $@ $(MMEDIADLL_CXXFLAGS) $<
328 $(OBJS)\mmediadll_sndpcm.o: ../../src/mmedia/sndpcm.cpp
329 $(CXX) -c -o $@ $(MMEDIADLL_CXXFLAGS) $<
331 $(OBJS)\mmediadll_sndulaw.o: ../../src/mmedia/sndulaw.cpp
332 $(CXX) -c -o $@ $(MMEDIADLL_CXXFLAGS) $<
334 $(OBJS)\mmediadll_sndwav.o: ../../src/mmedia/sndwav.cpp
335 $(CXX) -c -o $@ $(MMEDIADLL_CXXFLAGS) $<
337 $(OBJS)\mmediadll_vidbase.o: ../../src/mmedia/vidbase.cpp
338 $(CXX) -c -o $@ $(MMEDIADLL_CXXFLAGS) $<
340 $(OBJS)\mmedialib_dummy.o: ../../src/mmedia/../../../src/msw/dummy.cpp
341 $(CXX) -c -o $@ $(MMEDIALIB_CXXFLAGS) $<
343 $(OBJS)\mmedialib_cdwin.o: ../../src/mmedia/cdwin.cpp
344 $(CXX) -c -o $@ $(MMEDIALIB_CXXFLAGS) $<
346 $(OBJS)\mmedialib_sndwin.o: ../../src/mmedia/sndwin.cpp
347 $(CXX) -c -o $@ $(MMEDIALIB_CXXFLAGS) $<
349 $(OBJS)\mmedialib_vidwin.o: ../../src/mmedia/vidwin.cpp
350 $(CXX) -c -o $@ $(MMEDIALIB_CXXFLAGS) $<
352 $(OBJS)\mmedialib_cdbase.o: ../../src/mmedia/cdbase.cpp
353 $(CXX) -c -o $@ $(MMEDIALIB_CXXFLAGS) $<
355 $(OBJS)\mmedialib_g711.o: ../../src/mmedia/g711.cpp
356 $(CXX) -c -o $@ $(MMEDIALIB_CXXFLAGS) $<
358 $(OBJS)\mmedialib_g721.o: ../../src/mmedia/g721.cpp
359 $(CXX) -c -o $@ $(MMEDIALIB_CXXFLAGS) $<
361 $(OBJS)\mmedialib_g723_24.o: ../../src/mmedia/g723_24.cpp
362 $(CXX) -c -o $@ $(MMEDIALIB_CXXFLAGS) $<
364 $(OBJS)\mmedialib_g723_40.o: ../../src/mmedia/g723_40.cpp
365 $(CXX) -c -o $@ $(MMEDIALIB_CXXFLAGS) $<
367 $(OBJS)\mmedialib_g72x.o: ../../src/mmedia/g72x.cpp
368 $(CXX) -c -o $@ $(MMEDIALIB_CXXFLAGS) $<
370 $(OBJS)\mmedialib_sndaiff.o: ../../src/mmedia/sndaiff.cpp
371 $(CXX) -c -o $@ $(MMEDIALIB_CXXFLAGS) $<
373 $(OBJS)\mmedialib_sndbase.o: ../../src/mmedia/sndbase.cpp
374 $(CXX) -c -o $@ $(MMEDIALIB_CXXFLAGS) $<
376 $(OBJS)\mmedialib_sndcodec.o: ../../src/mmedia/sndcodec.cpp
377 $(CXX) -c -o $@ $(MMEDIALIB_CXXFLAGS) $<
379 $(OBJS)\mmedialib_sndcpcm.o: ../../src/mmedia/sndcpcm.cpp
380 $(CXX) -c -o $@ $(MMEDIALIB_CXXFLAGS) $<
382 $(OBJS)\mmedialib_sndfile.o: ../../src/mmedia/sndfile.cpp
383 $(CXX) -c -o $@ $(MMEDIALIB_CXXFLAGS) $<
385 $(OBJS)\mmedialib_sndg72x.o: ../../src/mmedia/sndg72x.cpp
386 $(CXX) -c -o $@ $(MMEDIALIB_CXXFLAGS) $<
388 $(OBJS)\mmedialib_sndmsad.o: ../../src/mmedia/sndmsad.cpp
389 $(CXX) -c -o $@ $(MMEDIALIB_CXXFLAGS) $<
391 $(OBJS)\mmedialib_sndpcm.o: ../../src/mmedia/sndpcm.cpp
392 $(CXX) -c -o $@ $(MMEDIALIB_CXXFLAGS) $<
394 $(OBJS)\mmedialib_sndulaw.o: ../../src/mmedia/sndulaw.cpp
395 $(CXX) -c -o $@ $(MMEDIALIB_CXXFLAGS) $<
397 $(OBJS)\mmedialib_sndwav.o: ../../src/mmedia/sndwav.cpp
398 $(CXX) -c -o $@ $(MMEDIALIB_CXXFLAGS) $<
400 $(OBJS)\mmedialib_vidbase.o: ../../src/mmedia/vidbase.cpp
401 $(CXX) -c -o $@ $(MMEDIALIB_CXXFLAGS) $<