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