]> git.saurik.com Git - wxWidgets.git/blame - demos/dbbrowse/makefile.bcc
toplevel background behaviour changed
[wxWidgets.git] / demos / dbbrowse / makefile.bcc
CommitLineData
264af224
VS
1# =========================================================================
2# This makefile was generated by
d3d0b8db 3# Bakefile 0.1.6 (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
c33fae85 24WX_RELEASE_NODOT = 25
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)
9bfe7ad9
VS
30DBBROWSE_CXXFLAGS = $(__RUNTIME_LIBS_6) -I$(BCCDIR)\include $(__DEBUGINFO) \
31 $(__OPTIMIZEFLAG_2) -tWM -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
75a0a7b7 32 $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) -I.\..\..\include -I$(SETUPHDIR) \
c33fae85 33 -I. $(__DLLFLAG_p) -I.\..\..\samples -DNOPCH $(CPPFLAGS) $(CXXFLAGS)
264af224
VS
34DBBROWSE_OBJECTS = \
35 $(OBJS)\dbbrowse_dbbrowse.obj \
36 $(OBJS)\dbbrowse_doc.obj \
37 $(OBJS)\dbbrowse_pgmctrl.obj \
38 $(OBJS)\dbbrowse_tabpgwin.obj \
39 $(OBJS)\dbbrowse_browsedb.obj \
40 $(OBJS)\dbbrowse_dbtree.obj \
41 $(OBJS)\dbbrowse_dbgrid.obj \
42 $(OBJS)\dbbrowse_dlguser.obj
264af224
VS
43
44### Conditionally set variables: ###
45
46!if "$(USE_GUI)" == "0"
47PORTNAME = base
48!endif
49!if "$(USE_GUI)" == "1"
50PORTNAME = msw
51!endif
52!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
53WXDEBUGFLAG = d
54!endif
55!if "$(DEBUG_FLAG)" == "1"
56WXDEBUGFLAG = d
57!endif
264af224
VS
58!if "$(UNICODE)" == "1"
59WXUNICODEFLAG = u
60!endif
61!if "$(WXUNIV)" == "1"
62WXUNIVNAME = univ
63!endif
264af224 64!if "$(SHARED)" == "1"
b17c1746 65WXDLLFLAG = dll
264af224 66!endif
d3d0b8db
JS
67!if "$(SHARED)" == "0"
68LIBTYPE_SUFFIX = lib
69!endif
70!if "$(SHARED)" == "1"
71LIBTYPE_SUFFIX = dll
72!endif
dd65d8c8
RN
73!if "$(MONOLITHIC)" == "0"
74EXTRALIBS_FOR_BASE =
75!endif
76!if "$(MONOLITHIC)" == "1"
77EXTRALIBS_FOR_BASE =
78!endif
79!if "$(USE_ODBC)" == "1"
80__dbbrowse___depname = $(OBJS)\dbbrowse.exe
81!endif
264af224
VS
82!if "$(BUILD)" == "debug"
83__OPTIMIZEFLAG_2 = -Od
84!endif
85!if "$(BUILD)" == "release"
86__OPTIMIZEFLAG_2 = -O2
87!endif
88!if "$(RUNTIME_LIBS)" == "dynamic"
89__RUNTIME_LIBS_6 = -tWR
90!endif
91!if "$(RUNTIME_LIBS)" == "static"
92__RUNTIME_LIBS_6 =
93!endif
94!if "$(RUNTIME_LIBS)" == "dynamic"
95__RUNTIME_LIBS_7 = i
96!endif
97!if "$(RUNTIME_LIBS)" == "static"
98__RUNTIME_LIBS_7 =
99!endif
b17c1746
DE
100!if "$(WXUNIV)" == "1"
101__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
102!endif
103!if "$(WXUNIV)" == "1"
104__WXUNIV_DEFINE_p_1 = -d__WXUNIVERSAL__
105!endif
106!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
107__DEBUG_DEFINE_p = -D__WXDEBUG__
108!endif
109!if "$(DEBUG_FLAG)" == "1"
110__DEBUG_DEFINE_p = -D__WXDEBUG__
111!endif
112!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
113__DEBUG_DEFINE_p_1 = -d__WXDEBUG__
114!endif
115!if "$(DEBUG_FLAG)" == "1"
116__DEBUG_DEFINE_p_1 = -d__WXDEBUG__
117!endif
264af224 118!if "$(UNICODE)" == "1"
ec08d395 119__UNICODE_DEFINE_p = -D_UNICODE
264af224
VS
120!endif
121!if "$(UNICODE)" == "1"
ec08d395 122__UNICODE_DEFINE_p_1 = -d_UNICODE
264af224 123!endif
b17c1746
DE
124!if "$(SHARED)" == "1"
125__DLLFLAG_p = -DWXUSINGDLL
126!endif
127!if "$(SHARED)" == "1"
128__DLLFLAG_p_1 = -dWXUSINGDLL
129!endif
130!if "$(MONOLITHIC)" == "0"
131__WXLIB_DBGRID_p = \
c33fae85 132 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_dbgrid.lib
4e209a20 133!endif
264af224
VS
134!if "$(MONOLITHIC)" == "0"
135__WXLIB_ADV_p = \
c33fae85 136 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_adv.lib
264af224 137!endif
b92ca05a 138!if "$(MONOLITHIC)" == "0" && "$(USE_ODBC)" == "1"
c33fae85
RN
139__WXLIB_ODBC_p = \
140 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_odbc.lib
264af224
VS
141!endif
142!if "$(MONOLITHIC)" == "0"
b17c1746 143__WXLIB_HTML_p = \
c33fae85 144 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_html.lib
264af224
VS
145!endif
146!if "$(MONOLITHIC)" == "0"
b17c1746 147__WXLIB_CORE_p = \
c33fae85 148 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
f2901744
VS
149!endif
150!if "$(MONOLITHIC)" == "0"
c33fae85
RN
151__WXLIB_BASE_p = \
152 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
264af224
VS
153!endif
154!if "$(MONOLITHIC)" == "1"
155__WXLIB_MONO_p = \
c33fae85 156 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
264af224 157!endif
b17c1746 158!if "$(USE_GUI)" == "1"
9c2d002b 159__LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
264af224 160!endif
b17c1746 161!if "$(USE_GUI)" == "1"
9c2d002b 162__LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
264af224 163!endif
b17c1746 164!if "$(USE_GUI)" == "1"
9c2d002b 165__LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
b17c1746
DE
166!endif
167!if "$(MSLU)" == "1"
168__UNICOWS_LIB_p = unicows.lib
169!endif
b17c1746
DE
170!if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
171__DEBUGINFO = -v
172!endif
173!if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
174__DEBUGINFO = -v-
175!endif
176!if "$(DEBUG_INFO)" == "0"
177__DEBUGINFO = -v-
178!endif
179!if "$(DEBUG_INFO)" == "1"
180__DEBUGINFO = -v
264af224
VS
181!endif
182
183
184all: $(OBJS)
185$(OBJS):
186 -if not exist $(OBJS) mkdir $(OBJS)
187
188### Targets: ###
189
dd65d8c8 190all: $(__dbbrowse___depname) data_help_std data_help_png
264af224 191
b17c1746
DE
192clean:
193 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
194 -if exist $(OBJS)\*.res del $(OBJS)\*.res
d3d0b8db 195 -if exist $(OBJS)\*.csm del $(OBJS)\*.csm
b17c1746
DE
196 -if exist $(OBJS)\dbbrowse.exe del $(OBJS)\dbbrowse.exe
197 -if exist $(OBJS)\dbbrowse.tds del $(OBJS)\dbbrowse.tds
198 -if exist $(OBJS)\dbbrowse.ilc del $(OBJS)\dbbrowse.ilc
199 -if exist $(OBJS)\dbbrowse.ild del $(OBJS)\dbbrowse.ild
200 -if exist $(OBJS)\dbbrowse.ilf del $(OBJS)\dbbrowse.ilf
201 -if exist $(OBJS)\dbbrowse.ils del $(OBJS)\dbbrowse.ils
202
dd65d8c8 203!if "$(USE_ODBC)" == "1"
b17c1746
DE
204$(OBJS)\dbbrowse.exe: $(DBBROWSE_OBJECTS) $(OBJS)\dbbrowse_dbbrowse.res
205 ilink32 -Tpe -q $(LDFLAGS) -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO) -L$(LIBDIRNAME) -aa @&&|
d3d0b8db 206 c0w32.obj $(DBBROWSE_OBJECTS),$@,, $(__WXLIB_DBGRID_p) $(__WXLIB_ADV_p) $(__WXLIB_ODBC_p) $(__WXLIB_HTML_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) ole2w32.lib oleacc.lib odbc32.lib import32.lib cw32mt$(__RUNTIME_LIBS_7).lib,, $(OBJS)\dbbrowse_dbbrowse.res
b17c1746 207|
dd65d8c8 208!endif
264af224 209
eac98de7
VS
210data_help_std:
211 if not exist $(OBJS)\help.std mkdir $(OBJS)\help.std
212 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
213
214data_help_png:
215 if not exist $(OBJS)\help.png mkdir $(OBJS)\help.png
216 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
217
264af224
VS
218$(OBJS)\dbbrowse_dbbrowse.obj: .\dbbrowse.cpp
219 $(CXX) -q -c -P -o$@ $(DBBROWSE_CXXFLAGS) $**
220
b17c1746 221$(OBJS)\dbbrowse_doc.obj: .\doc.cpp
264af224
VS
222 $(CXX) -q -c -P -o$@ $(DBBROWSE_CXXFLAGS) $**
223
b17c1746 224$(OBJS)\dbbrowse_pgmctrl.obj: .\pgmctrl.cpp
264af224
VS
225 $(CXX) -q -c -P -o$@ $(DBBROWSE_CXXFLAGS) $**
226
b17c1746 227$(OBJS)\dbbrowse_tabpgwin.obj: .\tabpgwin.cpp
264af224
VS
228 $(CXX) -q -c -P -o$@ $(DBBROWSE_CXXFLAGS) $**
229
b17c1746 230$(OBJS)\dbbrowse_browsedb.obj: .\browsedb.cpp
264af224
VS
231 $(CXX) -q -c -P -o$@ $(DBBROWSE_CXXFLAGS) $**
232
b17c1746 233$(OBJS)\dbbrowse_dbtree.obj: .\dbtree.cpp
264af224
VS
234 $(CXX) -q -c -P -o$@ $(DBBROWSE_CXXFLAGS) $**
235
b17c1746 236$(OBJS)\dbbrowse_dbgrid.obj: .\dbgrid.cpp
264af224
VS
237 $(CXX) -q -c -P -o$@ $(DBBROWSE_CXXFLAGS) $**
238
b17c1746
DE
239$(OBJS)\dbbrowse_dlguser.obj: .\dlguser.cpp
240 $(CXX) -q -c -P -o$@ $(DBBROWSE_CXXFLAGS) $**
264af224 241
b17c1746 242$(OBJS)\dbbrowse_dbbrowse.res: .\dbbrowse.rc
d3d0b8db
JS
243 brcc32 -32 -r -fo$@ -i$(BCCDIR)\include -d__WXMSW__ $(__WXUNIV_DEFINE_p_1) $(__DEBUG_DEFINE_p_1) $(__UNICODE_DEFINE_p_1) -i.\..\..\include -i$(SETUPHDIR) -i. $(__DLLFLAG_p_1) -i.\..\..\samples -dNOPCH $**
244