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.gcc
9 # -------------------------------------------------------------------------
10 # Do not modify the rest of this file!
11 # -------------------------------------------------------------------------
16 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
18 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
19 DBBROWSE_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG_2) $(GCCFLAGS) \
20 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
21 $(__UNICODE_DEFINE_p) -I.\..\..\include -I$(SETUPHDIR) -Wall -I. \
22 $(__DLLFLAG_p) -I.\..\..\samples $(__EXCEPTIONSFLAG_4) \
23 $(__EXCEPTIONSFLAG_5) $(CPPFLAGS) $(CXXFLAGS)
25 $(OBJS)\dbbrowse_dbbrowse.o \
26 $(OBJS)\dbbrowse_doc.o \
27 $(OBJS)\dbbrowse_pgmctrl.o \
28 $(OBJS)\dbbrowse_tabpgwin.o \
29 $(OBJS)\dbbrowse_browsedb.o \
30 $(OBJS)\dbbrowse_dbtree.o \
31 $(OBJS)\dbbrowse_dbgrid.o \
32 $(OBJS)\dbbrowse_dlguser.o \
33 $(OBJS)\dbbrowse_dbbrowse_rc.o
35 ### Conditionally set variables: ###
37 ifeq ($(GCC_VERSION),2.95)
38 GCCFLAGS = -fvtable-thunks
47 ifeq ($(DEBUG_FLAG),default)
51 ifeq ($(DEBUG_FLAG),1)
64 __OPTIMIZEFLAG_2 = -O0
66 ifeq ($(BUILD),release)
67 __OPTIMIZEFLAG_2 = -O2
69 ifeq ($(USE_EXCEPTIONS),0)
70 __EXCEPTIONSFLAG_4 = -fno-rtti
72 ifeq ($(USE_EXCEPTIONS),1)
75 ifeq ($(USE_EXCEPTIONS),0)
76 __EXCEPTIONSFLAG_5 = -fno-exceptions
78 ifeq ($(USE_EXCEPTIONS),1)
82 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
85 __WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__
88 ifeq ($(DEBUG_FLAG),default)
89 __DEBUG_DEFINE_p = -D__WXDEBUG__
92 ifeq ($(DEBUG_FLAG),1)
93 __DEBUG_DEFINE_p = -D__WXDEBUG__
96 ifeq ($(DEBUG_FLAG),default)
97 __DEBUG_DEFINE_p_1 = --define __WXDEBUG__
100 ifeq ($(DEBUG_FLAG),1)
101 __DEBUG_DEFINE_p_1 = --define __WXDEBUG__
104 __UNICODE_DEFINE_p = -D_UNICODE
107 __UNICODE_DEFINE_p_1 = --define _UNICODE
110 __DLLFLAG_p = -DWXUSINGDLL
113 __DLLFLAG_p_1 = --define WXUSINGDLL
115 ifeq ($(MONOLITHIC),0)
117 -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_dbgrid
119 ifeq ($(MONOLITHIC),0)
121 -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_adv
123 ifeq ($(MONOLITHIC),0)
125 __WXLIB_ODBC_p = -lwxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_odbc
128 ifeq ($(MONOLITHIC),0)
130 -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_html
132 ifeq ($(MONOLITHIC),0)
134 -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core
136 ifeq ($(MONOLITHIC),0)
137 __WXLIB_BASE_p = -lwxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG)
139 ifeq ($(MONOLITHIC),1)
141 -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)
144 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
147 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
150 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
153 __UNICOWS_LIB_p = -lunicows
156 LIBDIRNAME = .\..\..\lib\gcc_lib$(CFG)
159 LIBDIRNAME = .\..\..\lib\gcc_dll$(CFG)
161 ifeq ($(BUILD),debug)
162 ifeq ($(DEBUG_INFO),default)
166 ifeq ($(BUILD),release)
167 ifeq ($(DEBUG_INFO),default)
171 ifeq ($(DEBUG_INFO),0)
174 ifeq ($(DEBUG_INFO),1)
181 -if not exist $(OBJS) mkdir $(OBJS)
185 all: $(OBJS)\dbbrowse.exe data_help_std data_help_png
188 -if exist $(OBJS)\*.o del $(OBJS)\*.o
189 -if exist $(OBJS)\dbbrowse.exe del $(OBJS)\dbbrowse.exe
191 $(OBJS)\dbbrowse.exe: $(DBBROWSE_OBJECTS) $(OBJS)\dbbrowse_dbbrowse_rc.o
192 $(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) $(__UNICOWS_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lodbc32
195 if not exist $(OBJS)\help.std mkdir $(OBJS)\help.std
196 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
199 if not exist $(OBJS)\help.png mkdir $(OBJS)\help.png
200 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
202 $(OBJS)\dbbrowse_dbbrowse.o: ./dbbrowse.cpp
203 $(CXX) -c -o $@ $(DBBROWSE_CXXFLAGS) $<
205 $(OBJS)\dbbrowse_doc.o: ./doc.cpp
206 $(CXX) -c -o $@ $(DBBROWSE_CXXFLAGS) $<
208 $(OBJS)\dbbrowse_pgmctrl.o: ./pgmctrl.cpp
209 $(CXX) -c -o $@ $(DBBROWSE_CXXFLAGS) $<
211 $(OBJS)\dbbrowse_tabpgwin.o: ./tabpgwin.cpp
212 $(CXX) -c -o $@ $(DBBROWSE_CXXFLAGS) $<
214 $(OBJS)\dbbrowse_browsedb.o: ./browsedb.cpp
215 $(CXX) -c -o $@ $(DBBROWSE_CXXFLAGS) $<
217 $(OBJS)\dbbrowse_dbtree.o: ./dbtree.cpp
218 $(CXX) -c -o $@ $(DBBROWSE_CXXFLAGS) $<
220 $(OBJS)\dbbrowse_dbgrid.o: ./dbgrid.cpp
221 $(CXX) -c -o $@ $(DBBROWSE_CXXFLAGS) $<
223 $(OBJS)\dbbrowse_dlguser.o: ./dlguser.cpp
224 $(CXX) -c -o $@ $(DBBROWSE_CXXFLAGS) $<
226 $(OBJS)\dbbrowse_dbbrowse_rc.o: ./dbbrowse.rc
227 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
229 .PHONY: all clean data_help_std data_help_png