]> git.saurik.com Git - wxWidgets.git/blob - contrib/build/mmedia/makefile.gcc
0a1279f5bec3e40cd796a96345c649f3f81db2e5
[wxWidgets.git] / contrib / build / mmedia / makefile.gcc
1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.1.6 (http://bakefile.sourceforge.net)
4 # Do not modify, all changes will be overwritten!
5 # =========================================================================
6
7 include ../../../build/msw/config.gcc
8
9 # -------------------------------------------------------------------------
10 # Do not modify the rest of this file!
11 # -------------------------------------------------------------------------
12
13 ### Variables: ###
14
15 WX_RELEASE_NODOT = 25
16 WX_VERSION_NODOT = $(WX_RELEASE_NODOT)4
17 OBJS = \
18 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
19 LIBDIRNAME = ..\..\src\mmedia\..\..\..\lib\gcc_$(LIBTYPE_SUFFIX)$(CFG)
20 SETUPHDIR = \
21 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
22 MMEDIADLL_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) \
23 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
24 $(__UNICODE_DEFINE_p) -I..\..\src\mmedia\..\..\..\include -I$(SETUPHDIR) -W \
25 -Wall -I..\..\src\mmedia\..\..\include -DWXUSINGDLL -DWXMAKINGDLL_MMEDIA \
26 $(__EXCEPTIONSFLAG) $(__EXCEPTIONSFLAG_0) -Wno-ctor-dtor-privacy \
27 $(CPPFLAGS) $(CXXFLAGS)
28 MMEDIADLL_OBJECTS = \
29 $(OBJS)\mmediadll_dummy.o \
30 $(OBJS)\mmediadll_cdwin.o \
31 $(OBJS)\mmediadll_sndwin.o \
32 $(OBJS)\mmediadll_vidwin.o \
33 $(OBJS)\mmediadll_cdbase.o \
34 $(OBJS)\mmediadll_g711.o \
35 $(OBJS)\mmediadll_g721.o \
36 $(OBJS)\mmediadll_g723_24.o \
37 $(OBJS)\mmediadll_g723_40.o \
38 $(OBJS)\mmediadll_g72x.o \
39 $(OBJS)\mmediadll_sndaiff.o \
40 $(OBJS)\mmediadll_sndbase.o \
41 $(OBJS)\mmediadll_sndcodec.o \
42 $(OBJS)\mmediadll_sndcpcm.o \
43 $(OBJS)\mmediadll_sndfile.o \
44 $(OBJS)\mmediadll_sndg72x.o \
45 $(OBJS)\mmediadll_sndmsad.o \
46 $(OBJS)\mmediadll_sndpcm.o \
47 $(OBJS)\mmediadll_sndulaw.o \
48 $(OBJS)\mmediadll_sndwav.o \
49 $(OBJS)\mmediadll_vidbase.o
50 MMEDIALIB_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) \
51 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
52 $(__UNICODE_DEFINE_p) -I..\..\src\mmedia\..\..\..\include -I$(SETUPHDIR) -W \
53 -Wall -I..\..\src\mmedia\..\..\include $(__EXCEPTIONSFLAG) \
54 $(__EXCEPTIONSFLAG_0) -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)
55 MMEDIALIB_OBJECTS = \
56 $(OBJS)\mmedialib_dummy.o \
57 $(OBJS)\mmedialib_cdwin.o \
58 $(OBJS)\mmedialib_sndwin.o \
59 $(OBJS)\mmedialib_vidwin.o \
60 $(OBJS)\mmedialib_cdbase.o \
61 $(OBJS)\mmedialib_g711.o \
62 $(OBJS)\mmedialib_g721.o \
63 $(OBJS)\mmedialib_g723_24.o \
64 $(OBJS)\mmedialib_g723_40.o \
65 $(OBJS)\mmedialib_g72x.o \
66 $(OBJS)\mmedialib_sndaiff.o \
67 $(OBJS)\mmedialib_sndbase.o \
68 $(OBJS)\mmedialib_sndcodec.o \
69 $(OBJS)\mmedialib_sndcpcm.o \
70 $(OBJS)\mmedialib_sndfile.o \
71 $(OBJS)\mmedialib_sndg72x.o \
72 $(OBJS)\mmedialib_sndmsad.o \
73 $(OBJS)\mmedialib_sndpcm.o \
74 $(OBJS)\mmedialib_sndulaw.o \
75 $(OBJS)\mmedialib_sndwav.o \
76 $(OBJS)\mmedialib_vidbase.o
77
78 ### Conditionally set variables: ###
79
80 ifeq ($(GCC_VERSION),2.95)
81 GCCFLAGS = -fvtable-thunks
82 endif
83 ifeq ($(USE_GUI),0)
84 PORTNAME = base
85 endif
86 ifeq ($(USE_GUI),1)
87 PORTNAME = msw
88 endif
89 ifeq ($(OFFICIAL_BUILD),0)
90 VENDORTAG = _$(VENDOR)
91 endif
92 ifeq ($(OFFICIAL_BUILD),1)
93 VENDORTAG =
94 endif
95 ifeq ($(BUILD),debug)
96 ifeq ($(DEBUG_FLAG),default)
97 WXDEBUGFLAG = d
98 endif
99 endif
100 ifeq ($(DEBUG_FLAG),1)
101 WXDEBUGFLAG = d
102 endif
103 ifeq ($(UNICODE),1)
104 WXUNICODEFLAG = u
105 endif
106 ifeq ($(WXUNIV),1)
107 WXUNIVNAME = univ
108 endif
109 ifeq ($(SHARED),1)
110 WXDLLFLAG = dll
111 endif
112 ifeq ($(SHARED),0)
113 LIBTYPE_SUFFIX = lib
114 endif
115 ifeq ($(SHARED),1)
116 LIBTYPE_SUFFIX = dll
117 endif
118 ifeq ($(MONOLITHIC),0)
119 EXTRALIBS_FOR_BASE =
120 endif
121 ifeq ($(MONOLITHIC),1)
122 EXTRALIBS_FOR_BASE =
123 endif
124 ifeq ($(SHARED),1)
125 __mmediadll___depname = \
126 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_mmedia_gcc$(VENDORTAG).dll
127 endif
128 ifeq ($(MONOLITHIC),1)
129 __WXLIB_MONO_p = \
130 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
131 endif
132 ifeq ($(USE_GUI),1)
133 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
134 endif
135 ifeq ($(USE_GUI),1)
136 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
137 endif
138 ifeq ($(USE_GUI),1)
139 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
140 endif
141 ifeq ($(MSLU),1)
142 __UNICOWS_LIB_p = -lunicows
143 endif
144 ifeq ($(MONOLITHIC),0)
145 __WXLIB_CORE_p = \
146 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
147 endif
148 ifeq ($(MONOLITHIC),0)
149 __WXLIB_BASE_p = \
150 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
151 endif
152 ifeq ($(SHARED),0)
153 __mmedialib___depname = \
154 $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_mmedia.a
155 endif
156 ifeq ($(BUILD),debug)
157 ifeq ($(DEBUG_INFO),default)
158 __DEBUGINFO = -g
159 endif
160 endif
161 ifeq ($(BUILD),release)
162 ifeq ($(DEBUG_INFO),default)
163 __DEBUGINFO =
164 endif
165 endif
166 ifeq ($(DEBUG_INFO),0)
167 __DEBUGINFO =
168 endif
169 ifeq ($(DEBUG_INFO),1)
170 __DEBUGINFO = -g
171 endif
172 ifeq ($(BUILD),debug)
173 __OPTIMIZEFLAG = -O0
174 endif
175 ifeq ($(BUILD),release)
176 __OPTIMIZEFLAG = -O2
177 endif
178 ifeq ($(USE_EXCEPTIONS),0)
179 __EXCEPTIONSFLAG = -fno-rtti
180 endif
181 ifeq ($(USE_EXCEPTIONS),1)
182 __EXCEPTIONSFLAG =
183 endif
184 ifeq ($(USE_EXCEPTIONS),0)
185 __EXCEPTIONSFLAG_0 = -fno-exceptions
186 endif
187 ifeq ($(USE_EXCEPTIONS),1)
188 __EXCEPTIONSFLAG_0 =
189 endif
190 ifeq ($(WXUNIV),1)
191 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
192 endif
193 ifeq ($(BUILD),debug)
194 ifeq ($(DEBUG_FLAG),default)
195 __DEBUG_DEFINE_p = -D__WXDEBUG__
196 endif
197 endif
198 ifeq ($(DEBUG_FLAG),1)
199 __DEBUG_DEFINE_p = -D__WXDEBUG__
200 endif
201 ifeq ($(UNICODE),1)
202 __UNICODE_DEFINE_p = -D_UNICODE
203 endif
204
205
206 all: $(OBJS)
207 $(OBJS):
208 -if not exist $(OBJS) mkdir $(OBJS)
209
210 ### Targets: ###
211
212 all: $(__mmediadll___depname) $(__mmedialib___depname)
213
214 clean:
215 -if exist $(OBJS)\*.o del $(OBJS)\*.o
216 -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
217 -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
218 -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
219
220 ifeq ($(SHARED),1)
221 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_mmedia_gcc$(VENDORTAG).dll: $(MMEDIADLL_OBJECTS)
222 $(CXX) -shared -fPIC -o $@ $(MMEDIADLL_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) -mthreads -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)
223 endif
224
225 ifeq ($(SHARED),0)
226 $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_mmedia.a: $(MMEDIALIB_OBJECTS)
227 if exist $@ del $@
228 ar rcu $@ $(MMEDIALIB_OBJECTS)
229 ranlib $@
230 endif
231
232 $(OBJS)\mmediadll_dummy.o: ../../src/mmedia/../../../src/msw/dummy.cpp
233 $(CXX) -c -o $@ $(MMEDIADLL_CXXFLAGS) $<
234
235 $(OBJS)\mmediadll_cdwin.o: ../../src/mmedia/cdwin.cpp
236 $(CXX) -c -o $@ $(MMEDIADLL_CXXFLAGS) $<
237
238 $(OBJS)\mmediadll_sndwin.o: ../../src/mmedia/sndwin.cpp
239 $(CXX) -c -o $@ $(MMEDIADLL_CXXFLAGS) $<
240
241 $(OBJS)\mmediadll_vidwin.o: ../../src/mmedia/vidwin.cpp
242 $(CXX) -c -o $@ $(MMEDIADLL_CXXFLAGS) $<
243
244 $(OBJS)\mmediadll_cdbase.o: ../../src/mmedia/cdbase.cpp
245 $(CXX) -c -o $@ $(MMEDIADLL_CXXFLAGS) $<
246
247 $(OBJS)\mmediadll_g711.o: ../../src/mmedia/g711.cpp
248 $(CXX) -c -o $@ $(MMEDIADLL_CXXFLAGS) $<
249
250 $(OBJS)\mmediadll_g721.o: ../../src/mmedia/g721.cpp
251 $(CXX) -c -o $@ $(MMEDIADLL_CXXFLAGS) $<
252
253 $(OBJS)\mmediadll_g723_24.o: ../../src/mmedia/g723_24.cpp
254 $(CXX) -c -o $@ $(MMEDIADLL_CXXFLAGS) $<
255
256 $(OBJS)\mmediadll_g723_40.o: ../../src/mmedia/g723_40.cpp
257 $(CXX) -c -o $@ $(MMEDIADLL_CXXFLAGS) $<
258
259 $(OBJS)\mmediadll_g72x.o: ../../src/mmedia/g72x.cpp
260 $(CXX) -c -o $@ $(MMEDIADLL_CXXFLAGS) $<
261
262 $(OBJS)\mmediadll_sndaiff.o: ../../src/mmedia/sndaiff.cpp
263 $(CXX) -c -o $@ $(MMEDIADLL_CXXFLAGS) $<
264
265 $(OBJS)\mmediadll_sndbase.o: ../../src/mmedia/sndbase.cpp
266 $(CXX) -c -o $@ $(MMEDIADLL_CXXFLAGS) $<
267
268 $(OBJS)\mmediadll_sndcodec.o: ../../src/mmedia/sndcodec.cpp
269 $(CXX) -c -o $@ $(MMEDIADLL_CXXFLAGS) $<
270
271 $(OBJS)\mmediadll_sndcpcm.o: ../../src/mmedia/sndcpcm.cpp
272 $(CXX) -c -o $@ $(MMEDIADLL_CXXFLAGS) $<
273
274 $(OBJS)\mmediadll_sndfile.o: ../../src/mmedia/sndfile.cpp
275 $(CXX) -c -o $@ $(MMEDIADLL_CXXFLAGS) $<
276
277 $(OBJS)\mmediadll_sndg72x.o: ../../src/mmedia/sndg72x.cpp
278 $(CXX) -c -o $@ $(MMEDIADLL_CXXFLAGS) $<
279
280 $(OBJS)\mmediadll_sndmsad.o: ../../src/mmedia/sndmsad.cpp
281 $(CXX) -c -o $@ $(MMEDIADLL_CXXFLAGS) $<
282
283 $(OBJS)\mmediadll_sndpcm.o: ../../src/mmedia/sndpcm.cpp
284 $(CXX) -c -o $@ $(MMEDIADLL_CXXFLAGS) $<
285
286 $(OBJS)\mmediadll_sndulaw.o: ../../src/mmedia/sndulaw.cpp
287 $(CXX) -c -o $@ $(MMEDIADLL_CXXFLAGS) $<
288
289 $(OBJS)\mmediadll_sndwav.o: ../../src/mmedia/sndwav.cpp
290 $(CXX) -c -o $@ $(MMEDIADLL_CXXFLAGS) $<
291
292 $(OBJS)\mmediadll_vidbase.o: ../../src/mmedia/vidbase.cpp
293 $(CXX) -c -o $@ $(MMEDIADLL_CXXFLAGS) $<
294
295 $(OBJS)\mmedialib_dummy.o: ../../src/mmedia/../../../src/msw/dummy.cpp
296 $(CXX) -c -o $@ $(MMEDIALIB_CXXFLAGS) $<
297
298 $(OBJS)\mmedialib_cdwin.o: ../../src/mmedia/cdwin.cpp
299 $(CXX) -c -o $@ $(MMEDIALIB_CXXFLAGS) $<
300
301 $(OBJS)\mmedialib_sndwin.o: ../../src/mmedia/sndwin.cpp
302 $(CXX) -c -o $@ $(MMEDIALIB_CXXFLAGS) $<
303
304 $(OBJS)\mmedialib_vidwin.o: ../../src/mmedia/vidwin.cpp
305 $(CXX) -c -o $@ $(MMEDIALIB_CXXFLAGS) $<
306
307 $(OBJS)\mmedialib_cdbase.o: ../../src/mmedia/cdbase.cpp
308 $(CXX) -c -o $@ $(MMEDIALIB_CXXFLAGS) $<
309
310 $(OBJS)\mmedialib_g711.o: ../../src/mmedia/g711.cpp
311 $(CXX) -c -o $@ $(MMEDIALIB_CXXFLAGS) $<
312
313 $(OBJS)\mmedialib_g721.o: ../../src/mmedia/g721.cpp
314 $(CXX) -c -o $@ $(MMEDIALIB_CXXFLAGS) $<
315
316 $(OBJS)\mmedialib_g723_24.o: ../../src/mmedia/g723_24.cpp
317 $(CXX) -c -o $@ $(MMEDIALIB_CXXFLAGS) $<
318
319 $(OBJS)\mmedialib_g723_40.o: ../../src/mmedia/g723_40.cpp
320 $(CXX) -c -o $@ $(MMEDIALIB_CXXFLAGS) $<
321
322 $(OBJS)\mmedialib_g72x.o: ../../src/mmedia/g72x.cpp
323 $(CXX) -c -o $@ $(MMEDIALIB_CXXFLAGS) $<
324
325 $(OBJS)\mmedialib_sndaiff.o: ../../src/mmedia/sndaiff.cpp
326 $(CXX) -c -o $@ $(MMEDIALIB_CXXFLAGS) $<
327
328 $(OBJS)\mmedialib_sndbase.o: ../../src/mmedia/sndbase.cpp
329 $(CXX) -c -o $@ $(MMEDIALIB_CXXFLAGS) $<
330
331 $(OBJS)\mmedialib_sndcodec.o: ../../src/mmedia/sndcodec.cpp
332 $(CXX) -c -o $@ $(MMEDIALIB_CXXFLAGS) $<
333
334 $(OBJS)\mmedialib_sndcpcm.o: ../../src/mmedia/sndcpcm.cpp
335 $(CXX) -c -o $@ $(MMEDIALIB_CXXFLAGS) $<
336
337 $(OBJS)\mmedialib_sndfile.o: ../../src/mmedia/sndfile.cpp
338 $(CXX) -c -o $@ $(MMEDIALIB_CXXFLAGS) $<
339
340 $(OBJS)\mmedialib_sndg72x.o: ../../src/mmedia/sndg72x.cpp
341 $(CXX) -c -o $@ $(MMEDIALIB_CXXFLAGS) $<
342
343 $(OBJS)\mmedialib_sndmsad.o: ../../src/mmedia/sndmsad.cpp
344 $(CXX) -c -o $@ $(MMEDIALIB_CXXFLAGS) $<
345
346 $(OBJS)\mmedialib_sndpcm.o: ../../src/mmedia/sndpcm.cpp
347 $(CXX) -c -o $@ $(MMEDIALIB_CXXFLAGS) $<
348
349 $(OBJS)\mmedialib_sndulaw.o: ../../src/mmedia/sndulaw.cpp
350 $(CXX) -c -o $@ $(MMEDIALIB_CXXFLAGS) $<
351
352 $(OBJS)\mmedialib_sndwav.o: ../../src/mmedia/sndwav.cpp
353 $(CXX) -c -o $@ $(MMEDIALIB_CXXFLAGS) $<
354
355 $(OBJS)\mmedialib_vidbase.o: ../../src/mmedia/vidbase.cpp
356 $(CXX) -c -o $@ $(MMEDIALIB_CXXFLAGS) $<
357
358 .PHONY: all clean
359