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