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.gcc
9 # -------------------------------------------------------------------------
10 # Do not modify the rest of this file!
11 # -------------------------------------------------------------------------
15 MMEDIADLL_CXXFLAGS = $(CPPFLAGS) $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) \
16 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
17 $(__UNICODE_DEFINE_p) -I..\..\src\mmedia\..\..\..\include -I$(SETUPHDIR) \
18 -Wall -I..\..\src\mmedia\..\..\include -DWXUSINGDLL -DWXMAKINGDLL_MMEDIA \
21 $(OBJS)\mmediadll_dummy.o \
22 $(OBJS)\mmediadll_cdwin.o \
23 $(OBJS)\mmediadll_sndwin.o \
24 $(OBJS)\mmediadll_vidwin.o \
25 $(OBJS)\mmediadll_cdbase.o \
26 $(OBJS)\mmediadll_g711.o \
27 $(OBJS)\mmediadll_g721.o \
28 $(OBJS)\mmediadll_g723_24.o \
29 $(OBJS)\mmediadll_g723_40.o \
30 $(OBJS)\mmediadll_g72x.o \
31 $(OBJS)\mmediadll_sndaiff.o \
32 $(OBJS)\mmediadll_sndbase.o \
33 $(OBJS)\mmediadll_sndcodec.o \
34 $(OBJS)\mmediadll_sndcpcm.o \
35 $(OBJS)\mmediadll_sndfile.o \
36 $(OBJS)\mmediadll_sndg72x.o \
37 $(OBJS)\mmediadll_sndmsad.o \
38 $(OBJS)\mmediadll_sndpcm.o \
39 $(OBJS)\mmediadll_sndulaw.o \
40 $(OBJS)\mmediadll_sndwav.o \
41 $(OBJS)\mmediadll_vidbase.o
42 MMEDIALIB_CXXFLAGS = $(CPPFLAGS) $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) \
43 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
44 $(__UNICODE_DEFINE_p) -I..\..\src\mmedia\..\..\..\include -I$(SETUPHDIR) \
45 -Wall -I..\..\src\mmedia\..\..\include $(CXXFLAGS)
47 $(OBJS)\mmedialib_dummy.o \
48 $(OBJS)\mmedialib_cdwin.o \
49 $(OBJS)\mmedialib_sndwin.o \
50 $(OBJS)\mmedialib_vidwin.o \
51 $(OBJS)\mmedialib_cdbase.o \
52 $(OBJS)\mmedialib_g711.o \
53 $(OBJS)\mmedialib_g721.o \
54 $(OBJS)\mmedialib_g723_24.o \
55 $(OBJS)\mmedialib_g723_40.o \
56 $(OBJS)\mmedialib_g72x.o \
57 $(OBJS)\mmedialib_sndaiff.o \
58 $(OBJS)\mmedialib_sndbase.o \
59 $(OBJS)\mmedialib_sndcodec.o \
60 $(OBJS)\mmedialib_sndcpcm.o \
61 $(OBJS)\mmedialib_sndfile.o \
62 $(OBJS)\mmedialib_sndg72x.o \
63 $(OBJS)\mmedialib_sndmsad.o \
64 $(OBJS)\mmedialib_sndpcm.o \
65 $(OBJS)\mmedialib_sndulaw.o \
66 $(OBJS)\mmedialib_sndwav.o \
67 $(OBJS)\mmedialib_vidbase.o
69 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
71 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
73 ### Conditionally set variables: ###
75 ifeq ($(GCC_VERSION),2.95)
76 GCCFLAGS = -fvtable-thunks
79 LIBDIRNAME = ..\..\src\mmedia\..\..\..\lib\gcc_lib$(CFG)
82 LIBDIRNAME = ..\..\src\mmedia\..\..\..\lib\gcc_dll$(CFG)
90 ifeq ($(OFFICIAL_BUILD),0)
91 VENDORTAG = _$(VENDOR)
93 ifeq ($(OFFICIAL_BUILD),1)
97 ifeq ($(DEBUG_FLAG),default)
101 ifeq ($(DEBUG_FLAG),1)
113 ifeq ($(BUILD),debug)
114 ifeq ($(DEBUG_INFO),default)
118 ifeq ($(BUILD),release)
119 ifeq ($(DEBUG_INFO),default)
123 ifeq ($(DEBUG_INFO),0)
126 ifeq ($(DEBUG_INFO),1)
129 ifeq ($(BUILD),debug)
130 ifeq ($(DEBUG_FLAG),default)
131 __DEBUG_DEFINE_p = -D__WXDEBUG__
134 ifeq ($(DEBUG_FLAG),1)
135 __DEBUG_DEFINE_p = -D__WXDEBUG__
138 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
141 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
144 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
146 ifeq ($(BUILD),debug)
149 ifeq ($(BUILD),release)
153 __UNICODE_DEFINE_p = -D_UNICODE
156 __UNICOWS_LIB_p = -lunicows
158 ifeq ($(MONOLITHIC),0)
159 __WXLIB_BASE_p = -lwxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG)
161 ifeq ($(MONOLITHIC),0)
163 -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core
165 ifeq ($(MONOLITHIC),1)
167 -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)
170 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
173 __mmediadll___depname = \
174 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)251$(WXUNICODEFLAG)$(WXDEBUGFLAG)_mmedia_gcc$(VENDORTAG).dll
177 __mmedialib___depname = \
178 $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_mmedia.a
184 -if not exist $(OBJS) mkdir $(OBJS)
188 all: $(__mmediadll___depname) $(__mmedialib___depname)
190 $(OBJS)\mmediadll_cdbase.o: ../../src/mmedia/cdbase.cpp
191 $(CXX) -c -o $@ $(MMEDIADLL_CXXFLAGS) $<
193 $(OBJS)\mmediadll_cdwin.o: ../../src/mmedia/cdwin.cpp
194 $(CXX) -c -o $@ $(MMEDIADLL_CXXFLAGS) $<
196 $(OBJS)\mmediadll_dummy.o: ../../src/mmedia/../../../src/msw/dummy.cpp
197 $(CXX) -c -o $@ $(MMEDIADLL_CXXFLAGS) $<
199 $(OBJS)\mmediadll_g711.o: ../../src/mmedia/g711.cpp
200 $(CXX) -c -o $@ $(MMEDIADLL_CXXFLAGS) $<
202 $(OBJS)\mmediadll_g721.o: ../../src/mmedia/g721.cpp
203 $(CXX) -c -o $@ $(MMEDIADLL_CXXFLAGS) $<
205 $(OBJS)\mmediadll_g723_24.o: ../../src/mmedia/g723_24.cpp
206 $(CXX) -c -o $@ $(MMEDIADLL_CXXFLAGS) $<
208 $(OBJS)\mmediadll_g723_40.o: ../../src/mmedia/g723_40.cpp
209 $(CXX) -c -o $@ $(MMEDIADLL_CXXFLAGS) $<
211 $(OBJS)\mmediadll_g72x.o: ../../src/mmedia/g72x.cpp
212 $(CXX) -c -o $@ $(MMEDIADLL_CXXFLAGS) $<
214 $(OBJS)\mmediadll_sndaiff.o: ../../src/mmedia/sndaiff.cpp
215 $(CXX) -c -o $@ $(MMEDIADLL_CXXFLAGS) $<
217 $(OBJS)\mmediadll_sndbase.o: ../../src/mmedia/sndbase.cpp
218 $(CXX) -c -o $@ $(MMEDIADLL_CXXFLAGS) $<
220 $(OBJS)\mmediadll_sndcodec.o: ../../src/mmedia/sndcodec.cpp
221 $(CXX) -c -o $@ $(MMEDIADLL_CXXFLAGS) $<
223 $(OBJS)\mmediadll_sndcpcm.o: ../../src/mmedia/sndcpcm.cpp
224 $(CXX) -c -o $@ $(MMEDIADLL_CXXFLAGS) $<
226 $(OBJS)\mmediadll_sndfile.o: ../../src/mmedia/sndfile.cpp
227 $(CXX) -c -o $@ $(MMEDIADLL_CXXFLAGS) $<
229 $(OBJS)\mmediadll_sndg72x.o: ../../src/mmedia/sndg72x.cpp
230 $(CXX) -c -o $@ $(MMEDIADLL_CXXFLAGS) $<
232 $(OBJS)\mmediadll_sndmsad.o: ../../src/mmedia/sndmsad.cpp
233 $(CXX) -c -o $@ $(MMEDIADLL_CXXFLAGS) $<
235 $(OBJS)\mmediadll_sndpcm.o: ../../src/mmedia/sndpcm.cpp
236 $(CXX) -c -o $@ $(MMEDIADLL_CXXFLAGS) $<
238 $(OBJS)\mmediadll_sndulaw.o: ../../src/mmedia/sndulaw.cpp
239 $(CXX) -c -o $@ $(MMEDIADLL_CXXFLAGS) $<
241 $(OBJS)\mmediadll_sndwav.o: ../../src/mmedia/sndwav.cpp
242 $(CXX) -c -o $@ $(MMEDIADLL_CXXFLAGS) $<
244 $(OBJS)\mmediadll_sndwin.o: ../../src/mmedia/sndwin.cpp
245 $(CXX) -c -o $@ $(MMEDIADLL_CXXFLAGS) $<
247 $(OBJS)\mmediadll_vidbase.o: ../../src/mmedia/vidbase.cpp
248 $(CXX) -c -o $@ $(MMEDIADLL_CXXFLAGS) $<
250 $(OBJS)\mmediadll_vidwin.o: ../../src/mmedia/vidwin.cpp
251 $(CXX) -c -o $@ $(MMEDIADLL_CXXFLAGS) $<
253 $(OBJS)\mmedialib_cdbase.o: ../../src/mmedia/cdbase.cpp
254 $(CXX) -c -o $@ $(MMEDIALIB_CXXFLAGS) $<
256 $(OBJS)\mmedialib_cdwin.o: ../../src/mmedia/cdwin.cpp
257 $(CXX) -c -o $@ $(MMEDIALIB_CXXFLAGS) $<
259 $(OBJS)\mmedialib_dummy.o: ../../src/mmedia/../../../src/msw/dummy.cpp
260 $(CXX) -c -o $@ $(MMEDIALIB_CXXFLAGS) $<
262 $(OBJS)\mmedialib_g711.o: ../../src/mmedia/g711.cpp
263 $(CXX) -c -o $@ $(MMEDIALIB_CXXFLAGS) $<
265 $(OBJS)\mmedialib_g721.o: ../../src/mmedia/g721.cpp
266 $(CXX) -c -o $@ $(MMEDIALIB_CXXFLAGS) $<
268 $(OBJS)\mmedialib_g723_24.o: ../../src/mmedia/g723_24.cpp
269 $(CXX) -c -o $@ $(MMEDIALIB_CXXFLAGS) $<
271 $(OBJS)\mmedialib_g723_40.o: ../../src/mmedia/g723_40.cpp
272 $(CXX) -c -o $@ $(MMEDIALIB_CXXFLAGS) $<
274 $(OBJS)\mmedialib_g72x.o: ../../src/mmedia/g72x.cpp
275 $(CXX) -c -o $@ $(MMEDIALIB_CXXFLAGS) $<
277 $(OBJS)\mmedialib_sndaiff.o: ../../src/mmedia/sndaiff.cpp
278 $(CXX) -c -o $@ $(MMEDIALIB_CXXFLAGS) $<
280 $(OBJS)\mmedialib_sndbase.o: ../../src/mmedia/sndbase.cpp
281 $(CXX) -c -o $@ $(MMEDIALIB_CXXFLAGS) $<
283 $(OBJS)\mmedialib_sndcodec.o: ../../src/mmedia/sndcodec.cpp
284 $(CXX) -c -o $@ $(MMEDIALIB_CXXFLAGS) $<
286 $(OBJS)\mmedialib_sndcpcm.o: ../../src/mmedia/sndcpcm.cpp
287 $(CXX) -c -o $@ $(MMEDIALIB_CXXFLAGS) $<
289 $(OBJS)\mmedialib_sndfile.o: ../../src/mmedia/sndfile.cpp
290 $(CXX) -c -o $@ $(MMEDIALIB_CXXFLAGS) $<
292 $(OBJS)\mmedialib_sndg72x.o: ../../src/mmedia/sndg72x.cpp
293 $(CXX) -c -o $@ $(MMEDIALIB_CXXFLAGS) $<
295 $(OBJS)\mmedialib_sndmsad.o: ../../src/mmedia/sndmsad.cpp
296 $(CXX) -c -o $@ $(MMEDIALIB_CXXFLAGS) $<
298 $(OBJS)\mmedialib_sndpcm.o: ../../src/mmedia/sndpcm.cpp
299 $(CXX) -c -o $@ $(MMEDIALIB_CXXFLAGS) $<
301 $(OBJS)\mmedialib_sndulaw.o: ../../src/mmedia/sndulaw.cpp
302 $(CXX) -c -o $@ $(MMEDIALIB_CXXFLAGS) $<
304 $(OBJS)\mmedialib_sndwav.o: ../../src/mmedia/sndwav.cpp
305 $(CXX) -c -o $@ $(MMEDIALIB_CXXFLAGS) $<
307 $(OBJS)\mmedialib_sndwin.o: ../../src/mmedia/sndwin.cpp
308 $(CXX) -c -o $@ $(MMEDIALIB_CXXFLAGS) $<
310 $(OBJS)\mmedialib_vidbase.o: ../../src/mmedia/vidbase.cpp
311 $(CXX) -c -o $@ $(MMEDIALIB_CXXFLAGS) $<
313 $(OBJS)\mmedialib_vidwin.o: ../../src/mmedia/vidwin.cpp
314 $(CXX) -c -o $@ $(MMEDIALIB_CXXFLAGS) $<
317 -if exist $(OBJS)\*.o del $(OBJS)\*.o
318 -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)251$(WXUNICODEFLAG)$(WXDEBUGFLAG)_mmedia_gcc$(VENDORTAG).dll del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)251$(WXUNICODEFLAG)$(WXDEBUGFLAG)_mmedia_gcc$(VENDORTAG).dll
319 -if exist $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_mmedia.a del $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_mmedia.a
320 -if exist $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_mmedia.a del $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_mmedia.a
323 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)251$(WXUNICODEFLAG)$(WXDEBUGFLAG)_mmedia_gcc$(VENDORTAG).dll: $(MMEDIADLL_OBJECTS)
324 $(CXX) -shared -o $@ $(MMEDIADLL_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) -mthreads -L$(LIBDIRNAME) -Wl,--out-implib,$(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_mmedia.a $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) -lwxzlib$(WXDEBUGFLAG) -lwxregex$(WXDEBUGFLAG) -lwxexpat$(WXDEBUGFLAG) $(__UNICOWS_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lodbc32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 $(__WXLIB_CORE_p) $(__WXLIB_BASE_p)
328 $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_mmedia.a: $(MMEDIALIB_OBJECTS)
330 ar rcu $@ $(MMEDIALIB_OBJECTS)