]> git.saurik.com Git - wxWidgets.git/blame_incremental - contrib/build/mmedia/makefile.bcc
make wxrc installable
[wxWidgets.git] / contrib / build / mmedia / makefile.bcc
... / ...
CommitLineData
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!ifndef BCCDIR
8BCCDIR = $(MAKEDIR)\..
9!endif
10
11!include ../../../build/msw/config.bcc
12
13# -------------------------------------------------------------------------
14# Do not modify the rest of this file!
15# -------------------------------------------------------------------------
16
17!if "$(BCCDIR)" == "\.."
18!error Your Borland compiler does not define MAKEDIR. Please define the BCCDIR variable, e.g. BCCDIR=d:\bc4
19!endif
20
21### Variables: ###
22
23LIBDIRNAME = \
24 ..\..\src\mmedia\..\..\..\lib\bcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
25MMEDIADLL_CXXFLAGS = $(CPPFLAGS) $(__RUNTIME_LIBS) $(__DEBUGINFO) \
26 $(__OPTIMIZEFLAG) -tWM -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
27 $(__UNICODE_DEFINE_p) -I..\..\src\mmedia\..\..\..\include -I$(LIBDIRNAME) \
28 -I..\..\src\mmedia\..\..\..\src\tiff -I..\..\src\mmedia\..\..\..\src\jpeg \
29 -I..\..\src\mmedia\..\..\..\src\png -I..\..\src\mmedia\..\..\..\src\zlib \
30 -I..\..\src\mmedia\..\..\..\src\regex \
31 -I..\..\src\mmedia\..\..\..\src\expat\lib \
32 -I..\..\src\mmedia\..\..\include -DWXUSINGDLL -DWXMAKINGDLL_MMEDIA \
33 $(CXXFLAGS) -Hu -H=$(OBJS)\wxprec_mmediadll.csm
34MMEDIADLL_OBJECTS = \
35 $(OBJS)\mmediadll_dummy.obj \
36 $(OBJS)\mmediadll_cdwin.obj \
37 $(OBJS)\mmediadll_sndwin.obj \
38 $(OBJS)\mmediadll_vidwin.obj \
39 $(OBJS)\mmediadll_cdbase.obj \
40 $(OBJS)\mmediadll_g711.obj \
41 $(OBJS)\mmediadll_g721.obj \
42 $(OBJS)\mmediadll_g723_24.obj \
43 $(OBJS)\mmediadll_g723_40.obj \
44 $(OBJS)\mmediadll_g72x.obj \
45 $(OBJS)\mmediadll_sndaiff.obj \
46 $(OBJS)\mmediadll_sndbase.obj \
47 $(OBJS)\mmediadll_sndcodec.obj \
48 $(OBJS)\mmediadll_sndcpcm.obj \
49 $(OBJS)\mmediadll_sndfile.obj \
50 $(OBJS)\mmediadll_sndg72x.obj \
51 $(OBJS)\mmediadll_sndmsad.obj \
52 $(OBJS)\mmediadll_sndpcm.obj \
53 $(OBJS)\mmediadll_sndulaw.obj \
54 $(OBJS)\mmediadll_sndwav.obj \
55 $(OBJS)\mmediadll_vidbase.obj
56MMEDIALIB_CXXFLAGS = $(CPPFLAGS) $(__RUNTIME_LIBS) $(__DEBUGINFO) \
57 $(__OPTIMIZEFLAG) -tWM -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
58 $(__UNICODE_DEFINE_p) -I..\..\src\mmedia\..\..\..\include -I$(LIBDIRNAME) \
59 -I..\..\src\mmedia\..\..\..\src\tiff -I..\..\src\mmedia\..\..\..\src\jpeg \
60 -I..\..\src\mmedia\..\..\..\src\png -I..\..\src\mmedia\..\..\..\src\zlib \
61 -I..\..\src\mmedia\..\..\..\src\regex \
62 -I..\..\src\mmedia\..\..\..\src\expat\lib \
63 -I..\..\src\mmedia\..\..\include $(CXXFLAGS) -Hu \
64 -H=$(OBJS)\wxprec_mmedialib.csm
65MMEDIALIB_OBJECTS = \
66 $(OBJS)\mmedialib_dummy.obj \
67 $(OBJS)\mmedialib_cdwin.obj \
68 $(OBJS)\mmedialib_sndwin.obj \
69 $(OBJS)\mmedialib_vidwin.obj \
70 $(OBJS)\mmedialib_cdbase.obj \
71 $(OBJS)\mmedialib_g711.obj \
72 $(OBJS)\mmedialib_g721.obj \
73 $(OBJS)\mmedialib_g723_24.obj \
74 $(OBJS)\mmedialib_g723_40.obj \
75 $(OBJS)\mmedialib_g72x.obj \
76 $(OBJS)\mmedialib_sndaiff.obj \
77 $(OBJS)\mmedialib_sndbase.obj \
78 $(OBJS)\mmedialib_sndcodec.obj \
79 $(OBJS)\mmedialib_sndcpcm.obj \
80 $(OBJS)\mmedialib_sndfile.obj \
81 $(OBJS)\mmedialib_sndg72x.obj \
82 $(OBJS)\mmedialib_sndmsad.obj \
83 $(OBJS)\mmedialib_sndpcm.obj \
84 $(OBJS)\mmedialib_sndulaw.obj \
85 $(OBJS)\mmedialib_sndwav.obj \
86 $(OBJS)\mmedialib_vidbase.obj
87OBJS = \
88 bcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
89
90### Conditionally set variables: ###
91
92!if "$(USE_GUI)" == "0"
93PORTNAME = base
94!endif
95!if "$(USE_GUI)" == "1"
96PORTNAME = msw
97!endif
98!if "$(OFFICIAL_BUILD)" == "0"
99VENDORTAG = _$(VENDOR)
100!endif
101!if "$(OFFICIAL_BUILD)" == "1"
102VENDORTAG =
103!endif
104!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
105WXDEBUGFLAG = d
106!endif
107!if "$(DEBUG_FLAG)" == "1"
108WXDEBUGFLAG = d
109!endif
110!if "$(SHARED)" == "1"
111WXDLLFLAG = dll
112!endif
113!if "$(UNICODE)" == "1"
114WXUNICODEFLAG = u
115!endif
116!if "$(WXUNIV)" == "1"
117WXUNIVNAME = univ
118!endif
119!if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
120__DEBUGINFO = -v
121!endif
122!if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
123__DEBUGINFO = -v-
124!endif
125!if "$(DEBUG_INFO)" == "0"
126__DEBUGINFO = -v-
127!endif
128!if "$(DEBUG_INFO)" == "1"
129__DEBUGINFO = -v
130!endif
131!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
132__DEBUG_DEFINE_p = -D__WXDEBUG__
133!endif
134!if "$(DEBUG_FLAG)" == "1"
135__DEBUG_DEFINE_p = -D__WXDEBUG__
136!endif
137!if "$(USE_GUI)" == "1"
138__LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
139!endif
140!if "$(USE_GUI)" == "1"
141__LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
142!endif
143!if "$(USE_GUI)" == "1"
144__LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
145!endif
146!if "$(BUILD)" == "debug"
147__OPTIMIZEFLAG = -Od
148!endif
149!if "$(BUILD)" == "release"
150__OPTIMIZEFLAG = -O2
151!endif
152!if "$(RUNTIME_LIBS)" == "dynamic"
153__RUNTIME_LIBS = -tWR
154!endif
155!if "$(RUNTIME_LIBS)" == "static"
156__RUNTIME_LIBS =
157!endif
158!if "$(RUNTIME_LIBS)" == "dynamic"
159__RUNTIME_LIBS_7 = i
160!endif
161!if "$(RUNTIME_LIBS)" == "static"
162__RUNTIME_LIBS_7 =
163!endif
164!if "$(UNICODE)" == "1"
165__UNICODE_DEFINE_p = -DwxUSE_UNICODE=1
166!endif
167!if "$(MSLU)" == "1"
168__UNICOWS_LIB_p = unicows.lib
169!endif
170!if "$(MONOLITHIC)" == "0"
171__WXLIB_BASE_p = wxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
172!endif
173!if "$(MONOLITHIC)" == "0"
174__WXLIB_CORE_p = \
175 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core.lib
176!endif
177!if "$(MONOLITHIC)" == "1"
178__WXLIB_MONO_p = \
179 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
180!endif
181!if "$(WXUNIV)" == "1"
182__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
183!endif
184!if "$(SHARED)" == "1"
185__mmediadll___depname = \
186 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)250$(WXUNICODEFLAG)$(WXDEBUGFLAG)_mmedia_bcc$(VENDORTAG).dll
187!endif
188!if "$(SHARED)" == "0"
189__mmedialib___depname = \
190 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_mmedia.lib
191!endif
192
193
194all: $(OBJS)
195$(OBJS):
196 -if not exist $(OBJS) mkdir $(OBJS)
197
198### Targets: ###
199
200all: $(__mmediadll___depname) $(__mmedialib___depname)
201
202$(OBJS)\mmediadll_cdbase.obj: ../../src/mmedia\cdbase.cpp
203 $(CXX) -q -c -P -o$@ $(MMEDIADLL_CXXFLAGS) $**
204
205$(OBJS)\mmediadll_cdwin.obj: ../../src/mmedia\cdwin.cpp
206 $(CXX) -q -c -P -o$@ $(MMEDIADLL_CXXFLAGS) $**
207
208$(OBJS)\mmediadll_dummy.obj: ../../src/mmedia\..\..\..\src\msw\dummy.cpp
209 $(CXX) -q -c -P -o$@ $(MMEDIADLL_CXXFLAGS) -H $**
210
211$(OBJS)\mmediadll_g711.obj: ../../src/mmedia\g711.cpp
212 $(CXX) -q -c -P -o$@ $(MMEDIADLL_CXXFLAGS) $**
213
214$(OBJS)\mmediadll_g721.obj: ../../src/mmedia\g721.cpp
215 $(CXX) -q -c -P -o$@ $(MMEDIADLL_CXXFLAGS) $**
216
217$(OBJS)\mmediadll_g723_24.obj: ../../src/mmedia\g723_24.cpp
218 $(CXX) -q -c -P -o$@ $(MMEDIADLL_CXXFLAGS) $**
219
220$(OBJS)\mmediadll_g723_40.obj: ../../src/mmedia\g723_40.cpp
221 $(CXX) -q -c -P -o$@ $(MMEDIADLL_CXXFLAGS) $**
222
223$(OBJS)\mmediadll_g72x.obj: ../../src/mmedia\g72x.cpp
224 $(CXX) -q -c -P -o$@ $(MMEDIADLL_CXXFLAGS) $**
225
226$(OBJS)\mmediadll_sndaiff.obj: ../../src/mmedia\sndaiff.cpp
227 $(CXX) -q -c -P -o$@ $(MMEDIADLL_CXXFLAGS) $**
228
229$(OBJS)\mmediadll_sndbase.obj: ../../src/mmedia\sndbase.cpp
230 $(CXX) -q -c -P -o$@ $(MMEDIADLL_CXXFLAGS) $**
231
232$(OBJS)\mmediadll_sndcodec.obj: ../../src/mmedia\sndcodec.cpp
233 $(CXX) -q -c -P -o$@ $(MMEDIADLL_CXXFLAGS) $**
234
235$(OBJS)\mmediadll_sndcpcm.obj: ../../src/mmedia\sndcpcm.cpp
236 $(CXX) -q -c -P -o$@ $(MMEDIADLL_CXXFLAGS) $**
237
238$(OBJS)\mmediadll_sndfile.obj: ../../src/mmedia\sndfile.cpp
239 $(CXX) -q -c -P -o$@ $(MMEDIADLL_CXXFLAGS) $**
240
241$(OBJS)\mmediadll_sndg72x.obj: ../../src/mmedia\sndg72x.cpp
242 $(CXX) -q -c -P -o$@ $(MMEDIADLL_CXXFLAGS) $**
243
244$(OBJS)\mmediadll_sndmsad.obj: ../../src/mmedia\sndmsad.cpp
245 $(CXX) -q -c -P -o$@ $(MMEDIADLL_CXXFLAGS) $**
246
247$(OBJS)\mmediadll_sndpcm.obj: ../../src/mmedia\sndpcm.cpp
248 $(CXX) -q -c -P -o$@ $(MMEDIADLL_CXXFLAGS) $**
249
250$(OBJS)\mmediadll_sndulaw.obj: ../../src/mmedia\sndulaw.cpp
251 $(CXX) -q -c -P -o$@ $(MMEDIADLL_CXXFLAGS) $**
252
253$(OBJS)\mmediadll_sndwav.obj: ../../src/mmedia\sndwav.cpp
254 $(CXX) -q -c -P -o$@ $(MMEDIADLL_CXXFLAGS) $**
255
256$(OBJS)\mmediadll_sndwin.obj: ../../src/mmedia\sndwin.cpp
257 $(CXX) -q -c -P -o$@ $(MMEDIADLL_CXXFLAGS) $**
258
259$(OBJS)\mmediadll_vidbase.obj: ../../src/mmedia\vidbase.cpp
260 $(CXX) -q -c -P -o$@ $(MMEDIADLL_CXXFLAGS) $**
261
262$(OBJS)\mmediadll_vidwin.obj: ../../src/mmedia\vidwin.cpp
263 $(CXX) -q -c -P -o$@ $(MMEDIADLL_CXXFLAGS) $**
264
265$(OBJS)\mmedialib_cdbase.obj: ../../src/mmedia\cdbase.cpp
266 $(CXX) -q -c -P -o$@ $(MMEDIALIB_CXXFLAGS) $**
267
268$(OBJS)\mmedialib_cdwin.obj: ../../src/mmedia\cdwin.cpp
269 $(CXX) -q -c -P -o$@ $(MMEDIALIB_CXXFLAGS) $**
270
271$(OBJS)\mmedialib_dummy.obj: ../../src/mmedia\..\..\..\src\msw\dummy.cpp
272 $(CXX) -q -c -P -o$@ $(MMEDIALIB_CXXFLAGS) -H $**
273
274$(OBJS)\mmedialib_g711.obj: ../../src/mmedia\g711.cpp
275 $(CXX) -q -c -P -o$@ $(MMEDIALIB_CXXFLAGS) $**
276
277$(OBJS)\mmedialib_g721.obj: ../../src/mmedia\g721.cpp
278 $(CXX) -q -c -P -o$@ $(MMEDIALIB_CXXFLAGS) $**
279
280$(OBJS)\mmedialib_g723_24.obj: ../../src/mmedia\g723_24.cpp
281 $(CXX) -q -c -P -o$@ $(MMEDIALIB_CXXFLAGS) $**
282
283$(OBJS)\mmedialib_g723_40.obj: ../../src/mmedia\g723_40.cpp
284 $(CXX) -q -c -P -o$@ $(MMEDIALIB_CXXFLAGS) $**
285
286$(OBJS)\mmedialib_g72x.obj: ../../src/mmedia\g72x.cpp
287 $(CXX) -q -c -P -o$@ $(MMEDIALIB_CXXFLAGS) $**
288
289$(OBJS)\mmedialib_sndaiff.obj: ../../src/mmedia\sndaiff.cpp
290 $(CXX) -q -c -P -o$@ $(MMEDIALIB_CXXFLAGS) $**
291
292$(OBJS)\mmedialib_sndbase.obj: ../../src/mmedia\sndbase.cpp
293 $(CXX) -q -c -P -o$@ $(MMEDIALIB_CXXFLAGS) $**
294
295$(OBJS)\mmedialib_sndcodec.obj: ../../src/mmedia\sndcodec.cpp
296 $(CXX) -q -c -P -o$@ $(MMEDIALIB_CXXFLAGS) $**
297
298$(OBJS)\mmedialib_sndcpcm.obj: ../../src/mmedia\sndcpcm.cpp
299 $(CXX) -q -c -P -o$@ $(MMEDIALIB_CXXFLAGS) $**
300
301$(OBJS)\mmedialib_sndfile.obj: ../../src/mmedia\sndfile.cpp
302 $(CXX) -q -c -P -o$@ $(MMEDIALIB_CXXFLAGS) $**
303
304$(OBJS)\mmedialib_sndg72x.obj: ../../src/mmedia\sndg72x.cpp
305 $(CXX) -q -c -P -o$@ $(MMEDIALIB_CXXFLAGS) $**
306
307$(OBJS)\mmedialib_sndmsad.obj: ../../src/mmedia\sndmsad.cpp
308 $(CXX) -q -c -P -o$@ $(MMEDIALIB_CXXFLAGS) $**
309
310$(OBJS)\mmedialib_sndpcm.obj: ../../src/mmedia\sndpcm.cpp
311 $(CXX) -q -c -P -o$@ $(MMEDIALIB_CXXFLAGS) $**
312
313$(OBJS)\mmedialib_sndulaw.obj: ../../src/mmedia\sndulaw.cpp
314 $(CXX) -q -c -P -o$@ $(MMEDIALIB_CXXFLAGS) $**
315
316$(OBJS)\mmedialib_sndwav.obj: ../../src/mmedia\sndwav.cpp
317 $(CXX) -q -c -P -o$@ $(MMEDIALIB_CXXFLAGS) $**
318
319$(OBJS)\mmedialib_sndwin.obj: ../../src/mmedia\sndwin.cpp
320 $(CXX) -q -c -P -o$@ $(MMEDIALIB_CXXFLAGS) $**
321
322$(OBJS)\mmedialib_vidbase.obj: ../../src/mmedia\vidbase.cpp
323 $(CXX) -q -c -P -o$@ $(MMEDIALIB_CXXFLAGS) $**
324
325$(OBJS)\mmedialib_vidwin.obj: ../../src/mmedia\vidwin.cpp
326 $(CXX) -q -c -P -o$@ $(MMEDIALIB_CXXFLAGS) $**
327
328clean:
329 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
330 -if exist $(OBJS)\*.res del $(OBJS)\*.res
331 -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)250$(WXUNICODEFLAG)$(WXDEBUGFLAG)_mmedia_bcc$(VENDORTAG).dll del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)250$(WXUNICODEFLAG)$(WXDEBUGFLAG)_mmedia_bcc$(VENDORTAG).dll
332 -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_mmedia.lib del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_mmedia.lib
333 -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_mmedia.lib del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_mmedia.lib
334
335!if "$(SHARED)" == "1"
336$(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)250$(WXUNICODEFLAG)$(WXDEBUGFLAG)_mmedia_bcc$(VENDORTAG).dll: $(MMEDIADLL_OBJECTS) $(OBJS)\mmediadll_dummy.obj
337 ilink32 -Tpd -q $(LDFLAGS) $(__DEBUGINFO) -L$(LIBDIRNAME) @&&|
338 c0d32.obj $(MMEDIADLL_OBJECTS),$@,, $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) wxzlib$(WXDEBUGFLAG).lib wxregex$(WXDEBUGFLAG).lib wxexpat$(WXDEBUGFLAG).lib $(__UNICOWS_LIB_p) import32.lib ole2w32.lib $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) import32.lib cw32mt$(__RUNTIME_LIBS_7).lib,,
339|
340 implib -f $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_mmedia $@
341!endif
342
343!if "$(SHARED)" == "0"
344$(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_mmedia.lib: $(MMEDIALIB_OBJECTS) $(OBJS)\mmedialib_dummy.obj
345 if exist $@ del $@
346 tlib /a /p2048 $@ @&&|
347 $(MMEDIALIB_OBJECTS)
348|
349!endif