]> git.saurik.com Git - wxWidgets.git/blame - contrib/samples/fl/makefile.bcc
expat must be added to the template, not generated wxWindows.dsp
[wxWidgets.git] / contrib / samples / fl / makefile.bcc
CommitLineData
03206f17
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
7!ifndef BCCDIR
8BCCDIR = $(MAKEDIR)\..
9!endif
10
fd9f42b6 11!include ../../../build/msw/config.bcc
03206f17
VS
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
23FL_DEMO1_CXXFLAGS = $(CPPFLAGS) $(__RUNTIME_LIBS) $(__DEBUGINFO) \
24 $(__OPTIMIZEFLAG) -tWM -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
25 $(__UNICODE_DEFINE_p) -I.\..\..\..\include -I$(LIBDIRNAME) \
26 -I.\..\..\..\src\tiff -I.\..\..\..\src\jpeg -I.\..\..\..\src\png \
27 -I.\..\..\..\src\zlib -I.\..\..\..\src\regex -I.\..\..\..\src\expat\lib -I. \
2265a2d5
VS
28 $(__DLLFLAG_p) -I..\..\..\samples -I.\..\..\include -DBMP_DIR=\"bitmaps/\" \
29 $(CXXFLAGS)
03206f17
VS
30FL_DEMO1_OBJECTS = \
31 $(OBJS)\fl_demo1_fl_demo1.obj
32FL_DEMO2_CXXFLAGS = $(CPPFLAGS) $(__RUNTIME_LIBS) $(__DEBUGINFO) \
33 $(__OPTIMIZEFLAG) -tWM -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
34 $(__UNICODE_DEFINE_p) -I.\..\..\..\include -I$(LIBDIRNAME) \
35 -I.\..\..\..\src\tiff -I.\..\..\..\src\jpeg -I.\..\..\..\src\png \
36 -I.\..\..\..\src\zlib -I.\..\..\..\src\regex -I.\..\..\..\src\expat\lib -I. \
2265a2d5
VS
37 $(__DLLFLAG_p) -I..\..\..\samples -I.\..\..\include -DBMP_DIR=\"bitmaps/\" \
38 $(CXXFLAGS)
03206f17
VS
39FL_DEMO2_OBJECTS = \
40 $(OBJS)\fl_demo2_fl_demo2.obj
41FL_SAMPLE1_CXXFLAGS = $(CPPFLAGS) $(__RUNTIME_LIBS) $(__DEBUGINFO) \
42 $(__OPTIMIZEFLAG) -tWM -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
43 $(__UNICODE_DEFINE_p) -I.\..\..\..\include -I$(LIBDIRNAME) \
44 -I.\..\..\..\src\tiff -I.\..\..\..\src\jpeg -I.\..\..\..\src\png \
45 -I.\..\..\..\src\zlib -I.\..\..\..\src\regex -I.\..\..\..\src\expat\lib -I. \
2265a2d5
VS
46 $(__DLLFLAG_p) -I..\..\..\samples -I.\..\..\include -DBMP_DIR=\"bitmaps/\" \
47 $(CXXFLAGS)
03206f17
VS
48FL_SAMPLE1_OBJECTS = \
49 $(OBJS)\fl_sample1_fl_sample1.obj
50FL_SAMPLE2_CXXFLAGS = $(CPPFLAGS) $(__RUNTIME_LIBS) $(__DEBUGINFO) \
51 $(__OPTIMIZEFLAG) -tWM -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
52 $(__UNICODE_DEFINE_p) -I.\..\..\..\include -I$(LIBDIRNAME) \
53 -I.\..\..\..\src\tiff -I.\..\..\..\src\jpeg -I.\..\..\..\src\png \
54 -I.\..\..\..\src\zlib -I.\..\..\..\src\regex -I.\..\..\..\src\expat\lib -I. \
2265a2d5
VS
55 $(__DLLFLAG_p) -I..\..\..\samples -I.\..\..\include -DBMP_DIR=\"bitmaps/\" \
56 $(CXXFLAGS)
03206f17
VS
57FL_SAMPLE2_OBJECTS = \
58 $(OBJS)\fl_sample2_fl_sample2.obj
59FL_SAMPLE3_CXXFLAGS = $(CPPFLAGS) $(__RUNTIME_LIBS) $(__DEBUGINFO) \
60 $(__OPTIMIZEFLAG) -tWM -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
61 $(__UNICODE_DEFINE_p) -I.\..\..\..\include -I$(LIBDIRNAME) \
62 -I.\..\..\..\src\tiff -I.\..\..\..\src\jpeg -I.\..\..\..\src\png \
63 -I.\..\..\..\src\zlib -I.\..\..\..\src\regex -I.\..\..\..\src\expat\lib -I. \
2265a2d5
VS
64 $(__DLLFLAG_p) -I..\..\..\samples -I.\..\..\include -DBMP_DIR=\"bitmaps/\" \
65 $(CXXFLAGS)
03206f17
VS
66FL_SAMPLE3_OBJECTS = \
67 $(OBJS)\fl_sample3_fl_sample3.obj
68LIBDIRNAME = \
69 .\..\..\..\lib\bcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
70OBJS = \
71 bcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
72
73### Conditionally set variables: ###
74
75!if "$(USE_GUI)" == "0"
76PORTNAME = base
77!endif
78!if "$(USE_GUI)" == "1"
79PORTNAME = msw
80!endif
81!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
82WXDEBUGFLAG = d
83!endif
84!if "$(DEBUG_FLAG)" == "1"
85WXDEBUGFLAG = d
86!endif
87!if "$(SHARED)" == "1"
88WXDLLFLAG = dll
89!endif
90!if "$(UNICODE)" == "1"
91WXUNICODEFLAG = u
92!endif
93!if "$(WXUNIV)" == "1"
94WXUNIVNAME = univ
95!endif
96!if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
97__DEBUGINFO = -v
98!endif
99!if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
100__DEBUGINFO = -v-
101!endif
102!if "$(DEBUG_INFO)" == "0"
103__DEBUGINFO = -v-
104!endif
105!if "$(DEBUG_INFO)" == "1"
106__DEBUGINFO = -v
107!endif
108!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
109__DEBUG_DEFINE_p = -D__WXDEBUG__
110!endif
111!if "$(DEBUG_FLAG)" == "1"
112__DEBUG_DEFINE_p = -D__WXDEBUG__
113!endif
114!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
115__DEBUG_DEFINE_p_14 = -d__WXDEBUG__
116!endif
117!if "$(DEBUG_FLAG)" == "1"
118__DEBUG_DEFINE_p_14 = -d__WXDEBUG__
119!endif
120!if "$(SHARED)" == "1"
121__DLLFLAG_p = -DWXUSINGDLL
122!endif
123!if "$(SHARED)" == "1"
124__DLLFLAG_p_12 = -dWXUSINGDLL
125!endif
126!if "$(USE_GUI)" == "1"
127__LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
128!endif
129!if "$(USE_GUI)" == "1"
130__LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
131!endif
132!if "$(USE_GUI)" == "1"
133__LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
134!endif
135!if "$(BUILD)" == "debug"
136__OPTIMIZEFLAG = -Od
137!endif
138!if "$(BUILD)" == "release"
139__OPTIMIZEFLAG = -O2
140!endif
141!if "$(RUNTIME_LIBS)" == "dynamic"
142__RUNTIME_LIBS = -tWR
143!endif
144!if "$(RUNTIME_LIBS)" == "static"
145__RUNTIME_LIBS =
146!endif
147!if "$(RUNTIME_LIBS)" == "dynamic"
148__RUNTIME_LIBS_3 = i
149!endif
150!if "$(RUNTIME_LIBS)" == "static"
151__RUNTIME_LIBS_3 =
152!endif
153!if "$(UNICODE)" == "1"
154__UNICODE_DEFINE_p = -DwxUSE_UNICODE=1
155!endif
156!if "$(UNICODE)" == "1"
157__UNICODE_DEFINE_p_15 = -dwxUSE_UNICODE=1
158!endif
2265a2d5
VS
159!if "$(MSLU)" == "1"
160__UNICOWS_LIB_p = unicows.lib
161!endif
03206f17
VS
162!if "$(MONOLITHIC)" == "0"
163__WXLIB_BASE_p = wxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
164!endif
165!if "$(MONOLITHIC)" == "0"
166__WXLIB_CORE_p = \
167 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core.lib
168!endif
169!if "$(MONOLITHIC)" == "1"
170__WXLIB_MONO_p = \
171 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
172!endif
173!if "$(WXUNIV)" == "1"
174__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
175!endif
176!if "$(WXUNIV)" == "1"
177__WXUNIV_DEFINE_p_11 = -d__WXUNIVERSAL__
178!endif
179
180
181all: $(OBJS)
182$(OBJS):
183 -if not exist $(OBJS) mkdir $(OBJS)
184
185### Targets: ###
186
187all: $(OBJS)\fl_demo1.exe $(OBJS)\fl_demo2.exe $(OBJS)\fl_sample1.exe $(OBJS)\fl_sample2.exe $(OBJS)\fl_sample3.exe
188
189$(OBJS)\fl_demo1_fl_demo1.obj: .\fl_demo1.cpp
190 $(CXX) -q -c -P -o$@ $(FL_DEMO1_CXXFLAGS) $**
191
192$(OBJS)\fl_demo1_fl_demo1.res: .\fl_demo1.rc
2265a2d5 193 brcc32 -32 -r -fo$@ -i$(BCCDIR)\include -d__WXMSW__ $(__WXUNIV_DEFINE_p_11) $(__DEBUG_DEFINE_p_14) $(__UNICODE_DEFINE_p_15) -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_12) -i..\..\..\samples -i.\..\..\include -dBMP_DIR="bitmaps/" $**
03206f17
VS
194
195$(OBJS)\fl_demo2_fl_demo2.obj: .\fl_demo2.cpp
196 $(CXX) -q -c -P -o$@ $(FL_DEMO2_CXXFLAGS) $**
197
198$(OBJS)\fl_demo2_fl_demo2.res: .\fl_demo2.rc
2265a2d5 199 brcc32 -32 -r -fo$@ -i$(BCCDIR)\include -d__WXMSW__ $(__WXUNIV_DEFINE_p_11) $(__DEBUG_DEFINE_p_14) $(__UNICODE_DEFINE_p_15) -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_12) -i..\..\..\samples -i.\..\..\include -dBMP_DIR="bitmaps/" $**
03206f17
VS
200
201$(OBJS)\fl_sample1_fl_sample1.obj: .\fl_sample1.cpp
202 $(CXX) -q -c -P -o$@ $(FL_SAMPLE1_CXXFLAGS) $**
203
204$(OBJS)\fl_sample1_fl_sample1.res: .\fl_sample1.rc
2265a2d5 205 brcc32 -32 -r -fo$@ -i$(BCCDIR)\include -d__WXMSW__ $(__WXUNIV_DEFINE_p_11) $(__DEBUG_DEFINE_p_14) $(__UNICODE_DEFINE_p_15) -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_12) -i..\..\..\samples -i.\..\..\include -dBMP_DIR="bitmaps/" $**
03206f17
VS
206
207$(OBJS)\fl_sample2_fl_sample2.obj: .\fl_sample2.cpp
208 $(CXX) -q -c -P -o$@ $(FL_SAMPLE2_CXXFLAGS) $**
209
210$(OBJS)\fl_sample2_fl_sample2.res: .\fl_sample2.rc
2265a2d5 211 brcc32 -32 -r -fo$@ -i$(BCCDIR)\include -d__WXMSW__ $(__WXUNIV_DEFINE_p_11) $(__DEBUG_DEFINE_p_14) $(__UNICODE_DEFINE_p_15) -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_12) -i..\..\..\samples -i.\..\..\include -dBMP_DIR="bitmaps/" $**
03206f17
VS
212
213$(OBJS)\fl_sample3_fl_sample3.obj: .\fl_sample3.cpp
214 $(CXX) -q -c -P -o$@ $(FL_SAMPLE3_CXXFLAGS) $**
215
216$(OBJS)\fl_sample3_fl_sample3.res: .\fl_sample3.rc
2265a2d5 217 brcc32 -32 -r -fo$@ -i$(BCCDIR)\include -d__WXMSW__ $(__WXUNIV_DEFINE_p_11) $(__DEBUG_DEFINE_p_14) $(__UNICODE_DEFINE_p_15) -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_12) -i..\..\..\samples -i.\..\..\include -dBMP_DIR="bitmaps/" $**
03206f17
VS
218
219clean:
220 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
221 -if exist $(OBJS)\*.res del $(OBJS)\*.res
222 -if exist $(OBJS)\fl_demo1.exe del $(OBJS)\fl_demo1.exe
223 -if exist $(OBJS)\fl_demo2.exe del $(OBJS)\fl_demo2.exe
224 -if exist $(OBJS)\fl_sample1.exe del $(OBJS)\fl_sample1.exe
225 -if exist $(OBJS)\fl_sample2.exe del $(OBJS)\fl_sample2.exe
226 -if exist $(OBJS)\fl_sample3.exe del $(OBJS)\fl_sample3.exe
227
228$(OBJS)\fl_demo1.exe: $(FL_DEMO1_OBJECTS) $(OBJS)\fl_demo1_fl_demo1.res
229 ilink32 -Tpe -q $(LDFLAGS) $(__DEBUGINFO) -L$(LIBDIRNAME) -aa @&&|
2265a2d5 230 c0w32.obj $(FL_DEMO1_OBJECTS),$@,, wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_fl.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_3).lib,, $(OBJS)\fl_demo1_fl_demo1.res
03206f17
VS
231|
232
233$(OBJS)\fl_demo2.exe: $(FL_DEMO2_OBJECTS) $(OBJS)\fl_demo2_fl_demo2.res
234 ilink32 -Tpe -q $(LDFLAGS) $(__DEBUGINFO) -L$(LIBDIRNAME) -aa @&&|
2265a2d5 235 c0w32.obj $(FL_DEMO2_OBJECTS),$@,, wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_fl.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_3).lib,, $(OBJS)\fl_demo2_fl_demo2.res
03206f17
VS
236|
237
238$(OBJS)\fl_sample1.exe: $(FL_SAMPLE1_OBJECTS) $(OBJS)\fl_sample1_fl_sample1.res
239 ilink32 -Tpe -q $(LDFLAGS) $(__DEBUGINFO) -L$(LIBDIRNAME) -aa @&&|
2265a2d5 240 c0w32.obj $(FL_SAMPLE1_OBJECTS),$@,, wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_fl.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_3).lib,, $(OBJS)\fl_sample1_fl_sample1.res
03206f17
VS
241|
242
243$(OBJS)\fl_sample2.exe: $(FL_SAMPLE2_OBJECTS) $(OBJS)\fl_sample2_fl_sample2.res
244 ilink32 -Tpe -q $(LDFLAGS) $(__DEBUGINFO) -L$(LIBDIRNAME) -aa @&&|
2265a2d5 245 c0w32.obj $(FL_SAMPLE2_OBJECTS),$@,, wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_fl.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_3).lib,, $(OBJS)\fl_sample2_fl_sample2.res
03206f17
VS
246|
247
248$(OBJS)\fl_sample3.exe: $(FL_SAMPLE3_OBJECTS) $(OBJS)\fl_sample3_fl_sample3.res
249 ilink32 -Tpe -q $(LDFLAGS) $(__DEBUGINFO) -L$(LIBDIRNAME) -aa @&&|
2265a2d5 250 c0w32.obj $(FL_SAMPLE3_OBJECTS),$@,, wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_fl.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_3).lib,, $(OBJS)\fl_sample3_fl_sample3.res
03206f17 251|