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 # =========================================================================
7 include ../../build/msw/config.gcc
9 # -------------------------------------------------------------------------
10 # Do not modify the rest of this file!
11 # -------------------------------------------------------------------------
17 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
18 LIBDIRNAME = .\..\..\lib\gcc_$(LIBTYPE_SUFFIX)$(CFG)
20 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
21 DBBROWSE_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG_2) $(GCCFLAGS) \
22 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
23 $(__UNICODE_DEFINE_p) -I.\..\..\include -I$(SETUPHDIR) -W -Wall -I. \
24 $(__DLLFLAG_p) -I.\..\..\samples -DNOPCH $(__EXCEPTIONSFLAG_4) \
25 $(__EXCEPTIONSFLAG_5) -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)
27 $(OBJS)\dbbrowse_dbbrowse.o \
28 $(OBJS)\dbbrowse_doc.o \
29 $(OBJS)\dbbrowse_pgmctrl.o \
30 $(OBJS)\dbbrowse_tabpgwin.o \
31 $(OBJS)\dbbrowse_browsedb.o \
32 $(OBJS)\dbbrowse_dbtree.o \
33 $(OBJS)\dbbrowse_dbgrid.o \
34 $(OBJS)\dbbrowse_dlguser.o \
35 $(OBJS)\dbbrowse_dbbrowse_rc.o
37 ### Conditionally set variables: ###
39 ifeq ($(GCC_VERSION),2.95)
40 GCCFLAGS = -fvtable-thunks
49 ifeq ($(DEBUG_FLAG),default)
53 ifeq ($(DEBUG_FLAG),1)
71 ifeq ($(MONOLITHIC),0)
74 ifeq ($(MONOLITHIC),1)
78 __dbbrowse___depname = $(OBJS)\dbbrowse.exe
81 __OPTIMIZEFLAG_2 = -O0
83 ifeq ($(BUILD),release)
84 __OPTIMIZEFLAG_2 = -O2
86 ifeq ($(USE_EXCEPTIONS),0)
87 __EXCEPTIONSFLAG_4 = -fno-rtti
89 ifeq ($(USE_EXCEPTIONS),1)
92 ifeq ($(USE_EXCEPTIONS),0)
93 __EXCEPTIONSFLAG_5 = -fno-exceptions
95 ifeq ($(USE_EXCEPTIONS),1)
99 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
102 __WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__
104 ifeq ($(BUILD),debug)
105 ifeq ($(DEBUG_FLAG),default)
106 __DEBUG_DEFINE_p = -D__WXDEBUG__
109 ifeq ($(DEBUG_FLAG),1)
110 __DEBUG_DEFINE_p = -D__WXDEBUG__
112 ifeq ($(BUILD),debug)
113 ifeq ($(DEBUG_FLAG),default)
114 __DEBUG_DEFINE_p_1 = --define __WXDEBUG__
117 ifeq ($(DEBUG_FLAG),1)
118 __DEBUG_DEFINE_p_1 = --define __WXDEBUG__
121 __UNICODE_DEFINE_p = -D_UNICODE
124 __UNICODE_DEFINE_p_1 = --define _UNICODE
127 __DLLFLAG_p = -DWXUSINGDLL
130 __DLLFLAG_p_1 = --define WXUSINGDLL
132 ifeq ($(MONOLITHIC),0)
134 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_dbgrid
136 ifeq ($(MONOLITHIC),0)
138 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_adv
140 ifeq ($(MONOLITHIC),0)
143 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_odbc
146 ifeq ($(MONOLITHIC),0)
148 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_html
150 ifeq ($(MONOLITHIC),0)
152 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
154 ifeq ($(MONOLITHIC),0)
156 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
158 ifeq ($(MONOLITHIC),1)
160 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
163 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
166 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
169 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
172 __UNICOWS_LIB_p = -lunicows
174 ifeq ($(BUILD),debug)
175 ifeq ($(DEBUG_INFO),default)
179 ifeq ($(BUILD),release)
180 ifeq ($(DEBUG_INFO),default)
184 ifeq ($(DEBUG_INFO),0)
187 ifeq ($(DEBUG_INFO),1)
194 -if not exist $(OBJS) mkdir $(OBJS)
198 all: $(__dbbrowse___depname) data_help_std data_help_png
201 -if exist $(OBJS)\*.o del $(OBJS)\*.o
202 -if exist $(OBJS)\dbbrowse.exe del $(OBJS)\dbbrowse.exe
205 $(OBJS)\dbbrowse.exe: $(DBBROWSE_OBJECTS) $(OBJS)\dbbrowse_dbbrowse_rc.o
206 $(CXX) -o $@ $(DBBROWSE_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) -mthreads -L$(LIBDIRNAME) -Wl,--subsystem,windows -mwindows $(__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) -lwxzlib$(WXDEBUGFLAG) -lwxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG) -lwxexpat$(WXDEBUGFLAG) $(EXTRALIBS_FOR_BASE) $(__UNICOWS_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lodbc32
210 if not exist $(OBJS)\help.std mkdir $(OBJS)\help.std
211 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
214 if not exist $(OBJS)\help.png mkdir $(OBJS)\help.png
215 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
217 $(OBJS)\dbbrowse_dbbrowse.o: ./dbbrowse.cpp
218 $(CXX) -c -o $@ $(DBBROWSE_CXXFLAGS) $<
220 $(OBJS)\dbbrowse_doc.o: ./doc.cpp
221 $(CXX) -c -o $@ $(DBBROWSE_CXXFLAGS) $<
223 $(OBJS)\dbbrowse_pgmctrl.o: ./pgmctrl.cpp
224 $(CXX) -c -o $@ $(DBBROWSE_CXXFLAGS) $<
226 $(OBJS)\dbbrowse_tabpgwin.o: ./tabpgwin.cpp
227 $(CXX) -c -o $@ $(DBBROWSE_CXXFLAGS) $<
229 $(OBJS)\dbbrowse_browsedb.o: ./browsedb.cpp
230 $(CXX) -c -o $@ $(DBBROWSE_CXXFLAGS) $<
232 $(OBJS)\dbbrowse_dbtree.o: ./dbtree.cpp
233 $(CXX) -c -o $@ $(DBBROWSE_CXXFLAGS) $<
235 $(OBJS)\dbbrowse_dbgrid.o: ./dbgrid.cpp
236 $(CXX) -c -o $@ $(DBBROWSE_CXXFLAGS) $<
238 $(OBJS)\dbbrowse_dlguser.o: ./dlguser.cpp
239 $(CXX) -c -o $@ $(DBBROWSE_CXXFLAGS) $<
241 $(OBJS)\dbbrowse_dbbrowse_rc.o: ./dbbrowse.rc
242 windres --use-temp-file -i$< -o$@ --define __WXMSW__ $(__WXUNIV_DEFINE_p_1) $(__DEBUG_DEFINE_p_1) $(__UNICODE_DEFINE_p_1) --include-dir ./../../include --include-dir $(SETUPHDIR) --include-dir . $(__DLLFLAG_p_1) --include-dir ./../../samples --define NOPCH
244 .PHONY: all clean data_help_std data_help_png