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.gcc
9 # -------------------------------------------------------------------------
10 # Do not modify the rest of this file!
11 # -------------------------------------------------------------------------
17 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
19 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
20 DBBROWSE_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG_2) $(GCCFLAGS) \
21 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
22 $(__UNICODE_DEFINE_p) -I.\..\..\include -I$(SETUPHDIR) -Wall -I. \
23 $(__DLLFLAG_p) -I.\..\..\samples -DNOPCH $(__EXCEPTIONSFLAG_4) \
24 $(__EXCEPTIONSFLAG_5) $(CPPFLAGS) $(CXXFLAGS)
26 $(OBJS)\dbbrowse_dbbrowse.o \
27 $(OBJS)\dbbrowse_doc.o \
28 $(OBJS)\dbbrowse_pgmctrl.o \
29 $(OBJS)\dbbrowse_tabpgwin.o \
30 $(OBJS)\dbbrowse_browsedb.o \
31 $(OBJS)\dbbrowse_dbtree.o \
32 $(OBJS)\dbbrowse_dbgrid.o \
33 $(OBJS)\dbbrowse_dlguser.o \
34 $(OBJS)\dbbrowse_dbbrowse_rc.o
36 ### Conditionally set variables: ###
38 ifeq ($(GCC_VERSION),2.95)
39 GCCFLAGS = -fvtable-thunks
48 ifeq ($(DEBUG_FLAG),default)
52 ifeq ($(DEBUG_FLAG),1)
65 __OPTIMIZEFLAG_2 = -O0
67 ifeq ($(BUILD),release)
68 __OPTIMIZEFLAG_2 = -O2
70 ifeq ($(USE_EXCEPTIONS),0)
71 __EXCEPTIONSFLAG_4 = -fno-rtti
73 ifeq ($(USE_EXCEPTIONS),1)
76 ifeq ($(USE_EXCEPTIONS),0)
77 __EXCEPTIONSFLAG_5 = -fno-exceptions
79 ifeq ($(USE_EXCEPTIONS),1)
83 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
86 __WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__
89 ifeq ($(DEBUG_FLAG),default)
90 __DEBUG_DEFINE_p = -D__WXDEBUG__
93 ifeq ($(DEBUG_FLAG),1)
94 __DEBUG_DEFINE_p = -D__WXDEBUG__
97 ifeq ($(DEBUG_FLAG),default)
98 __DEBUG_DEFINE_p_1 = --define __WXDEBUG__
101 ifeq ($(DEBUG_FLAG),1)
102 __DEBUG_DEFINE_p_1 = --define __WXDEBUG__
105 __UNICODE_DEFINE_p = -D_UNICODE
108 __UNICODE_DEFINE_p_1 = --define _UNICODE
111 __DLLFLAG_p = -DWXUSINGDLL
114 __DLLFLAG_p_1 = --define WXUSINGDLL
116 ifeq ($(MONOLITHIC),0)
118 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_dbgrid
120 ifeq ($(MONOLITHIC),0)
122 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_adv
124 ifeq ($(MONOLITHIC),0)
127 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_odbc
130 ifeq ($(MONOLITHIC),0)
132 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_html
134 ifeq ($(MONOLITHIC),0)
136 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
138 ifeq ($(MONOLITHIC),0)
140 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
142 ifeq ($(MONOLITHIC),1)
144 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
147 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)$(WX_RELEASE_NODOT)
150 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)$(WX_RELEASE_NODOT)
153 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)$(WX_RELEASE_NODOT)
156 __UNICOWS_LIB_p = -lunicows
159 LIBDIRNAME = .\..\..\lib\gcc_lib$(CFG)
162 LIBDIRNAME = .\..\..\lib\gcc_dll$(CFG)
164 ifeq ($(BUILD),debug)
165 ifeq ($(DEBUG_INFO),default)
169 ifeq ($(BUILD),release)
170 ifeq ($(DEBUG_INFO),default)
174 ifeq ($(DEBUG_INFO),0)
177 ifeq ($(DEBUG_INFO),1)
184 -if not exist $(OBJS) mkdir $(OBJS)
188 all: $(OBJS)\dbbrowse.exe data_help_std data_help_png
191 -if exist $(OBJS)\*.o del $(OBJS)\*.o
192 -if exist $(OBJS)\dbbrowse.exe del $(OBJS)\dbbrowse.exe
194 $(OBJS)\dbbrowse.exe: $(DBBROWSE_OBJECTS) $(OBJS)\dbbrowse_dbbrowse_rc.o
195 $(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)$(WX_RELEASE_NODOT) -lwxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_RELEASE_NODOT) -lwxexpat$(WXDEBUGFLAG)$(WX_RELEASE_NODOT) $(__UNICOWS_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lodbc32
198 if not exist $(OBJS)\help.std mkdir $(OBJS)\help.std
199 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
202 if not exist $(OBJS)\help.png mkdir $(OBJS)\help.png
203 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
205 $(OBJS)\dbbrowse_dbbrowse.o: ./dbbrowse.cpp
206 $(CXX) -c -o $@ $(DBBROWSE_CXXFLAGS) $<
208 $(OBJS)\dbbrowse_doc.o: ./doc.cpp
209 $(CXX) -c -o $@ $(DBBROWSE_CXXFLAGS) $<
211 $(OBJS)\dbbrowse_pgmctrl.o: ./pgmctrl.cpp
212 $(CXX) -c -o $@ $(DBBROWSE_CXXFLAGS) $<
214 $(OBJS)\dbbrowse_tabpgwin.o: ./tabpgwin.cpp
215 $(CXX) -c -o $@ $(DBBROWSE_CXXFLAGS) $<
217 $(OBJS)\dbbrowse_browsedb.o: ./browsedb.cpp
218 $(CXX) -c -o $@ $(DBBROWSE_CXXFLAGS) $<
220 $(OBJS)\dbbrowse_dbtree.o: ./dbtree.cpp
221 $(CXX) -c -o $@ $(DBBROWSE_CXXFLAGS) $<
223 $(OBJS)\dbbrowse_dbgrid.o: ./dbgrid.cpp
224 $(CXX) -c -o $@ $(DBBROWSE_CXXFLAGS) $<
226 $(OBJS)\dbbrowse_dlguser.o: ./dlguser.cpp
227 $(CXX) -c -o $@ $(DBBROWSE_CXXFLAGS) $<
229 $(OBJS)\dbbrowse_dbbrowse_rc.o: ./dbbrowse.rc
230 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
232 .PHONY: all clean data_help_std data_help_png