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