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