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