1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.1.3 (http://bakefile.sourceforge.net)
4 # Do not modify, all changes will be overwritten!
5 # =========================================================================
7 !include ../../build/msw/config.wat
9 # -------------------------------------------------------------------------
10 # Do not modify the rest of this file!
11 # -------------------------------------------------------------------------
13 # Speed up compilation a bit:
16 ! loaddll wccaxp wccdaxp
17 ! loaddll wcc386 wccd386
19 ! loaddll wppaxp wppdaxp
20 ! loaddll wpp386 wppd386
25 # We need these variables in some bakefile-made rules:
26 WATCOM_CWD = $+ $(%cdrive):$(%cwd) $-
28 ### Conditionally set variables: ###
39 !ifeq DEBUG_FLAG default
60 !ifeq DEBUG_INFO default
65 !ifeq DEBUG_INFO default
77 !ifeq DEBUG_INFO default
78 __DEBUGINFO_1 = debug all
82 !ifeq DEBUG_INFO default
90 __DEBUGINFO_1 = debug all
94 __OPTIMIZEFLAG_2 = -od
97 __OPTIMIZEFLAG_2 = -ot -ox
100 !ifeq RUNTIME_LIBS dynamic
101 __RUNTIME_LIBS_5 = -br
103 !ifeq RUNTIME_LIBS static
107 !ifeq USE_EXCEPTIONS 0
110 !ifeq USE_EXCEPTIONS 1
111 __EXCEPTIONSFLAG_7 = -xs
116 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_dbgrid.lib
121 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_adv.lib
126 __WXLIB_ODBC_p = wxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_odbc.lib
132 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_html.lib
137 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core.lib
141 __WXLIB_BASE_p = wxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
146 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
150 __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
154 __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
158 __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
162 LIBDIRNAME = .\..\..\lib\wat_lib$(CFG)
165 LIBDIRNAME = .\..\..\lib\wat_dll$(CFG)
169 __WXUNIV_DEFINE_p = -d__WXUNIVERSAL__
173 !ifeq DEBUG_FLAG default
174 __DEBUG_DEFINE_p = -d__WXDEBUG__
178 __DEBUG_DEFINE_p = -d__WXDEBUG__
182 __UNICODE_DEFINE_p = -d_UNICODE
186 __DLLFLAG_p = -dWXUSINGDLL
192 wat_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
194 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
195 DBBROWSE_CXXFLAGS = $(__DEBUGINFO_0) $(__OPTIMIZEFLAG_2) -bm &
196 $(__RUNTIME_LIBS_5) -d__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) &
197 $(__UNICODE_DEFINE_p) -i=.\..\..\include -i=$(SETUPHDIR) -i=. $(__DLLFLAG_p) &
198 -i=.\..\..\samples $(__EXCEPTIONSFLAG_7) $(CPPFLAGS) $(CXXFLAGS)
200 $(OBJS)\dbbrowse_dbbrowse.obj &
201 $(OBJS)\dbbrowse_doc.obj &
202 $(OBJS)\dbbrowse_pgmctrl.obj &
203 $(OBJS)\dbbrowse_tabpgwin.obj &
204 $(OBJS)\dbbrowse_browsedb.obj &
205 $(OBJS)\dbbrowse_dbtree.obj &
206 $(OBJS)\dbbrowse_dbgrid.obj &
207 $(OBJS)\dbbrowse_dlguser.obj
212 -if not exist $(OBJS) mkdir $(OBJS)
216 all : .SYMBOLIC $(OBJS)\dbbrowse.exe data_help_std data_help_png
219 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
220 -if exist $(OBJS)\*.res del $(OBJS)\*.res
221 -if exist $(OBJS)\*.lbc del $(OBJS)\*.lbc
222 -if exist $(OBJS)\*.ilk del $(OBJS)\*.ilk
223 -if exist $(OBJS)\dbbrowse.exe del $(OBJS)\dbbrowse.exe
225 $(OBJS)\dbbrowse.exe : $(DBBROWSE_OBJECTS) $(OBJS)\dbbrowse_dbbrowse.res
226 @%create $(OBJS)\dbbrowse.lbc
227 @%append $(OBJS)\dbbrowse.lbc option quiet
228 @%append $(OBJS)\dbbrowse.lbc name $^@
229 @%append $(OBJS)\dbbrowse.lbc option caseexact
230 @%append $(OBJS)\dbbrowse.lbc $(LDFLAGS) $(__DEBUGINFO_1) libpath $(LIBDIRNAME) system nt_win ref '_WinMain@16'
231 @for %i in ($(DBBROWSE_OBJECTS)) do @%append $(OBJS)\dbbrowse.lbc file %i
232 @for %i in ( $(__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 kernel32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib winmm.lib shell32.lib comctl32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib advapi32.lib wsock32.lib odbc32.lib ) do @%append $(OBJS)\dbbrowse.lbc library %i
233 @%append $(OBJS)\dbbrowse.lbc option resource=$(OBJS)\dbbrowse_dbbrowse.res
234 wlink @$(OBJS)\dbbrowse.lbc
236 data_help_std : .SYMBOLIC
237 if not exist $(OBJS)\help.std mkdir $(OBJS)\help.std
238 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
240 data_help_png : .SYMBOLIC
241 if not exist $(OBJS)\help.png mkdir $(OBJS)\help.png
242 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
244 $(OBJS)\dbbrowse_dbbrowse.obj : .AUTODEPEND .\dbbrowse.cpp
245 $(CXX) -zq -fo=$^@ $(DBBROWSE_CXXFLAGS) $<
247 $(OBJS)\dbbrowse_doc.obj : .AUTODEPEND .\doc.cpp
248 $(CXX) -zq -fo=$^@ $(DBBROWSE_CXXFLAGS) $<
250 $(OBJS)\dbbrowse_pgmctrl.obj : .AUTODEPEND .\pgmctrl.cpp
251 $(CXX) -zq -fo=$^@ $(DBBROWSE_CXXFLAGS) $<
253 $(OBJS)\dbbrowse_tabpgwin.obj : .AUTODEPEND .\tabpgwin.cpp
254 $(CXX) -zq -fo=$^@ $(DBBROWSE_CXXFLAGS) $<
256 $(OBJS)\dbbrowse_browsedb.obj : .AUTODEPEND .\browsedb.cpp
257 $(CXX) -zq -fo=$^@ $(DBBROWSE_CXXFLAGS) $<
259 $(OBJS)\dbbrowse_dbtree.obj : .AUTODEPEND .\dbtree.cpp
260 $(CXX) -zq -fo=$^@ $(DBBROWSE_CXXFLAGS) $<
262 $(OBJS)\dbbrowse_dbgrid.obj : .AUTODEPEND .\dbgrid.cpp
263 $(CXX) -zq -fo=$^@ $(DBBROWSE_CXXFLAGS) $<
265 $(OBJS)\dbbrowse_dlguser.obj : .AUTODEPEND .\dlguser.cpp
266 $(CXX) -zq -fo=$^@ $(DBBROWSE_CXXFLAGS) $<
268 $(OBJS)\dbbrowse_dbbrowse.res : .AUTODEPEND .\dbbrowse.rc
269 wrc -q -ad -bt=nt -r -fo=$^@ -d__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) -i=.\..\..\include -i=$(SETUPHDIR) -i=. $(__DLLFLAG_p) -i=.\..\..\samples $<