]> git.saurik.com Git - wxWidgets.git/blame - contrib/samples/mmedia/makefile.bcc
fixed wxUSE_XML
[wxWidgets.git] / contrib / samples / mmedia / makefile.bcc
CommitLineData
fd9f42b6
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# =========================================================================
5fa399c9 6
fd9f42b6
VS
7!ifndef BCCDIR
8BCCDIR = $(MAKEDIR)\..
5fa399c9
JS
9!endif
10
fd9f42b6 11!include ../../../build/msw/config.bcc
5fa399c9 12
fd9f42b6
VS
13# -------------------------------------------------------------------------
14# Do not modify the rest of this file!
15# -------------------------------------------------------------------------
5fa399c9 16
fd9f42b6
VS
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 .\..\..\..\lib\bcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
25MMBOARD_CXXFLAGS = $(CPPFLAGS) $(__RUNTIME_LIBS_6) $(__DEBUGINFO) \
26 $(__OPTIMIZEFLAG_2) -tWM -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
27 $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) -I.\..\..\..\include \
28 -I$(LIBDIRNAME) -I.\..\..\..\src\tiff -I.\..\..\..\src\jpeg \
29 -I.\..\..\..\src\png -I.\..\..\..\src\zlib -I.\..\..\..\src\regex \
2265a2d5
VS
30 -I.\..\..\..\src\expat\lib -I. $(__DLLFLAG_p) -I..\..\..\samples \
31 -I.\..\..\include $(CXXFLAGS)
fd9f42b6
VS
32MMBOARD_OBJECTS = \
33 $(OBJS)\mmboard_mmboard.obj \
34 $(OBJS)\mmboard_mmbman.obj
35OBJS = \
36 bcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
37
38### Conditionally set variables: ###
39
40!if "$(USE_GUI)" == "0"
41PORTNAME = base
42!endif
43!if "$(USE_GUI)" == "1"
44PORTNAME = msw
45!endif
46!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
47WXDEBUGFLAG = d
48!endif
49!if "$(DEBUG_FLAG)" == "1"
50WXDEBUGFLAG = d
51!endif
52!if "$(SHARED)" == "1"
53WXDLLFLAG = dll
54!endif
55!if "$(UNICODE)" == "1"
56WXUNICODEFLAG = u
57!endif
58!if "$(WXUNIV)" == "1"
59WXUNIVNAME = univ
60!endif
61!if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
62__DEBUGINFO = -v
63!endif
64!if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
65__DEBUGINFO = -v-
66!endif
67!if "$(DEBUG_INFO)" == "0"
68__DEBUGINFO = -v-
69!endif
70!if "$(DEBUG_INFO)" == "1"
71__DEBUGINFO = -v
72!endif
73!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
74__DEBUG_DEFINE_p = -D__WXDEBUG__
75!endif
76!if "$(DEBUG_FLAG)" == "1"
77__DEBUG_DEFINE_p = -D__WXDEBUG__
78!endif
79!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
80__DEBUG_DEFINE_p_1 = -d__WXDEBUG__
81!endif
82!if "$(DEBUG_FLAG)" == "1"
83__DEBUG_DEFINE_p_1 = -d__WXDEBUG__
84!endif
85!if "$(SHARED)" == "1"
86__DLLFLAG_p = -DWXUSINGDLL
87!endif
88!if "$(SHARED)" == "1"
89__DLLFLAG_p_1 = -dWXUSINGDLL
90!endif
91!if "$(USE_GUI)" == "1"
92__LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
93!endif
94!if "$(USE_GUI)" == "1"
95__LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
96!endif
97!if "$(USE_GUI)" == "1"
98__LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
99!endif
100!if "$(BUILD)" == "debug"
101__OPTIMIZEFLAG_2 = -Od
102!endif
103!if "$(BUILD)" == "release"
104__OPTIMIZEFLAG_2 = -O2
105!endif
106!if "$(RUNTIME_LIBS)" == "dynamic"
107__RUNTIME_LIBS_6 = -tWR
108!endif
109!if "$(RUNTIME_LIBS)" == "static"
110__RUNTIME_LIBS_6 =
111!endif
112!if "$(RUNTIME_LIBS)" == "dynamic"
113__RUNTIME_LIBS_7 = i
114!endif
115!if "$(RUNTIME_LIBS)" == "static"
116__RUNTIME_LIBS_7 =
117!endif
118!if "$(UNICODE)" == "1"
119__UNICODE_DEFINE_p = -DwxUSE_UNICODE=1
120!endif
121!if "$(UNICODE)" == "1"
122__UNICODE_DEFINE_p_1 = -dwxUSE_UNICODE=1
123!endif
2265a2d5
VS
124!if "$(MSLU)" == "1"
125__UNICOWS_LIB_p = unicows.lib
126!endif
fd9f42b6
VS
127!if "$(MONOLITHIC)" == "0"
128__WXLIB_BASE_p = wxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
129!endif
130!if "$(MONOLITHIC)" == "0"
131__WXLIB_CORE_p = \
132 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core.lib
133!endif
134!if "$(MONOLITHIC)" == "1"
135__WXLIB_MONO_p = \
136 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
137!endif
138!if "$(WXUNIV)" == "1"
139__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
140!endif
141!if "$(WXUNIV)" == "1"
142__WXUNIV_DEFINE_p_1 = -d__WXUNIVERSAL__
143!endif
144
fd9f42b6
VS
145
146all: $(OBJS)
147$(OBJS):
148 -if not exist $(OBJS) mkdir $(OBJS)
149
150### Targets: ###
151
152all: $(OBJS)\mmboard.exe
153
154$(OBJS)\mmboard_mmbman.obj: .\mmbman.cpp
155 $(CXX) -q -c -P -o$@ $(MMBOARD_CXXFLAGS) $**
156
157$(OBJS)\mmboard_mmboard.obj: .\mmboard.cpp
158 $(CXX) -q -c -P -o$@ $(MMBOARD_CXXFLAGS) $**
159
160$(OBJS)\mmboard_mmboard.res: .\mmboard.rc
2265a2d5 161 brcc32 -32 -r -fo$@ -i$(BCCDIR)\include -d__WXMSW__ $(__WXUNIV_DEFINE_p_1) $(__DEBUG_DEFINE_p_1) $(__UNICODE_DEFINE_p_1) -i.\..\..\..\include -i$(LIBDIRNAME) -i.\..\..\..\src\tiff -i.\..\..\..\src\jpeg -i.\..\..\..\src\png -i.\..\..\..\src\zlib -i.\..\..\..\src\regex -i.\..\..\..\src\expat\lib -i. $(__DLLFLAG_p_1) -i..\..\..\samples -i.\..\..\include $**
fd9f42b6
VS
162
163clean:
164 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
165 -if exist $(OBJS)\*.res del $(OBJS)\*.res
166 -if exist $(OBJS)\mmboard.exe del $(OBJS)\mmboard.exe
5fa399c9 167
fd9f42b6
VS
168$(OBJS)\mmboard.exe: $(MMBOARD_OBJECTS) $(OBJS)\mmboard_mmboard.res
169 ilink32 -Tpe -q $(LDFLAGS) $(__DEBUGINFO) -L$(LIBDIRNAME) -aa @&&|
2265a2d5 170 c0w32.obj $(MMBOARD_OBJECTS),$@,, wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_mmedia.lib $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) $(__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 cw32mt$(__RUNTIME_LIBS_7).lib,, $(OBJS)\mmboard_mmboard.res
fd9f42b6 171|