1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.1.6 (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_6) -I$(BCCDIR)\include $(__DEBUGINFO) \
31 $(__OPTIMIZEFLAG_2) -tWM -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
32 $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) -I.\..\..\include -I$(SETUPHDIR) \
33 -I. $(__DLLFLAG_p) -I.\..\..\samples -DNOPCH $(CPPFLAGS) $(CXXFLAGS)
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
44 ### Conditionally set variables: ###
46 !if "$(USE_GUI)" == "0"
49 !if "$(USE_GUI)" == "1"
52 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
55 !if "$(DEBUG_FLAG)" == "1"
58 !if "$(UNICODE)" == "1"
61 !if "$(WXUNIV)" == "1"
64 !if "$(SHARED)" == "1"
67 !if "$(SHARED)" == "0"
70 !if "$(SHARED)" == "1"
73 !if "$(MONOLITHIC)" == "0"
76 !if "$(MONOLITHIC)" == "1"
79 !if "$(USE_ODBC)" == "1"
80 __dbbrowse___depname = $(OBJS)\dbbrowse.exe
82 !if "$(BUILD)" == "debug"
83 __OPTIMIZEFLAG_2 = -Od
85 !if "$(BUILD)" == "release"
86 __OPTIMIZEFLAG_2 = -O2
88 !if "$(RUNTIME_LIBS)" == "dynamic"
89 __RUNTIME_LIBS_6 = -tWR
91 !if "$(RUNTIME_LIBS)" == "static"
94 !if "$(RUNTIME_LIBS)" == "dynamic"
97 !if "$(RUNTIME_LIBS)" == "static"
100 !if "$(WXUNIV)" == "1"
101 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
103 !if "$(WXUNIV)" == "1"
104 __WXUNIV_DEFINE_p_1 = -d__WXUNIVERSAL__
106 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
107 __DEBUG_DEFINE_p = -D__WXDEBUG__
109 !if "$(DEBUG_FLAG)" == "1"
110 __DEBUG_DEFINE_p = -D__WXDEBUG__
112 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
113 __DEBUG_DEFINE_p_1 = -d__WXDEBUG__
115 !if "$(DEBUG_FLAG)" == "1"
116 __DEBUG_DEFINE_p_1 = -d__WXDEBUG__
118 !if "$(UNICODE)" == "1"
119 __UNICODE_DEFINE_p = -D_UNICODE
121 !if "$(UNICODE)" == "1"
122 __UNICODE_DEFINE_p_1 = -d_UNICODE
124 !if "$(SHARED)" == "1"
125 __DLLFLAG_p = -DWXUSINGDLL
127 !if "$(SHARED)" == "1"
128 __DLLFLAG_p_1 = -dWXUSINGDLL
130 !if "$(MONOLITHIC)" == "0"
132 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_dbgrid.lib
134 !if "$(MONOLITHIC)" == "0"
136 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_adv.lib
138 !if "$(MONOLITHIC)" == "0" && "$(USE_ODBC)" == "1"
140 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_odbc.lib
142 !if "$(MONOLITHIC)" == "0"
144 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_html.lib
146 !if "$(MONOLITHIC)" == "0"
148 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core.lib
150 !if "$(MONOLITHIC)" == "0"
152 wxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
154 !if "$(MONOLITHIC)" == "1"
156 wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR).lib
158 !if "$(USE_GUI)" == "1"
159 __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
161 !if "$(USE_GUI)" == "1"
162 __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
164 !if "$(USE_GUI)" == "1"
165 __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
168 __UNICOWS_LIB_p = unicows.lib
170 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
173 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
176 !if "$(DEBUG_INFO)" == "0"
179 !if "$(DEBUG_INFO)" == "1"
186 -if not exist $(OBJS) mkdir $(OBJS)
190 all: $(__dbbrowse___depname) data_help_std data_help_png
193 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
194 -if exist $(OBJS)\*.res del $(OBJS)\*.res
195 -if exist $(OBJS)\*.csm del $(OBJS)\*.csm
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
203 !if "$(USE_ODBC)" == "1"
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 @&&|
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
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
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
218 $(OBJS)\dbbrowse_dbbrowse.obj: .\dbbrowse.cpp
219 $(CXX) -q -c -P -o$@ $(DBBROWSE_CXXFLAGS) $**
221 $(OBJS)\dbbrowse_doc.obj: .\doc.cpp
222 $(CXX) -q -c -P -o$@ $(DBBROWSE_CXXFLAGS) $**
224 $(OBJS)\dbbrowse_pgmctrl.obj: .\pgmctrl.cpp
225 $(CXX) -q -c -P -o$@ $(DBBROWSE_CXXFLAGS) $**
227 $(OBJS)\dbbrowse_tabpgwin.obj: .\tabpgwin.cpp
228 $(CXX) -q -c -P -o$@ $(DBBROWSE_CXXFLAGS) $**
230 $(OBJS)\dbbrowse_browsedb.obj: .\browsedb.cpp
231 $(CXX) -q -c -P -o$@ $(DBBROWSE_CXXFLAGS) $**
233 $(OBJS)\dbbrowse_dbtree.obj: .\dbtree.cpp
234 $(CXX) -q -c -P -o$@ $(DBBROWSE_CXXFLAGS) $**
236 $(OBJS)\dbbrowse_dbgrid.obj: .\dbgrid.cpp
237 $(CXX) -q -c -P -o$@ $(DBBROWSE_CXXFLAGS) $**
239 $(OBJS)\dbbrowse_dlguser.obj: .\dlguser.cpp
240 $(CXX) -q -c -P -o$@ $(DBBROWSE_CXXFLAGS) $**
242 $(OBJS)\dbbrowse_dbbrowse.res: .\dbbrowse.rc
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 $**