]> git.saurik.com Git - wxWidgets.git/blame_incremental - demos/dbbrowse/makefile.bcc
Removed very out of date files in docs/msw
[wxWidgets.git] / demos / dbbrowse / makefile.bcc
... / ...
CommitLineData
1# =========================================================================
2# This makefile was generated by
3# Bakefile 0.1.8 (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
13BCCDIR = $(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
24WX_RELEASE_NODOT = 25
25OBJS = \
26 bcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
27LIBDIRNAME = .\..\..\lib\bcc_$(LIBTYPE_SUFFIX)$(CFG)
28SETUPHDIR = \
29 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
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) \
33 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) -I.\..\..\include -I$(SETUPHDIR) \
34 -I. $(__DLLFLAG_p) -I.\..\..\samples -DNOPCH $(CPPFLAGS) $(CXXFLAGS)
35DBBROWSE_OBJECTS = \
36 $(OBJS)\dbbrowse_dbbrowse.obj \
37 $(OBJS)\dbbrowse_doc.obj \
38 $(OBJS)\dbbrowse_pgmctrl.obj \
39 $(OBJS)\dbbrowse_tabpgwin.obj \
40 $(OBJS)\dbbrowse_browsedb.obj \
41 $(OBJS)\dbbrowse_dbtree.obj \
42 $(OBJS)\dbbrowse_dbgrid.obj \
43 $(OBJS)\dbbrowse_dlguser.obj
44
45### Conditionally set variables: ###
46
47!if "$(USE_GUI)" == "0"
48PORTNAME = base
49!endif
50!if "$(USE_GUI)" == "1"
51PORTNAME = msw
52!endif
53!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
54WXDEBUGFLAG = d
55!endif
56!if "$(DEBUG_FLAG)" == "1"
57WXDEBUGFLAG = d
58!endif
59!if "$(UNICODE)" == "1"
60WXUNICODEFLAG = u
61!endif
62!if "$(WXUNIV)" == "1"
63WXUNIVNAME = univ
64!endif
65!if "$(SHARED)" == "1"
66WXDLLFLAG = dll
67!endif
68!if "$(SHARED)" == "0"
69LIBTYPE_SUFFIX = lib
70!endif
71!if "$(SHARED)" == "1"
72LIBTYPE_SUFFIX = dll
73!endif
74!if "$(MONOLITHIC)" == "0"
75EXTRALIBS_FOR_BASE =
76!endif
77!if "$(MONOLITHIC)" == "1"
78EXTRALIBS_FOR_BASE =
79!endif
80!if "$(USE_ODBC)" == "1"
81__dbbrowse___depname = $(OBJS)\dbbrowse.exe
82!endif
83!if "$(BUILD)" == "debug"
84__OPTIMIZEFLAG_2 = -Od
85!endif
86!if "$(BUILD)" == "release"
87__OPTIMIZEFLAG_2 = -O2
88!endif
89!if "$(USE_THREADS)" == "0"
90__THREADSFLAG_5 =
91!endif
92!if "$(USE_THREADS)" == "1"
93__THREADSFLAG_5 = mt
94!endif
95!if "$(USE_THREADS)" == "0"
96__THREADSFLAG_6 =
97!endif
98!if "$(USE_THREADS)" == "1"
99__THREADSFLAG_6 = -tWM
100!endif
101!if "$(RUNTIME_LIBS)" == "dynamic"
102__RUNTIME_LIBS_7 = -tWR
103!endif
104!if "$(RUNTIME_LIBS)" == "static"
105__RUNTIME_LIBS_7 =
106!endif
107!if "$(RUNTIME_LIBS)" == "dynamic"
108__RUNTIME_LIBS_8 = i
109!endif
110!if "$(RUNTIME_LIBS)" == "static"
111__RUNTIME_LIBS_8 =
112!endif
113!if "$(WXUNIV)" == "1"
114__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
115!endif
116!if "$(WXUNIV)" == "1"
117__WXUNIV_DEFINE_p_1 = -d__WXUNIVERSAL__
118!endif
119!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
120__DEBUG_DEFINE_p = -D__WXDEBUG__
121!endif
122!if "$(DEBUG_FLAG)" == "1"
123__DEBUG_DEFINE_p = -D__WXDEBUG__
124!endif
125!if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
126__DEBUG_DEFINE_p_1 = -d__WXDEBUG__
127!endif
128!if "$(DEBUG_FLAG)" == "1"
129__DEBUG_DEFINE_p_1 = -d__WXDEBUG__
130!endif
131!if "$(USE_EXCEPTIONS)" == "0"
132__EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
133!endif
134!if "$(USE_EXCEPTIONS)" == "0"
135__EXCEPTIONS_DEFINE_p_1 = -dwxNO_EXCEPTIONS
136!endif
137!if "$(USE_RTTI)" == "0"
138__RTTI_DEFINE_p = -DwxNO_RTTI
139!endif
140!if "$(USE_RTTI)" == "0"
141__RTTI_DEFINE_p_1 = -dwxNO_RTTI
142!endif
143!if "$(USE_THREADS)" == "0"
144__THREAD_DEFINE_p = -DwxNO_THREADS
145!endif
146!if "$(USE_THREADS)" == "0"
147__THREAD_DEFINE_p_1 = -dwxNO_THREADS
148!endif
149!if "$(UNICODE)" == "1"
150__UNICODE_DEFINE_p = -D_UNICODE
151!endif
152!if "$(UNICODE)" == "1"
153__UNICODE_DEFINE_p_1 = -d_UNICODE
154!endif
155!if "$(SHARED)" == "1"
156__DLLFLAG_p = -DWXUSINGDLL
157!endif
158!if "$(SHARED)" == "1"
159__DLLFLAG_p_1 = -dWXUSINGDLL
160!endif
161!if "$(MONOLITHIC)" == "0"
162__WXLIB_DBGRID_p = \
163 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_dbgrid.lib
164!endif
165!if "$(MONOLITHIC)" == "0"
166__WXLIB_ADV_p = \
167 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_adv.lib
168!endif
169!if "$(MONOLITHIC)" == "0" && "$(USE_ODBC)" == "1"
170__WXLIB_ODBC_p = \
171 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_odbc.lib
172!endif
173!if "$(MONOLITHIC)" == "0"
174__WXLIB_HTML_p = \
175 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_html.lib
176!endif
177!if "$(MONOLITHIC)" == "0"
178__WXLIB_CORE_p = \
179 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
180!endif
181!if "$(MONOLITHIC)" == "0"
182__WXLIB_BASE_p = \
183 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
184!endif
185!if "$(MONOLITHIC)" == "1"
186__WXLIB_MONO_p = \
187 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
188!endif
189!if "$(USE_GUI)" == "1"
190__LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
191!endif
192!if "$(USE_GUI)" == "1"
193__LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
194!endif
195!if "$(USE_GUI)" == "1"
196__LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
197!endif
198!if "$(MSLU)" == "1"
199__UNICOWS_LIB_p = unicows.lib
200!endif
201!if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
202__DEBUGINFO = -v
203!endif
204!if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
205__DEBUGINFO = -v-
206!endif
207!if "$(DEBUG_INFO)" == "0"
208__DEBUGINFO = -v-
209!endif
210!if "$(DEBUG_INFO)" == "1"
211__DEBUGINFO = -v
212!endif
213
214
215all: $(OBJS)
216$(OBJS):
217 -if not exist $(OBJS) mkdir $(OBJS)
218
219### Targets: ###
220
221all: $(__dbbrowse___depname) data_help_std data_help_png
222
223clean:
224 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
225 -if exist $(OBJS)\*.res del $(OBJS)\*.res
226 -if exist $(OBJS)\*.csm del $(OBJS)\*.csm
227 -if exist $(OBJS)\dbbrowse.exe del $(OBJS)\dbbrowse.exe
228 -if exist $(OBJS)\dbbrowse.tds del $(OBJS)\dbbrowse.tds
229 -if exist $(OBJS)\dbbrowse.ilc del $(OBJS)\dbbrowse.ilc
230 -if exist $(OBJS)\dbbrowse.ild del $(OBJS)\dbbrowse.ild
231 -if exist $(OBJS)\dbbrowse.ilf del $(OBJS)\dbbrowse.ilf
232 -if exist $(OBJS)\dbbrowse.ils del $(OBJS)\dbbrowse.ils
233
234!if "$(USE_ODBC)" == "1"
235$(OBJS)\dbbrowse.exe: $(DBBROWSE_OBJECTS) $(OBJS)\dbbrowse_dbbrowse.res
236 ilink32 -Tpe -q $(LDFLAGS) -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO) -L$(LIBDIRNAME) -aa @&&|
237 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 cw32$(__THREADSFLAG_5)$(__RUNTIME_LIBS_8).lib,, $(OBJS)\dbbrowse_dbbrowse.res
238|
239!endif
240
241data_help_std:
242 if not exist $(OBJS)\help.std mkdir $(OBJS)\help.std
243 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
244
245data_help_png:
246 if not exist $(OBJS)\help.png mkdir $(OBJS)\help.png
247 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
248
249$(OBJS)\dbbrowse_dbbrowse.obj: .\dbbrowse.cpp
250 $(CXX) -q -c -P -o$@ $(DBBROWSE_CXXFLAGS) $**
251
252$(OBJS)\dbbrowse_doc.obj: .\doc.cpp
253 $(CXX) -q -c -P -o$@ $(DBBROWSE_CXXFLAGS) $**
254
255$(OBJS)\dbbrowse_pgmctrl.obj: .\pgmctrl.cpp
256 $(CXX) -q -c -P -o$@ $(DBBROWSE_CXXFLAGS) $**
257
258$(OBJS)\dbbrowse_tabpgwin.obj: .\tabpgwin.cpp
259 $(CXX) -q -c -P -o$@ $(DBBROWSE_CXXFLAGS) $**
260
261$(OBJS)\dbbrowse_browsedb.obj: .\browsedb.cpp
262 $(CXX) -q -c -P -o$@ $(DBBROWSE_CXXFLAGS) $**
263
264$(OBJS)\dbbrowse_dbtree.obj: .\dbtree.cpp
265 $(CXX) -q -c -P -o$@ $(DBBROWSE_CXXFLAGS) $**
266
267$(OBJS)\dbbrowse_dbgrid.obj: .\dbgrid.cpp
268 $(CXX) -q -c -P -o$@ $(DBBROWSE_CXXFLAGS) $**
269
270$(OBJS)\dbbrowse_dlguser.obj: .\dlguser.cpp
271 $(CXX) -q -c -P -o$@ $(DBBROWSE_CXXFLAGS) $**
272
273$(OBJS)\dbbrowse_dbbrowse.res: .\dbbrowse.rc
274 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) -i.\..\..\include -i$(SETUPHDIR) -i. $(__DLLFLAG_p_1) -i.\..\..\samples -dNOPCH $**
275