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