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