1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.1.8 (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) $(__THREADSFLAG) \
22 $(GCCFLAGS) -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
23 $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
24 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) -I.\..\..\include -I$(SETUPHDIR) \
25 -W -Wall -I. $(__DLLFLAG_p) -I.\..\..\samples -DNOPCH $(__RTTIFLAG_5) \
26 $(__EXCEPTIONSFLAG_6) -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)
28 $(OBJS)\dbbrowse_dbbrowse.o \
29 $(OBJS)\dbbrowse_doc.o \
30 $(OBJS)\dbbrowse_pgmctrl.o \
31 $(OBJS)\dbbrowse_tabpgwin.o \
32 $(OBJS)\dbbrowse_browsedb.o \
33 $(OBJS)\dbbrowse_dbtree.o \
34 $(OBJS)\dbbrowse_dbgrid.o \
35 $(OBJS)\dbbrowse_dlguser.o \
36 $(OBJS)\dbbrowse_dbbrowse_rc.o
38 ### Conditionally set variables: ###
40 ifeq ($(GCC_VERSION),2.95)
41 GCCFLAGS = -fvtable-thunks
50 ifeq ($(DEBUG_FLAG),default)
54 ifeq ($(DEBUG_FLAG),1)
72 ifeq ($(MONOLITHIC),0)
75 ifeq ($(MONOLITHIC),1)
79 __dbbrowse___depname = $(OBJS)\dbbrowse.exe
82 __OPTIMIZEFLAG_2 = -O0
84 ifeq ($(BUILD),release)
85 __OPTIMIZEFLAG_2 = -O2
88 __RTTIFLAG_5 = -fno-rtti
93 ifeq ($(USE_EXCEPTIONS),0)
94 __EXCEPTIONSFLAG_6 = -fno-exceptions
96 ifeq ($(USE_EXCEPTIONS),1)
100 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
103 __WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__
105 ifeq ($(BUILD),debug)
106 ifeq ($(DEBUG_FLAG),default)
107 __DEBUG_DEFINE_p = -D__WXDEBUG__
110 ifeq ($(DEBUG_FLAG),1)
111 __DEBUG_DEFINE_p = -D__WXDEBUG__
113 ifeq ($(BUILD),debug)
114 ifeq ($(DEBUG_FLAG),default)
115 __DEBUG_DEFINE_p_1 = --define __WXDEBUG__
118 ifeq ($(DEBUG_FLAG),1)
119 __DEBUG_DEFINE_p_1 = --define __WXDEBUG__
121 ifeq ($(USE_EXCEPTIONS),0)
122 __EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
124 ifeq ($(USE_EXCEPTIONS),0)
125 __EXCEPTIONS_DEFINE_p_1 = --define wxNO_EXCEPTIONS
128 __RTTI_DEFINE_p = -DwxNO_RTTI
131 __RTTI_DEFINE_p_1 = --define wxNO_RTTI
133 ifeq ($(USE_THREADS),0)
134 __THREAD_DEFINE_p = -DwxNO_THREADS
136 ifeq ($(USE_THREADS),0)
137 __THREAD_DEFINE_p_1 = --define wxNO_THREADS
140 __UNICODE_DEFINE_p = -D_UNICODE
143 __UNICODE_DEFINE_p_1 = --define _UNICODE
146 __DLLFLAG_p = -DWXUSINGDLL
149 __DLLFLAG_p_1 = --define WXUSINGDLL
151 ifeq ($(MONOLITHIC),0)
153 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_dbgrid
155 ifeq ($(MONOLITHIC),0)
157 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_adv
159 ifeq ($(MONOLITHIC),0)
162 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_odbc
165 ifeq ($(MONOLITHIC),0)
167 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_html
169 ifeq ($(MONOLITHIC),0)
171 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
173 ifeq ($(MONOLITHIC),0)
175 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
177 ifeq ($(MONOLITHIC),1)
179 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
182 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
185 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
188 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
191 __UNICOWS_LIB_p = -lunicows
193 ifeq ($(BUILD),debug)
194 ifeq ($(DEBUG_INFO),default)
198 ifeq ($(BUILD),release)
199 ifeq ($(DEBUG_INFO),default)
203 ifeq ($(DEBUG_INFO),0)
206 ifeq ($(DEBUG_INFO),1)
209 ifeq ($(USE_THREADS),0)
212 ifeq ($(USE_THREADS),1)
213 __THREADSFLAG = -mthreads
219 -if not exist $(OBJS) mkdir $(OBJS)
223 all: $(__dbbrowse___depname) data_help_std data_help_png
226 -if exist $(OBJS)\*.o del $(OBJS)\*.o
227 -if exist $(OBJS)\dbbrowse.exe del $(OBJS)\dbbrowse.exe
230 $(OBJS)\dbbrowse.exe: $(DBBROWSE_OBJECTS) $(OBJS)\dbbrowse_dbbrowse_rc.o
231 $(CXX) -o $@ $(DBBROWSE_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) $(__THREADSFLAG) -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
235 if not exist $(OBJS)\help.std mkdir $(OBJS)\help.std
236 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
239 if not exist $(OBJS)\help.png mkdir $(OBJS)\help.png
240 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
242 $(OBJS)\dbbrowse_dbbrowse.o: ./dbbrowse.cpp
243 $(CXX) -c -o $@ $(DBBROWSE_CXXFLAGS) $<
245 $(OBJS)\dbbrowse_doc.o: ./doc.cpp
246 $(CXX) -c -o $@ $(DBBROWSE_CXXFLAGS) $<
248 $(OBJS)\dbbrowse_pgmctrl.o: ./pgmctrl.cpp
249 $(CXX) -c -o $@ $(DBBROWSE_CXXFLAGS) $<
251 $(OBJS)\dbbrowse_tabpgwin.o: ./tabpgwin.cpp
252 $(CXX) -c -o $@ $(DBBROWSE_CXXFLAGS) $<
254 $(OBJS)\dbbrowse_browsedb.o: ./browsedb.cpp
255 $(CXX) -c -o $@ $(DBBROWSE_CXXFLAGS) $<
257 $(OBJS)\dbbrowse_dbtree.o: ./dbtree.cpp
258 $(CXX) -c -o $@ $(DBBROWSE_CXXFLAGS) $<
260 $(OBJS)\dbbrowse_dbgrid.o: ./dbgrid.cpp
261 $(CXX) -c -o $@ $(DBBROWSE_CXXFLAGS) $<
263 $(OBJS)\dbbrowse_dlguser.o: ./dlguser.cpp
264 $(CXX) -c -o $@ $(DBBROWSE_CXXFLAGS) $<
266 $(OBJS)\dbbrowse_dbbrowse_rc.o: ./dbbrowse.rc
267 windres --use-temp-file -i$< -o$@ --define __WXMSW__ $(__WXUNIV_DEFINE_p_1) $(__DEBUG_DEFINE_p_1) $(__EXCEPTIONS_DEFINE_p_1) $(__RTTI_DEFINE_p_1) $(__THREAD_DEFINE_p_1) $(__UNICODE_DEFINE_p_1) --include-dir ./../../include --include-dir $(SETUPHDIR) --include-dir . $(__DLLFLAG_p_1) --include-dir ./../../samples --define NOPCH
269 .PHONY: all clean data_help_std data_help_png