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