1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.1.9 (http://bakefile.sourceforge.net)
4 # Do not modify, all changes will be overwritten!
5 # =========================================================================
11 !error Your Borland compiler does not define MAKEDIR. Please define the BCCDIR variable, e.g. BCCDIR=d:\bc4
13 BCCDIR = $(MAKEDIR)\..
16 !include ../../build/msw/config.bcc
18 # -------------------------------------------------------------------------
19 # Do not modify the rest of this file!
20 # -------------------------------------------------------------------------
26 bcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
27 LIBDIRNAME = .\..\..\lib\bcc_$(LIBTYPE_SUFFIX)$(CFG)
29 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
30 DBBROWSE_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) $(__MSLU_DEFINE_p) \
34 -I.\..\..\include -I$(SETUPHDIR) -I. $(__DLLFLAG_p) -I.\..\..\samples -DNOPCH \
35 $(CPPFLAGS) $(CXXFLAGS)
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
46 ### Conditionally set variables: ###
48 !if "$(USE_GUI)" == "0"
51 !if "$(USE_GUI)" == "1"
54 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
57 !if "$(DEBUG_FLAG)" == "1"
60 !if "$(UNICODE)" == "1"
63 !if "$(WXUNIV)" == "1"
66 !if "$(SHARED)" == "1"
69 !if "$(SHARED)" == "0"
72 !if "$(SHARED)" == "1"
75 !if "$(MONOLITHIC)" == "0"
78 !if "$(MONOLITHIC)" == "1"
81 !if "$(USE_ODBC)" == "1"
82 __dbbrowse___depname = $(OBJS)\dbbrowse.exe
84 !if "$(BUILD)" == "debug"
85 __OPTIMIZEFLAG_2 = -Od
87 !if "$(BUILD)" == "release"
88 __OPTIMIZEFLAG_2 = -O2
90 !if "$(USE_THREADS)" == "0"
93 !if "$(USE_THREADS)" == "1"
96 !if "$(USE_THREADS)" == "0"
99 !if "$(USE_THREADS)" == "1"
100 __THREADSFLAG_6 = -tWM
102 !if "$(RUNTIME_LIBS)" == "dynamic"
103 __RUNTIME_LIBS_7 = -tWR
105 !if "$(RUNTIME_LIBS)" == "static"
108 !if "$(RUNTIME_LIBS)" == "dynamic"
111 !if "$(RUNTIME_LIBS)" == "static"
114 !if "$(WXUNIV)" == "1"
115 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
117 !if "$(WXUNIV)" == "1"
118 __WXUNIV_DEFINE_p_1 = -d__WXUNIVERSAL__
120 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
121 __DEBUG_DEFINE_p = -D__WXDEBUG__
123 !if "$(DEBUG_FLAG)" == "1"
124 __DEBUG_DEFINE_p = -D__WXDEBUG__
126 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
127 __DEBUG_DEFINE_p_1 = -d__WXDEBUG__
129 !if "$(DEBUG_FLAG)" == "1"
130 __DEBUG_DEFINE_p_1 = -d__WXDEBUG__
132 !if "$(USE_EXCEPTIONS)" == "0"
133 __EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
135 !if "$(USE_EXCEPTIONS)" == "0"
136 __EXCEPTIONS_DEFINE_p_1 = -dwxNO_EXCEPTIONS
138 !if "$(USE_RTTI)" == "0"
139 __RTTI_DEFINE_p = -DwxNO_RTTI
141 !if "$(USE_RTTI)" == "0"
142 __RTTI_DEFINE_p_1 = -dwxNO_RTTI
144 !if "$(USE_THREADS)" == "0"
145 __THREAD_DEFINE_p = -DwxNO_THREADS
147 !if "$(USE_THREADS)" == "0"
148 __THREAD_DEFINE_p_1 = -dwxNO_THREADS
150 !if "$(UNICODE)" == "1"
151 __UNICODE_DEFINE_p = -D_UNICODE
153 !if "$(UNICODE)" == "1"
154 __UNICODE_DEFINE_p_1 = -d_UNICODE
157 __MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
160 __MSLU_DEFINE_p_1 = -dwxUSE_UNICODE_MSLU=1
162 !if "$(SHARED)" == "1"
163 __DLLFLAG_p = -DWXUSINGDLL
165 !if "$(SHARED)" == "1"
166 __DLLFLAG_p_1 = -dWXUSINGDLL
168 !if "$(MONOLITHIC)" == "0"
170 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_dbgrid.lib
172 !if "$(MONOLITHIC)" == "0"
174 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_adv.lib
176 !if "$(MONOLITHIC)" == "0" && "$(USE_ODBC)" == "1"
178 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_odbc.lib
180 !if "$(MONOLITHIC)" == "0"
182 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_html.lib
184 !if "$(MONOLITHIC)" == "0"
186 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_xml.lib
188 !if "$(MONOLITHIC)" == "0"
190 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
192 !if "$(MONOLITHIC)" == "0"
194 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
196 !if "$(MONOLITHIC)" == "1"
198 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
200 !if "$(USE_GUI)" == "1"
201 __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
203 !if "$(USE_GUI)" == "1"
204 __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
206 !if "$(USE_GUI)" == "1"
207 __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
210 __UNICOWS_LIB_p = unicows.lib
212 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
215 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
218 !if "$(DEBUG_INFO)" == "0"
221 !if "$(DEBUG_INFO)" == "1"
228 -if not exist $(OBJS) mkdir $(OBJS)
232 all: $(__dbbrowse___depname) data_help_std data_help_png
235 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
236 -if exist $(OBJS)\*.res del $(OBJS)\*.res
237 -if exist $(OBJS)\*.csm del $(OBJS)\*.csm
238 -if exist $(OBJS)\dbbrowse.exe del $(OBJS)\dbbrowse.exe
239 -if exist $(OBJS)\dbbrowse.tds del $(OBJS)\dbbrowse.tds
240 -if exist $(OBJS)\dbbrowse.ilc del $(OBJS)\dbbrowse.ilc
241 -if exist $(OBJS)\dbbrowse.ild del $(OBJS)\dbbrowse.ild
242 -if exist $(OBJS)\dbbrowse.ilf del $(OBJS)\dbbrowse.ilf
243 -if exist $(OBJS)\dbbrowse.ils del $(OBJS)\dbbrowse.ils
245 !if "$(USE_ODBC)" == "1"
246 $(OBJS)\dbbrowse.exe: $(DBBROWSE_OBJECTS) $(OBJS)\dbbrowse_dbbrowse.res
247 ilink32 -Tpe -q $(LDFLAGS) -L$(BCCDIR)\lib -L$(BCCDIR)\lib\psdk $(__DEBUGINFO) -L$(LIBDIRNAME) -aa @&&|
248 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) ole2w32.lib oleacc.lib odbc32.lib import32.lib cw32$(__THREADSFLAG_5)$(__RUNTIME_LIBS_8).lib,, $(OBJS)\dbbrowse_dbbrowse.res
253 if not exist $(OBJS)\help.std mkdir $(OBJS)\help.std
254 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
257 if not exist $(OBJS)\help.png mkdir $(OBJS)\help.png
258 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
260 $(OBJS)\dbbrowse_dbbrowse.obj: .\dbbrowse.cpp
261 $(CXX) -q -c -P -o$@ $(DBBROWSE_CXXFLAGS) $**
263 $(OBJS)\dbbrowse_doc.obj: .\doc.cpp
264 $(CXX) -q -c -P -o$@ $(DBBROWSE_CXXFLAGS) $**
266 $(OBJS)\dbbrowse_pgmctrl.obj: .\pgmctrl.cpp
267 $(CXX) -q -c -P -o$@ $(DBBROWSE_CXXFLAGS) $**
269 $(OBJS)\dbbrowse_tabpgwin.obj: .\tabpgwin.cpp
270 $(CXX) -q -c -P -o$@ $(DBBROWSE_CXXFLAGS) $**
272 $(OBJS)\dbbrowse_browsedb.obj: .\browsedb.cpp
273 $(CXX) -q -c -P -o$@ $(DBBROWSE_CXXFLAGS) $**
275 $(OBJS)\dbbrowse_dbtree.obj: .\dbtree.cpp
276 $(CXX) -q -c -P -o$@ $(DBBROWSE_CXXFLAGS) $**
278 $(OBJS)\dbbrowse_dbgrid.obj: .\dbgrid.cpp
279 $(CXX) -q -c -P -o$@ $(DBBROWSE_CXXFLAGS) $**
281 $(OBJS)\dbbrowse_dlguser.obj: .\dlguser.cpp
282 $(CXX) -q -c -P -o$@ $(DBBROWSE_CXXFLAGS) $**
284 $(OBJS)\dbbrowse_dbbrowse.res: .\dbbrowse.rc
285 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) -i.\..\..\include -i$(SETUPHDIR) -i. $(__DLLFLAG_p_1) -i.\..\..\samples -dNOPCH $**