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