1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.1.4 (http://bakefile.sourceforge.net)
4 # Do not modify, all changes will be overwritten!
5 # =========================================================================
7 !include <../../build/msw/config.vc>
9 # -------------------------------------------------------------------------
10 # Do not modify the rest of this file!
11 # -------------------------------------------------------------------------
16 vc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
18 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
19 DBBROWSE_CXXFLAGS = /M$(__RUNTIME_LIBS_7)$(__DEBUGRUNTIME_3) /DWIN32 \
20 $(__DEBUGINFO_0) /Fd$(OBJS)\dbbrowse.pdb $(____DEBUGRUNTIME_2_p) \
21 $(__OPTIMIZEFLAG_4) $(__NO_VC_CRTDBG_p) /D__WXMSW__ $(__WXUNIV_DEFINE_p) \
22 $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) /I.\..\..\include /I$(SETUPHDIR) \
23 /W4 /I. $(__DLLFLAG_p) /D_WINDOWS /I.\..\..\samples $(__EXCEPTIONSFLAG_8) \
24 $(__EXCEPTIONSFLAG_9) $(CPPFLAGS) $(CXXFLAGS)
26 $(OBJS)\dbbrowse_dbbrowse.obj \
27 $(OBJS)\dbbrowse_doc.obj \
28 $(OBJS)\dbbrowse_pgmctrl.obj \
29 $(OBJS)\dbbrowse_tabpgwin.obj \
30 $(OBJS)\dbbrowse_browsedb.obj \
31 $(OBJS)\dbbrowse_dbtree.obj \
32 $(OBJS)\dbbrowse_dbgrid.obj \
33 $(OBJS)\dbbrowse_dlguser.obj \
34 $(OBJS)\dbbrowse_dbbrowse.res
36 ### Conditionally set variables: ###
38 !if "$(USE_GUI)" == "0"
41 !if "$(USE_GUI)" == "1"
44 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
47 !if "$(DEBUG_FLAG)" == "1"
50 !if "$(UNICODE)" == "1"
53 !if "$(WXUNIV)" == "1"
56 !if "$(SHARED)" == "1"
59 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
62 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
65 !if "$(DEBUG_INFO)" == "0"
68 !if "$(DEBUG_INFO)" == "1"
71 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
72 __DEBUGINFO_1 = /DEBUG
74 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
77 !if "$(DEBUG_INFO)" == "0"
80 !if "$(DEBUG_INFO)" == "1"
81 __DEBUGINFO_1 = /DEBUG
83 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
84 ____DEBUGRUNTIME_2_p =
86 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
87 ____DEBUGRUNTIME_2_p = /D_DEBUG
89 !if "$(DEBUG_RUNTIME_LIBS)" == "default"
90 ____DEBUGRUNTIME_2_p = $(____DEBUGINFO_2_p)
92 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
93 ____DEBUGINFO_2_p = /D_DEBUG
95 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
98 !if "$(DEBUG_INFO)" == "0"
101 !if "$(DEBUG_INFO)" == "1"
102 ____DEBUGINFO_2_p = /D_DEBUG
104 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
105 ____DEBUGRUNTIME_2_p_1 =
107 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
108 ____DEBUGRUNTIME_2_p_1 = /d _DEBUG
110 !if "$(DEBUG_RUNTIME_LIBS)" == "default"
111 ____DEBUGRUNTIME_2_p_1 = $(____DEBUGINFO_2_p_1)
113 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
114 ____DEBUGINFO_2_p_1 = /d _DEBUG
116 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
117 ____DEBUGINFO_2_p_1 =
119 !if "$(DEBUG_INFO)" == "0"
120 ____DEBUGINFO_2_p_1 =
122 !if "$(DEBUG_INFO)" == "1"
123 ____DEBUGINFO_2_p_1 = /d _DEBUG
125 !if "$(DEBUG_RUNTIME_LIBS)" == "0"
128 !if "$(DEBUG_RUNTIME_LIBS)" == "1"
131 !if "$(DEBUG_RUNTIME_LIBS)" == "default"
132 __DEBUGRUNTIME_3 = $(__DEBUGINFO_3)
134 !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default"
137 !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default"
140 !if "$(DEBUG_INFO)" == "0"
143 !if "$(DEBUG_INFO)" == "1"
146 !if "$(BUILD)" == "debug"
147 __OPTIMIZEFLAG_4 = /Od
149 !if "$(BUILD)" == "release"
150 __OPTIMIZEFLAG_4 = /O2
152 !if "$(RUNTIME_LIBS)" == "dynamic"
155 !if "$(RUNTIME_LIBS)" == "static"
158 !if "$(USE_EXCEPTIONS)" == "0"
161 !if "$(USE_EXCEPTIONS)" == "1"
162 __EXCEPTIONSFLAG_8 = /GR
164 !if "$(USE_EXCEPTIONS)" == "0"
167 !if "$(USE_EXCEPTIONS)" == "1"
168 __EXCEPTIONSFLAG_9 = /GX
170 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0"
171 __NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
173 !if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1"
174 __NO_VC_CRTDBG_p = /D__NO_VC_CRTDBG__
176 !if "$(BUILD)" == "debug" && "$(DEBUG_RUNTIME_LIBS)" == "0"
177 __NO_VC_CRTDBG_p_1 = /d __NO_VC_CRTDBG__
179 !if "$(BUILD)" == "release" && "$(DEBUG_FLAG)" == "1"
180 __NO_VC_CRTDBG_p_1 = /d __NO_VC_CRTDBG__
182 !if "$(WXUNIV)" == "1"
183 __WXUNIV_DEFINE_p = /D__WXUNIVERSAL__
185 !if "$(WXUNIV)" == "1"
186 __WXUNIV_DEFINE_p_1 = /d __WXUNIVERSAL__
188 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
189 __DEBUG_DEFINE_p = /D__WXDEBUG__
191 !if "$(DEBUG_FLAG)" == "1"
192 __DEBUG_DEFINE_p = /D__WXDEBUG__
194 !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default"
195 __DEBUG_DEFINE_p_1 = /d __WXDEBUG__
197 !if "$(DEBUG_FLAG)" == "1"
198 __DEBUG_DEFINE_p_1 = /d __WXDEBUG__
200 !if "$(UNICODE)" == "1"
201 __UNICODE_DEFINE_p = /D_UNICODE
203 !if "$(UNICODE)" == "1"
204 __UNICODE_DEFINE_p_1 = /d _UNICODE
206 !if "$(SHARED)" == "1"
207 __DLLFLAG_p = /DWXUSINGDLL
209 !if "$(SHARED)" == "1"
210 __DLLFLAG_p_1 = /d WXUSINGDLL
212 !if "$(MONOLITHIC)" == "0"
214 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_dbgrid.lib
216 !if "$(MONOLITHIC)" == "0"
218 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_adv.lib
220 !if "$(MONOLITHIC)" == "0" && "$(USE_ODBC)" == "1"
221 __WXLIB_ODBC_p = wxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_odbc.lib
223 !if "$(MONOLITHIC)" == "0"
225 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_html.lib
227 !if "$(MONOLITHIC)" == "0"
229 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core.lib
231 !if "$(MONOLITHIC)" == "0"
232 __WXLIB_BASE_p = wxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
234 !if "$(MONOLITHIC)" == "1"
236 wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib
238 !if "$(USE_GUI)" == "1"
239 __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib
241 !if "$(USE_GUI)" == "1"
242 __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib
244 !if "$(USE_GUI)" == "1"
245 __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib
248 __UNICOWS_LIB_p = unicows.lib
250 !if "$(SHARED)" == "0"
251 LIBDIRNAME = .\..\..\lib\vc_lib$(CFG)
253 !if "$(SHARED)" == "1"
254 LIBDIRNAME = .\..\..\lib\vc_dll$(CFG)
260 -if not exist $(OBJS) mkdir $(OBJS)
264 all: $(OBJS)\dbbrowse.exe data_help_std data_help_png
267 -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
268 -if exist $(OBJS)\*.res del $(OBJS)\*.res
269 -if exist $(OBJS)\dbbrowse.exe del $(OBJS)\dbbrowse.exe
270 -if exist $(OBJS)\dbbrowse.ilk del $(OBJS)\dbbrowse.ilk
271 -if exist $(OBJS)\dbbrowse.pdb del $(OBJS)\dbbrowse.pdb
273 $(OBJS)\dbbrowse.exe: $(DBBROWSE_OBJECTS) $(OBJS)\dbbrowse_dbbrowse.res
274 link /NOLOGO /OUT:$@ $(LDFLAGS) $(__DEBUGINFO_1) /LIBPATH:$(LIBDIRNAME) /SUBSYSTEM:WINDOWS @<<
275 $(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) 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 oleacc.lib odbc32.lib
279 if not exist $(OBJS)\help.std mkdir $(OBJS)\help.std
280 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
283 if not exist $(OBJS)\help.png mkdir $(OBJS)\help.png
284 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
286 $(OBJS)\dbbrowse_dbbrowse.obj: .\dbbrowse.cpp
287 $(CXX) /c /nologo /TP /Fo$@ $(DBBROWSE_CXXFLAGS) $**
289 $(OBJS)\dbbrowse_doc.obj: .\doc.cpp
290 $(CXX) /c /nologo /TP /Fo$@ $(DBBROWSE_CXXFLAGS) $**
292 $(OBJS)\dbbrowse_pgmctrl.obj: .\pgmctrl.cpp
293 $(CXX) /c /nologo /TP /Fo$@ $(DBBROWSE_CXXFLAGS) $**
295 $(OBJS)\dbbrowse_tabpgwin.obj: .\tabpgwin.cpp
296 $(CXX) /c /nologo /TP /Fo$@ $(DBBROWSE_CXXFLAGS) $**
298 $(OBJS)\dbbrowse_browsedb.obj: .\browsedb.cpp
299 $(CXX) /c /nologo /TP /Fo$@ $(DBBROWSE_CXXFLAGS) $**
301 $(OBJS)\dbbrowse_dbtree.obj: .\dbtree.cpp
302 $(CXX) /c /nologo /TP /Fo$@ $(DBBROWSE_CXXFLAGS) $**
304 $(OBJS)\dbbrowse_dbgrid.obj: .\dbgrid.cpp
305 $(CXX) /c /nologo /TP /Fo$@ $(DBBROWSE_CXXFLAGS) $**
307 $(OBJS)\dbbrowse_dlguser.obj: .\dlguser.cpp
308 $(CXX) /c /nologo /TP /Fo$@ $(DBBROWSE_CXXFLAGS) $**
310 $(OBJS)\dbbrowse_dbbrowse.res: .\dbbrowse.rc
311 rc /fo$@ /d WIN32 $(____DEBUGRUNTIME_2_p_1) $(__NO_VC_CRTDBG_p_1) /d __WXMSW__ $(__WXUNIV_DEFINE_p_1) $(__DEBUG_DEFINE_p_1) $(__UNICODE_DEFINE_p_1) /i .\..\..\include /i $(SETUPHDIR) /i . $(__DLLFLAG_p_1) /d _WINDOWS /i .\..\..\samples $**