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