]> git.saurik.com Git - wxWidgets.git/blame - demos/dbbrowse/makefile.bcc
regenerated after last changes
[wxWidgets.git] / demos / dbbrowse / makefile.bcc
CommitLineData
264af224
VS
1# =========================================================================
2# This makefile was generated by
cf9b63b3 3# Bakefile 0.2.0 (http://bakefile.sourceforge.net)
264af224
VS
4# Do not modify, all changes will be overwritten!
5# =========================================================================
6
9bfe7ad9
VS
7.autodepend
8
264af224 9!ifndef BCCDIR
9bfe7ad9
VS
10!ifndef MAKEDIR
11!error Your Borland compiler does not define MAKEDIR. Please define the BCCDIR variable, e.g. BCCDIR=d:\bc4
12!endif
264af224
VS
13BCCDIR = $(MAKEDIR)\..
14!endif
15
fd9f42b6 16!include ../../build/msw/config.bcc
264af224
VS
17
18# -------------------------------------------------------------------------
19# Do not modify the rest of this file!
20# -------------------------------------------------------------------------
21
264af224
VS
22### Variables: ###
23
4cbcfb73 24WX_RELEASE_NODOT = 27
b17c1746
DE
25OBJS = \
26 bcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
d3d0b8db 27LIBDIRNAME = .\..\..\lib\bcc_$(LIBTYPE_SUFFIX)$(CFG)
b17c1746
DE
28SETUPHDIR = \
29 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
8c9f8f91
JS
30DBBROWSE_CXXFLAGS = $(__RUNTIME_LIBS_7) -I$(BCCDIR)\include $(__DEBUGINFO) \
31 $(__OPTIMIZEFLAG_2) $(__THREADSFLAG_6) -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
32 $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
2113bc77 33 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \
3abcf424
RD
34 $(__GFXCTX_DEFINE_p) -I$(SETUPHDIR) -I.\..\..\include -I. $(__DLLFLAG_p) \
35 -I.\..\..\samples -DNOPCH $(CPPFLAGS) $(CXXFLAGS)
264af224
VS
36DBBROWSE_OBJECTS = \
37 $(OBJS)\dbbrowse_dbbrowse.obj \
38 $(OBJS)\dbbrowse_doc.obj \
39 $(OBJS)\dbbrowse_pgmctrl.obj \
40 $(OBJS)\dbbrowse_tabpgwin.obj \
41 $(OBJS)\dbbrowse_browsedb.obj \
42 $(OBJS)\dbbrowse_dbtree.obj \
43 $(OBJS)\dbbrowse_dbgrid.obj \
44 $(OBJS)\dbbrowse_dlguser.obj
264af224
VS
45
46### Conditionally set variables: ###
47
48!if "$(USE_GUI)" == "0"
49PORTNAME = base
50!endif
51!if "$(USE_GUI)" == "1"
52PORTNAME = msw
53!endif
54!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
55WXDEBUGFLAG = d
56!endif
57!if "$(DEBUG_FLAG)" == "1"
58WXDEBUGFLAG = d
59!endif
264af224
VS
60!if "$(UNICODE)" == "1"
61WXUNICODEFLAG = u
62!endif
63!if "$(WXUNIV)" == "1"
64WXUNIVNAME = univ
65!endif
264af224 66!if "$(SHARED)" == "1"
b17c1746 67WXDLLFLAG = dll
264af224 68!endif
d3d0b8db
JS
69!if "$(SHARED)" == "0"
70LIBTYPE_SUFFIX = lib
71!endif
72!if "$(SHARED)" == "1"
73LIBTYPE_SUFFIX = dll
74!endif
dd65d8c8
RN
75!if "$(MONOLITHIC)" == "0"
76EXTRALIBS_FOR_BASE =
77!endif
78!if "$(MONOLITHIC)" == "1"
79EXTRALIBS_FOR_BASE =
80!endif
81!if "$(USE_ODBC)" == "1"
82__dbbrowse___depname = $(OBJS)\dbbrowse.exe
83!endif
264af224
VS
84!if "$(BUILD)" == "debug"
85__OPTIMIZEFLAG_2 = -Od
86!endif
87!if "$(BUILD)" == "release"
88__OPTIMIZEFLAG_2 = -O2
89!endif
8c9f8f91
JS
90!if "$(USE_THREADS)" == "0"
91__THREADSFLAG_5 =
92!endif
93!if "$(USE_THREADS)" == "1"
94__THREADSFLAG_5 = mt
95!endif
96!if "$(USE_THREADS)" == "0"
97__THREADSFLAG_6 =
98!endif
99!if "$(USE_THREADS)" == "1"
100__THREADSFLAG_6 = -tWM
101!endif
264af224 102!if "$(RUNTIME_LIBS)" == "dynamic"
8c9f8f91 103__RUNTIME_LIBS_7 = -tWR
264af224
VS
104!endif
105!if "$(RUNTIME_LIBS)" == "static"
8c9f8f91 106__RUNTIME_LIBS_7 =
264af224
VS
107!endif
108!if "$(RUNTIME_LIBS)" == "dynamic"
8c9f8f91 109__RUNTIME_LIBS_8 = i
264af224
VS
110!endif
111!if "$(RUNTIME_LIBS)" == "static"
8c9f8f91 112__RUNTIME_LIBS_8 =
264af224 113!endif
b17c1746
DE
114!if "$(WXUNIV)" == "1"
115__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
116!endif
117!if "$(WXUNIV)" == "1"
118__WXUNIV_DEFINE_p_1 = -d__WXUNIVERSAL__
119!endif
120!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
121__DEBUG_DEFINE_p = -D__WXDEBUG__
122!endif
123!if "$(DEBUG_FLAG)" == "1"
124__DEBUG_DEFINE_p = -D__WXDEBUG__
125!endif
126!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
127__DEBUG_DEFINE_p_1 = -d__WXDEBUG__
128!endif
129!if "$(DEBUG_FLAG)" == "1"
130__DEBUG_DEFINE_p_1 = -d__WXDEBUG__
131!endif
8c9f8f91
JS
132!if "$(USE_EXCEPTIONS)" == "0"
133__EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
134!endif
135!if "$(USE_EXCEPTIONS)" == "0"
136__EXCEPTIONS_DEFINE_p_1 = -dwxNO_EXCEPTIONS
137!endif
138!if "$(USE_RTTI)" == "0"
139__RTTI_DEFINE_p = -DwxNO_RTTI
140!endif
141!if "$(USE_RTTI)" == "0"
142__RTTI_DEFINE_p_1 = -dwxNO_RTTI
143!endif
144!if "$(USE_THREADS)" == "0"
145__THREAD_DEFINE_p = -DwxNO_THREADS
146!endif
147!if "$(USE_THREADS)" == "0"
148__THREAD_DEFINE_p_1 = -dwxNO_THREADS
149!endif
264af224 150!if "$(UNICODE)" == "1"
ec08d395 151__UNICODE_DEFINE_p = -D_UNICODE
264af224
VS
152!endif
153!if "$(UNICODE)" == "1"
ec08d395 154__UNICODE_DEFINE_p_1 = -d_UNICODE
264af224 155!endif
2113bc77
MW
156!if "$(MSLU)" == "1"
157__MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
158!endif
159!if "$(MSLU)" == "1"
160__MSLU_DEFINE_p_1 = -dwxUSE_UNICODE_MSLU=1
161!endif
3abcf424
RD
162!if "$(USE_GDIPLUS)" == "1"
163__GFXCTX_DEFINE_p = -DwxUSE_GRAPHICS_CONTEXT=1
164!endif
165!if "$(USE_GDIPLUS)" == "1"
166__GFXCTX_DEFINE_p_1 = -dwxUSE_GRAPHICS_CONTEXT=1
167!endif
b17c1746
DE
168!if "$(SHARED)" == "1"
169__DLLFLAG_p = -DWXUSINGDLL
170!endif
171!if "$(SHARED)" == "1"
172__DLLFLAG_p_1 = -dWXUSINGDLL
173!endif
174!if "$(MONOLITHIC)" == "0"
175__WXLIB_DBGRID_p = \
c33fae85 176 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_dbgrid.lib
4e209a20 177!endif
264af224
VS
178!if "$(MONOLITHIC)" == "0"
179__WXLIB_ADV_p = \
c33fae85 180 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_adv.lib
264af224 181!endif
b92ca05a 182!if "$(MONOLITHIC)" == "0" && "$(USE_ODBC)" == "1"
c33fae85
RN
183__WXLIB_ODBC_p = \
184 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_odbc.lib
264af224
VS
185!endif
186!if "$(MONOLITHIC)" == "0"
b17c1746 187__WXLIB_HTML_p = \
c33fae85 188 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_html.lib
264af224
VS
189!endif
190!if "$(MONOLITHIC)" == "0"
ebef1625
MW
191__WXLIB_XML_p = \
192 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_xml.lib
193!endif
194!if "$(MONOLITHIC)" == "0"
b17c1746 195__WXLIB_CORE_p = \
c33fae85 196 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
f2901744
VS
197!endif
198!if "$(MONOLITHIC)" == "0"
c33fae85
RN
199__WXLIB_BASE_p = \
200 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
264af224
VS
201!endif
202!if "$(MONOLITHIC)" == "1"
203__WXLIB_MONO_p = \
c33fae85 204 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
264af224 205!endif
b17c1746 206!if "$(USE_GUI)" == "1"
9c2d002b 207__LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
264af224 208!endif
b17c1746 209!if "$(USE_GUI)" == "1"
9c2d002b 210__LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
264af224 211!endif
b17c1746 212!if "$(USE_GUI)" == "1"
9c2d002b 213__LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
b17c1746
DE
214!endif
215!if "$(MSLU)" == "1"
216__UNICOWS_LIB_p = unicows.lib
217!endif
3abcf424
RD
218!if "$(USE_GDIPLUS)" == "1"
219__GDIPLUS_LIB_p = gdiplus.lib
220!endif
b17c1746
DE
221!if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
222__DEBUGINFO = -v
223!endif
224!if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
225__DEBUGINFO = -v-
226!endif
227!if "$(DEBUG_INFO)" == "0"
228__DEBUGINFO = -v-
229!endif
230!if "$(DEBUG_INFO)" == "1"
231__DEBUGINFO = -v
264af224
VS
232!endif
233
234
235all: $(OBJS)
236$(OBJS):
237 -if not exist $(OBJS) mkdir $(OBJS)
238
239### Targets: ###
240
dd65d8c8 241all: $(__dbbrowse___depname) data_help_std data_help_png
264af224 242
b17c1746
DE
243clean:
244 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
245 -if exist $(OBJS)\*.res del $(OBJS)\*.res
d3d0b8db 246 -if exist $(OBJS)\*.csm del $(OBJS)\*.csm
b17c1746
DE
247 -if exist $(OBJS)\dbbrowse.exe del $(OBJS)\dbbrowse.exe
248 -if exist $(OBJS)\dbbrowse.tds del $(OBJS)\dbbrowse.tds
249 -if exist $(OBJS)\dbbrowse.ilc del $(OBJS)\dbbrowse.ilc
250 -if exist $(OBJS)\dbbrowse.ild del $(OBJS)\dbbrowse.ild
251 -if exist $(OBJS)\dbbrowse.ilf del $(OBJS)\dbbrowse.ilf
252 -if exist $(OBJS)\dbbrowse.ils del $(OBJS)\dbbrowse.ils
253
dd65d8c8 254!if "$(USE_ODBC)" == "1"
b17c1746
DE
255$(OBJS)\dbbrowse.exe: $(DBBROWSE_OBJECTS) $(OBJS)\dbbrowse_dbbrowse.res
256 ilink32 -Tpe -q $(LDFLAGS) -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO) -L$(LIBDIRNAME) -aa @&&|
3abcf424 257 c0w32.obj $(DBBROWSE_OBJECTS),$@,, $(__WXLIB_DBGRID_p) $(__WXLIB_ADV_p) $(__WXLIB_ODBC_p) $(__WXLIB_HTML_p) $(__WXLIB_XML_p) $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) wxzlib$(WXDEBUGFLAG).lib wxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib wxexpat$(WXDEBUGFLAG).lib $(EXTRALIBS_FOR_BASE) $(__UNICOWS_LIB_p) $(__GDIPLUS_LIB_p) ole2w32.lib oleacc.lib odbc32.lib import32.lib cw32$(__THREADSFLAG_5)$(__RUNTIME_LIBS_8).lib,, $(OBJS)\dbbrowse_dbbrowse.res
b17c1746 258|
dd65d8c8 259!endif
264af224 260
eac98de7
VS
261data_help_std:
262 if not exist $(OBJS)\help.std mkdir $(OBJS)\help.std
263 for %f in (compiler.htm dbbrowse.hhc dbbrowse.hhk dbbrowse.hhp dbbrowse.htm getcol.htm getcolsh.htm icons.htm picgrams.htm problems.htm remstar.htm sample.htm startprm.htm todo.htm wxdb.htm wxtable.htm) do if not exist $(OBJS)\help.std\%f copy .\help.std\%f $(OBJS)\help.std
264
265data_help_png:
266 if not exist $(OBJS)\help.png mkdir $(OBJS)\help.png
267 for %f in (col.png d_closed.png d_open.png dsn.png dsnclose.png dsnopen.png f_closed.png f_open.png gnu.png gtk.png imbau.png kde.png key.png keyf.png linux.png logo.png motif.png msvc.png odbc.png pgmctrl.png redh.png remstar.png server.png suse.png tab.png view.png winnt.png wins.png) do if not exist $(OBJS)\help.png\%f copy .\help.png\%f $(OBJS)\help.png
268
264af224
VS
269$(OBJS)\dbbrowse_dbbrowse.obj: .\dbbrowse.cpp
270 $(CXX) -q -c -P -o$@ $(DBBROWSE_CXXFLAGS) $**
271
b17c1746 272$(OBJS)\dbbrowse_doc.obj: .\doc.cpp
264af224
VS
273 $(CXX) -q -c -P -o$@ $(DBBROWSE_CXXFLAGS) $**
274
b17c1746 275$(OBJS)\dbbrowse_pgmctrl.obj: .\pgmctrl.cpp
264af224
VS
276 $(CXX) -q -c -P -o$@ $(DBBROWSE_CXXFLAGS) $**
277
b17c1746 278$(OBJS)\dbbrowse_tabpgwin.obj: .\tabpgwin.cpp
264af224
VS
279 $(CXX) -q -c -P -o$@ $(DBBROWSE_CXXFLAGS) $**
280
b17c1746 281$(OBJS)\dbbrowse_browsedb.obj: .\browsedb.cpp
264af224
VS
282 $(CXX) -q -c -P -o$@ $(DBBROWSE_CXXFLAGS) $**
283
b17c1746 284$(OBJS)\dbbrowse_dbtree.obj: .\dbtree.cpp
264af224
VS
285 $(CXX) -q -c -P -o$@ $(DBBROWSE_CXXFLAGS) $**
286
b17c1746 287$(OBJS)\dbbrowse_dbgrid.obj: .\dbgrid.cpp
264af224
VS
288 $(CXX) -q -c -P -o$@ $(DBBROWSE_CXXFLAGS) $**
289
b17c1746
DE
290$(OBJS)\dbbrowse_dlguser.obj: .\dlguser.cpp
291 $(CXX) -q -c -P -o$@ $(DBBROWSE_CXXFLAGS) $**
264af224 292
b17c1746 293$(OBJS)\dbbrowse_dbbrowse.res: .\dbbrowse.rc
3abcf424 294 brcc32 -32 -r -fo$@ -i$(BCCDIR)\include -d__WXMSW__ $(__WXUNIV_DEFINE_p_1) $(__DEBUG_DEFINE_p_1) $(__EXCEPTIONS_DEFINE_p_1) $(__RTTI_DEFINE_p_1) $(__THREAD_DEFINE_p_1) $(__UNICODE_DEFINE_p_1) $(__MSLU_DEFINE_p_1) $(__GFXCTX_DEFINE_p_1) -i$(SETUPHDIR) -i.\..\..\include -i. $(__DLLFLAG_p_1) -i.\..\..\samples -dNOPCH $**
d3d0b8db 295