1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.1.1 (http://bakefile.sourceforge.net)
4 # Do not modify, all changes will be overwritten!
5 # =========================================================================
11 !include ../../build/msw/config.bcc
13 # -------------------------------------------------------------------------
14 # Do not modify the rest of this file!
15 # -------------------------------------------------------------------------
17 !if "$(BCCDIR)" == "\.."
18 !error Your Borland compiler does not define MAKEDIR. Please define the BCCDIR variable, e.g. BCCDIR=d:\bc4
23 DBBROWSE_CXXFLAGS = $(CPPFLAGS) $(__RUNTIME_LIBS_6) -I$(BCCDIR)\include \
24 $(__DEBUGINFO) $(__OPTIMIZEFLAG_2) -tWM -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
25 $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) -I.\..\..\include -I$(SETUPHDIR) \
26 -I. $(__DLLFLAG_p) -I.\..\..\samples $(CXXFLAGS)
28 $(OBJS)\dbbrowse_dbbrowse.obj \
29 $(OBJS)\dbbrowse_doc.obj \
30 $(OBJS)\dbbrowse_pgmctrl.obj \
31 $(OBJS)\dbbrowse_tabpgwin.obj \
32 $(OBJS)\dbbrowse_browsedb.obj \
33 $(OBJS)\dbbrowse_dbtree.obj \
34 $(OBJS)\dbbrowse_dbgrid.obj \
35 $(OBJS)\dbbrowse_dlguser.obj
37 bcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
39 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
41 ### Conditionally set variables: ###
43 !if "$(SHARED)" == "0"
44 LIBDIRNAME = .\..\..\lib\bcc_lib$(CFG)
46 !if "$(SHARED)" == "1"
47 LIBDIRNAME = .\..\..\lib\bcc_dll$(CFG)
49 !if "$(USE_GUI)" == "0"
52 !if "$(USE_GUI)" == "1"
55 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
58 !if "$(DEBUG_FLAG)" == "1"
61 !if "$(SHARED)" == "1"
64 !if "$(UNICODE)" == "1"
67 !if "$(WXUNIV)" == "1"
70 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
73 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
76 !if "$(DEBUG_INFO)" == "0"
79 !if "$(DEBUG_INFO)" == "1"
82 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
83 __DEBUG_DEFINE_p = -D__WXDEBUG__
85 !if "$(DEBUG_FLAG)" == "1"
86 __DEBUG_DEFINE_p = -D__WXDEBUG__
88 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
89 __DEBUG_DEFINE_p_1 = -d__WXDEBUG__
91 !if "$(DEBUG_FLAG)" == "1"
92 __DEBUG_DEFINE_p_1 = -d__WXDEBUG__
94 !if "$(SHARED)" == "1"
95 __DLLFLAG_p = -DWXUSINGDLL
97 !if "$(SHARED)" == "1"
98 __DLLFLAG_p_1 = -dWXUSINGDLL
100 !if "$(USE_GUI)" == "1"
101 __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
103 !if "$(USE_GUI)" == "1"
104 __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
106 !if "$(USE_GUI)" == "1"
107 __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
109 !if "$(BUILD)" == "debug"
110 __OPTIMIZEFLAG_2 = -Od
112 !if "$(BUILD)" == "release"
113 __OPTIMIZEFLAG_2 = -O2
115 !if "$(RUNTIME_LIBS)" == "dynamic"
116 __RUNTIME_LIBS_6 = -tWR
118 !if "$(RUNTIME_LIBS)" == "static"
121 !if "$(RUNTIME_LIBS)" == "dynamic"
124 !if "$(RUNTIME_LIBS)" == "static"
127 !if "$(UNICODE)" == "1"
128 __UNICODE_DEFINE_p = -D_UNICODE
130 !if "$(UNICODE)" == "1"
131 __UNICODE_DEFINE_p_1 = -d_UNICODE
134 __UNICOWS_LIB_p = unicows.lib
136 !if "$(MONOLITHIC)" == "0"
138 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_adv.lib
140 !if "$(MONOLITHIC)" == "0"
141 __WXLIB_BASE_p = wxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
143 !if "$(MONOLITHIC)" == "0"
145 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core.lib
147 !if "$(MONOLITHIC)" == "0"
149 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_dbgrid.lib
151 !if "$(MONOLITHIC)" == "0"
153 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_html.lib
155 !if "$(MONOLITHIC)" == "1"
157 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
159 !if "$(MONOLITHIC)" == "0"
160 __WXLIB_ODBC_p = wxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_odbc.lib
162 !if "$(WXUNIV)" == "1"
163 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
165 !if "$(WXUNIV)" == "1"
166 __WXUNIV_DEFINE_p_1 = -d__WXUNIVERSAL__
172 -if not exist $(OBJS) mkdir $(OBJS)
176 all: $(OBJS)\dbbrowse.exe
178 $(OBJS)\dbbrowse_browsedb.obj: .\browsedb.cpp
179 $(CXX) -q -c -P -o$@ $(DBBROWSE_CXXFLAGS) $**
181 $(OBJS)\dbbrowse_dbbrowse.obj: .\dbbrowse.cpp
182 $(CXX) -q -c -P -o$@ $(DBBROWSE_CXXFLAGS) $**
184 $(OBJS)\dbbrowse_dbbrowse.res: .\dbbrowse.rc
185 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 $**
187 $(OBJS)\dbbrowse_dbgrid.obj: .\dbgrid.cpp
188 $(CXX) -q -c -P -o$@ $(DBBROWSE_CXXFLAGS) $**
190 $(OBJS)\dbbrowse_dbtree.obj: .\dbtree.cpp
191 $(CXX) -q -c -P -o$@ $(DBBROWSE_CXXFLAGS) $**
193 $(OBJS)\dbbrowse_dlguser.obj: .\dlguser.cpp
194 $(CXX) -q -c -P -o$@ $(DBBROWSE_CXXFLAGS) $**
196 $(OBJS)\dbbrowse_doc.obj: .\doc.cpp
197 $(CXX) -q -c -P -o$@ $(DBBROWSE_CXXFLAGS) $**
199 $(OBJS)\dbbrowse_pgmctrl.obj: .\pgmctrl.cpp
200 $(CXX) -q -c -P -o$@ $(DBBROWSE_CXXFLAGS) $**
202 $(OBJS)\dbbrowse_tabpgwin.obj: .\tabpgwin.cpp
203 $(CXX) -q -c -P -o$@ $(DBBROWSE_CXXFLAGS) $**
206 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
207 -if exist $(OBJS)\*.res del $(OBJS)\*.res
208 -if exist $(OBJS)\dbbrowse.exe del $(OBJS)\dbbrowse.exe
209 -if exist $(OBJS)\dbbrowse.tds del $(OBJS)\dbbrowse.tds
210 -if exist $(OBJS)\dbbrowse.ilc del $(OBJS)\dbbrowse.ilc
211 -if exist $(OBJS)\dbbrowse.ild del $(OBJS)\dbbrowse.ild
212 -if exist $(OBJS)\dbbrowse.ilf del $(OBJS)\dbbrowse.ilf
213 -if exist $(OBJS)\dbbrowse.ils del $(OBJS)\dbbrowse.ils
215 $(OBJS)\dbbrowse.exe: $(DBBROWSE_OBJECTS) $(OBJS)\dbbrowse_dbbrowse.res
216 ilink32 -Tpe -q $(LDFLAGS) -L$(BCCDIR)\lib $(__DEBUGINFO) -L$(LIBDIRNAME) -aa @&&|
217 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$(WXDEBUGFLAG).lib wxexpat$(WXDEBUGFLAG).lib $(__UNICOWS_LIB_p) ole2w32.lib oleacc.lib import32.lib cw32mt$(__RUNTIME_LIBS_7).lib,, $(OBJS)\dbbrowse_dbbrowse.res