]> git.saurik.com Git - wxWidgets.git/blob - contrib/samples/fl/makefile.bcc
reSWIGged for new runtime, etc.
[wxWidgets.git] / contrib / samples / fl / makefile.bcc
1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.1.2 (http://bakefile.sourceforge.net)
4 # Do not modify, all changes will be overwritten!
5 # =========================================================================
6
7 .autodepend
8
9 !ifndef BCCDIR
10 !ifndef MAKEDIR
11 !error Your Borland compiler does not define MAKEDIR. Please define the BCCDIR variable, e.g. BCCDIR=d:\bc4
12 !endif
13 BCCDIR = $(MAKEDIR)\..
14 !endif
15
16 !include ../../../build/msw/config.bcc
17
18 # -------------------------------------------------------------------------
19 # Do not modify the rest of this file!
20 # -------------------------------------------------------------------------
21
22 ### Variables: ###
23
24 OBJS = \
25 bcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
26 SETUPHDIR = \
27 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
28 FL_DEMO1_CXXFLAGS = $(__RUNTIME_LIBS) -I$(BCCDIR)\include $(__DEBUGINFO) \
29 $(__OPTIMIZEFLAG) -tWM -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
30 $(__UNICODE_DEFINE_p) -I.\..\..\..\include -I$(SETUPHDIR) -I. $(__DLLFLAG_p) \
31 -I.\..\..\..\samples -I.\..\..\include -DBMP_DIR=\"bitmaps/\" $(CPPFLAGS) \
32 $(CXXFLAGS)
33 FL_DEMO1_OBJECTS = \
34 $(OBJS)\fl_demo1_fl_demo1.obj
35 FL_DEMO2_CXXFLAGS = $(__RUNTIME_LIBS) -I$(BCCDIR)\include $(__DEBUGINFO) \
36 $(__OPTIMIZEFLAG) -tWM -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
37 $(__UNICODE_DEFINE_p) -I.\..\..\..\include -I$(SETUPHDIR) -I. $(__DLLFLAG_p) \
38 -I.\..\..\..\samples -I.\..\..\include -DBMP_DIR=\"bitmaps/\" $(CPPFLAGS) \
39 $(CXXFLAGS)
40 FL_DEMO2_OBJECTS = \
41 $(OBJS)\fl_demo2_fl_demo2.obj
42 FL_SAMPLE1_CXXFLAGS = $(__RUNTIME_LIBS) -I$(BCCDIR)\include $(__DEBUGINFO) \
43 $(__OPTIMIZEFLAG) -tWM -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
44 $(__UNICODE_DEFINE_p) -I.\..\..\..\include -I$(SETUPHDIR) -I. $(__DLLFLAG_p) \
45 -I.\..\..\..\samples -I.\..\..\include -DBMP_DIR=\"bitmaps/\" $(CPPFLAGS) \
46 $(CXXFLAGS)
47 FL_SAMPLE1_OBJECTS = \
48 $(OBJS)\fl_sample1_fl_sample1.obj
49 FL_SAMPLE2_CXXFLAGS = $(__RUNTIME_LIBS) -I$(BCCDIR)\include $(__DEBUGINFO) \
50 $(__OPTIMIZEFLAG) -tWM -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
51 $(__UNICODE_DEFINE_p) -I.\..\..\..\include -I$(SETUPHDIR) -I. $(__DLLFLAG_p) \
52 -I.\..\..\..\samples -I.\..\..\include -DBMP_DIR=\"bitmaps/\" $(CPPFLAGS) \
53 $(CXXFLAGS)
54 FL_SAMPLE2_OBJECTS = \
55 $(OBJS)\fl_sample2_fl_sample2.obj
56 FL_SAMPLE3_CXXFLAGS = $(__RUNTIME_LIBS) -I$(BCCDIR)\include $(__DEBUGINFO) \
57 $(__OPTIMIZEFLAG) -tWM -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
58 $(__UNICODE_DEFINE_p) -I.\..\..\..\include -I$(SETUPHDIR) -I. $(__DLLFLAG_p) \
59 -I.\..\..\..\samples -I.\..\..\include -DBMP_DIR=\"bitmaps/\" $(CPPFLAGS) \
60 $(CXXFLAGS)
61 FL_SAMPLE3_OBJECTS = \
62 $(OBJS)\fl_sample3_fl_sample3.obj
63
64 ### Conditionally set variables: ###
65
66 !if "$(USE_GUI)" == "0"
67 PORTNAME = base
68 !endif
69 !if "$(USE_GUI)" == "1"
70 PORTNAME = msw
71 !endif
72 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
73 WXDEBUGFLAG = d
74 !endif
75 !if "$(DEBUG_FLAG)" == "1"
76 WXDEBUGFLAG = d
77 !endif
78 !if "$(UNICODE)" == "1"
79 WXUNICODEFLAG = u
80 !endif
81 !if "$(WXUNIV)" == "1"
82 WXUNIVNAME = univ
83 !endif
84 !if "$(SHARED)" == "1"
85 WXDLLFLAG = dll
86 !endif
87 !if "$(BUILD)" == "debug"
88 __OPTIMIZEFLAG = -Od
89 !endif
90 !if "$(BUILD)" == "release"
91 __OPTIMIZEFLAG = -O2
92 !endif
93 !if "$(RUNTIME_LIBS)" == "dynamic"
94 __RUNTIME_LIBS = -tWR
95 !endif
96 !if "$(RUNTIME_LIBS)" == "static"
97 __RUNTIME_LIBS =
98 !endif
99 !if "$(RUNTIME_LIBS)" == "dynamic"
100 __RUNTIME_LIBS_3 = i
101 !endif
102 !if "$(RUNTIME_LIBS)" == "static"
103 __RUNTIME_LIBS_3 =
104 !endif
105 !if "$(WXUNIV)" == "1"
106 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
107 !endif
108 !if "$(WXUNIV)" == "1"
109 __WXUNIV_DEFINE_p_12 = -d__WXUNIVERSAL__
110 !endif
111 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
112 __DEBUG_DEFINE_p = -D__WXDEBUG__
113 !endif
114 !if "$(DEBUG_FLAG)" == "1"
115 __DEBUG_DEFINE_p = -D__WXDEBUG__
116 !endif
117 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
118 __DEBUG_DEFINE_p_12 = -d__WXDEBUG__
119 !endif
120 !if "$(DEBUG_FLAG)" == "1"
121 __DEBUG_DEFINE_p_12 = -d__WXDEBUG__
122 !endif
123 !if "$(UNICODE)" == "1"
124 __UNICODE_DEFINE_p = -D_UNICODE
125 !endif
126 !if "$(UNICODE)" == "1"
127 __UNICODE_DEFINE_p_12 = -d_UNICODE
128 !endif
129 !if "$(SHARED)" == "0"
130 LIBDIRNAME = .\..\..\..\lib\bcc_lib$(CFG)
131 !endif
132 !if "$(SHARED)" == "1"
133 LIBDIRNAME = .\..\..\..\lib\bcc_dll$(CFG)
134 !endif
135 !if "$(SHARED)" == "1"
136 __DLLFLAG_p = -DWXUSINGDLL
137 !endif
138 !if "$(SHARED)" == "1"
139 __DLLFLAG_p_12 = -dWXUSINGDLL
140 !endif
141 !if "$(MONOLITHIC)" == "0"
142 __WXLIB_CORE_p = \
143 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core.lib
144 !endif
145 !if "$(MONOLITHIC)" == "0"
146 __WXLIB_BASE_p = wxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
147 !endif
148 !if "$(MONOLITHIC)" == "1"
149 __WXLIB_MONO_p = \
150 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
151 !endif
152 !if "$(USE_GUI)" == "1"
153 __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
154 !endif
155 !if "$(USE_GUI)" == "1"
156 __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
157 !endif
158 !if "$(USE_GUI)" == "1"
159 __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
160 !endif
161 !if "$(MSLU)" == "1"
162 __UNICOWS_LIB_p = unicows.lib
163 !endif
164 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
165 __DEBUGINFO = -v
166 !endif
167 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
168 __DEBUGINFO = -v-
169 !endif
170 !if "$(DEBUG_INFO)" == "0"
171 __DEBUGINFO = -v-
172 !endif
173 !if "$(DEBUG_INFO)" == "1"
174 __DEBUGINFO = -v
175 !endif
176
177
178 all: $(OBJS)
179 $(OBJS):
180 -if not exist $(OBJS) mkdir $(OBJS)
181
182 ### Targets: ###
183
184 all: $(OBJS)\fl_demo1.exe $(OBJS)\fl_demo2.exe $(OBJS)\fl_sample1.exe $(OBJS)\fl_sample2.exe $(OBJS)\fl_sample3.exe data_files
185
186 clean:
187 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
188 -if exist $(OBJS)\*.res del $(OBJS)\*.res
189 -if exist $(OBJS)\fl_demo1.exe del $(OBJS)\fl_demo1.exe
190 -if exist $(OBJS)\fl_demo1.tds del $(OBJS)\fl_demo1.tds
191 -if exist $(OBJS)\fl_demo1.ilc del $(OBJS)\fl_demo1.ilc
192 -if exist $(OBJS)\fl_demo1.ild del $(OBJS)\fl_demo1.ild
193 -if exist $(OBJS)\fl_demo1.ilf del $(OBJS)\fl_demo1.ilf
194 -if exist $(OBJS)\fl_demo1.ils del $(OBJS)\fl_demo1.ils
195 -if exist $(OBJS)\fl_demo2.exe del $(OBJS)\fl_demo2.exe
196 -if exist $(OBJS)\fl_demo2.tds del $(OBJS)\fl_demo2.tds
197 -if exist $(OBJS)\fl_demo2.ilc del $(OBJS)\fl_demo2.ilc
198 -if exist $(OBJS)\fl_demo2.ild del $(OBJS)\fl_demo2.ild
199 -if exist $(OBJS)\fl_demo2.ilf del $(OBJS)\fl_demo2.ilf
200 -if exist $(OBJS)\fl_demo2.ils del $(OBJS)\fl_demo2.ils
201 -if exist $(OBJS)\fl_sample1.exe del $(OBJS)\fl_sample1.exe
202 -if exist $(OBJS)\fl_sample1.tds del $(OBJS)\fl_sample1.tds
203 -if exist $(OBJS)\fl_sample1.ilc del $(OBJS)\fl_sample1.ilc
204 -if exist $(OBJS)\fl_sample1.ild del $(OBJS)\fl_sample1.ild
205 -if exist $(OBJS)\fl_sample1.ilf del $(OBJS)\fl_sample1.ilf
206 -if exist $(OBJS)\fl_sample1.ils del $(OBJS)\fl_sample1.ils
207 -if exist $(OBJS)\fl_sample2.exe del $(OBJS)\fl_sample2.exe
208 -if exist $(OBJS)\fl_sample2.tds del $(OBJS)\fl_sample2.tds
209 -if exist $(OBJS)\fl_sample2.ilc del $(OBJS)\fl_sample2.ilc
210 -if exist $(OBJS)\fl_sample2.ild del $(OBJS)\fl_sample2.ild
211 -if exist $(OBJS)\fl_sample2.ilf del $(OBJS)\fl_sample2.ilf
212 -if exist $(OBJS)\fl_sample2.ils del $(OBJS)\fl_sample2.ils
213 -if exist $(OBJS)\fl_sample3.exe del $(OBJS)\fl_sample3.exe
214 -if exist $(OBJS)\fl_sample3.tds del $(OBJS)\fl_sample3.tds
215 -if exist $(OBJS)\fl_sample3.ilc del $(OBJS)\fl_sample3.ilc
216 -if exist $(OBJS)\fl_sample3.ild del $(OBJS)\fl_sample3.ild
217 -if exist $(OBJS)\fl_sample3.ilf del $(OBJS)\fl_sample3.ilf
218 -if exist $(OBJS)\fl_sample3.ils del $(OBJS)\fl_sample3.ils
219
220 $(OBJS)\fl_demo1.exe: $(FL_DEMO1_OBJECTS) $(OBJS)\fl_demo1_fl_demo1.res
221 ilink32 -Tpe -q $(LDFLAGS) -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO) -L$(LIBDIRNAME) -aa @&&|
222 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) ole2w32.lib oleacc.lib import32.lib cw32mt$(__RUNTIME_LIBS_3).lib,, $(OBJS)\fl_demo1_fl_demo1.res
223 |
224
225 $(OBJS)\fl_demo2.exe: $(FL_DEMO2_OBJECTS) $(OBJS)\fl_demo2_fl_demo2.res
226 ilink32 -Tpe -q $(LDFLAGS) -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO) -L$(LIBDIRNAME) -aa @&&|
227 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) ole2w32.lib oleacc.lib import32.lib cw32mt$(__RUNTIME_LIBS_3).lib,, $(OBJS)\fl_demo2_fl_demo2.res
228 |
229
230 $(OBJS)\fl_sample1.exe: $(FL_SAMPLE1_OBJECTS) $(OBJS)\fl_sample1_fl_sample1.res
231 ilink32 -Tpe -q $(LDFLAGS) -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO) -L$(LIBDIRNAME) -aa @&&|
232 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) ole2w32.lib oleacc.lib import32.lib cw32mt$(__RUNTIME_LIBS_3).lib,, $(OBJS)\fl_sample1_fl_sample1.res
233 |
234
235 $(OBJS)\fl_sample2.exe: $(FL_SAMPLE2_OBJECTS) $(OBJS)\fl_sample2_fl_sample2.res
236 ilink32 -Tpe -q $(LDFLAGS) -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO) -L$(LIBDIRNAME) -aa @&&|
237 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) ole2w32.lib oleacc.lib import32.lib cw32mt$(__RUNTIME_LIBS_3).lib,, $(OBJS)\fl_sample2_fl_sample2.res
238 |
239
240 $(OBJS)\fl_sample3.exe: $(FL_SAMPLE3_OBJECTS) $(OBJS)\fl_sample3_fl_sample3.res
241 ilink32 -Tpe -q $(LDFLAGS) -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO) -L$(LIBDIRNAME) -aa @&&|
242 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) ole2w32.lib oleacc.lib import32.lib cw32mt$(__RUNTIME_LIBS_3).lib,, $(OBJS)\fl_sample3_fl_sample3.res
243 |
244
245 data_files:
246 if not exist $(OBJS)\bitmaps mkdir $(OBJS)\bitmaps
247 for %f in (bookmarks.bmp class_icon.bmp class_icon1.bmp copy.bmp cut.bmp file_icon.bmp folder_icon.bmp help_icon.bmp new.bmp nextmark.bmp open.bmp paste.bmp prevmark.bmp res_icon.bmp save.bmp saveall.bmp search.bmp start95_dp.bmp start95_pr.bmp tile.bmp) do if not exist $(OBJS)\bitmaps\%f copy .\bitmaps\%f $(OBJS)\bitmaps
248
249 $(OBJS)\fl_demo1_fl_demo1.obj: .\fl_demo1.cpp
250 $(CXX) -q -c -P -o$@ $(FL_DEMO1_CXXFLAGS) $**
251
252 $(OBJS)\fl_demo1_fl_demo1.res: .\fl_demo1.rc
253 brcc32 -32 -r -fo$@ -i$(BCCDIR)\include -d__WXMSW__ $(__WXUNIV_DEFINE_p_12) $(__DEBUG_DEFINE_p_12) $(__UNICODE_DEFINE_p_12) -i.\..\..\..\include -i$(SETUPHDIR) -i. $(__DLLFLAG_p_12) -i.\..\..\..\samples -i.\..\..\include -dBMP_DIR="bitmaps/" $**
254
255 $(OBJS)\fl_demo2_fl_demo2.obj: .\fl_demo2.cpp
256 $(CXX) -q -c -P -o$@ $(FL_DEMO2_CXXFLAGS) $**
257
258 $(OBJS)\fl_demo2_fl_demo2.res: .\fl_demo2.rc
259 brcc32 -32 -r -fo$@ -i$(BCCDIR)\include -d__WXMSW__ $(__WXUNIV_DEFINE_p_12) $(__DEBUG_DEFINE_p_12) $(__UNICODE_DEFINE_p_12) -i.\..\..\..\include -i$(SETUPHDIR) -i. $(__DLLFLAG_p_12) -i.\..\..\..\samples -i.\..\..\include -dBMP_DIR="bitmaps/" $**
260
261 $(OBJS)\fl_sample1_fl_sample1.obj: .\fl_sample1.cpp
262 $(CXX) -q -c -P -o$@ $(FL_SAMPLE1_CXXFLAGS) $**
263
264 $(OBJS)\fl_sample1_fl_sample1.res: .\fl_sample1.rc
265 brcc32 -32 -r -fo$@ -i$(BCCDIR)\include -d__WXMSW__ $(__WXUNIV_DEFINE_p_12) $(__DEBUG_DEFINE_p_12) $(__UNICODE_DEFINE_p_12) -i.\..\..\..\include -i$(SETUPHDIR) -i. $(__DLLFLAG_p_12) -i.\..\..\..\samples -i.\..\..\include -dBMP_DIR="bitmaps/" $**
266
267 $(OBJS)\fl_sample2_fl_sample2.obj: .\fl_sample2.cpp
268 $(CXX) -q -c -P -o$@ $(FL_SAMPLE2_CXXFLAGS) $**
269
270 $(OBJS)\fl_sample2_fl_sample2.res: .\fl_sample2.rc
271 brcc32 -32 -r -fo$@ -i$(BCCDIR)\include -d__WXMSW__ $(__WXUNIV_DEFINE_p_12) $(__DEBUG_DEFINE_p_12) $(__UNICODE_DEFINE_p_12) -i.\..\..\..\include -i$(SETUPHDIR) -i. $(__DLLFLAG_p_12) -i.\..\..\..\samples -i.\..\..\include -dBMP_DIR="bitmaps/" $**
272
273 $(OBJS)\fl_sample3_fl_sample3.obj: .\fl_sample3.cpp
274 $(CXX) -q -c -P -o$@ $(FL_SAMPLE3_CXXFLAGS) $**
275
276 $(OBJS)\fl_sample3_fl_sample3.res: .\fl_sample3.rc
277 brcc32 -32 -r -fo$@ -i$(BCCDIR)\include -d__WXMSW__ $(__WXUNIV_DEFINE_p_12) $(__DEBUG_DEFINE_p_12) $(__UNICODE_DEFINE_p_12) -i.\..\..\..\include -i$(SETUPHDIR) -i. $(__DLLFLAG_p_12) -i.\..\..\..\samples -i.\..\..\include -dBMP_DIR="bitmaps/" $**