1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.2.1 (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 # -------------------------------------------------------------------------
15 CPPDEPS = -MT$@ -MF$@.d -MD
18 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
19 LIBDIRNAME = .\..\..\lib\gcc_$(LIBTYPE_SUFFIX)$(CFG)
21 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
22 DBBROWSE_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG_2) $(__THREADSFLAG) \
23 $(GCCFLAGS) -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
24 $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
25 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \
26 $(__GFXCTX_DEFINE_p) -I$(SETUPHDIR) -I.\..\..\include -W -Wall -I. \
27 $(__DLLFLAG_p) -I.\..\..\samples -DNOPCH $(__RTTIFLAG_5) \
28 $(__EXCEPTIONSFLAG_6) -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)
30 $(OBJS)\dbbrowse_dbbrowse.o \
31 $(OBJS)\dbbrowse_doc.o \
32 $(OBJS)\dbbrowse_pgmctrl.o \
33 $(OBJS)\dbbrowse_tabpgwin.o \
34 $(OBJS)\dbbrowse_browsedb.o \
35 $(OBJS)\dbbrowse_dbtree.o \
36 $(OBJS)\dbbrowse_dbgrid.o \
37 $(OBJS)\dbbrowse_dlguser.o \
38 $(OBJS)\dbbrowse_dbbrowse_rc.o
40 ### Conditionally set variables: ###
42 ifeq ($(GCC_VERSION),2.95)
43 GCCFLAGS = -fvtable-thunks
52 ifeq ($(DEBUG_FLAG),default)
56 ifeq ($(DEBUG_FLAG),1)
74 ifeq ($(MONOLITHIC),0)
77 ifeq ($(MONOLITHIC),1)
81 __dbbrowse___depname = $(OBJS)\dbbrowse.exe
84 __OPTIMIZEFLAG_2 = -O0
86 ifeq ($(BUILD),release)
87 __OPTIMIZEFLAG_2 = -O2
90 __RTTIFLAG_5 = -fno-rtti
95 ifeq ($(USE_EXCEPTIONS),0)
96 __EXCEPTIONSFLAG_6 = -fno-exceptions
98 ifeq ($(USE_EXCEPTIONS),1)
102 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
105 __WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__
107 ifeq ($(BUILD),debug)
108 ifeq ($(DEBUG_FLAG),default)
109 __DEBUG_DEFINE_p = -D__WXDEBUG__
112 ifeq ($(DEBUG_FLAG),1)
113 __DEBUG_DEFINE_p = -D__WXDEBUG__
115 ifeq ($(BUILD),debug)
116 ifeq ($(DEBUG_FLAG),default)
117 __DEBUG_DEFINE_p_1 = --define __WXDEBUG__
120 ifeq ($(DEBUG_FLAG),1)
121 __DEBUG_DEFINE_p_1 = --define __WXDEBUG__
123 ifeq ($(USE_EXCEPTIONS),0)
124 __EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
126 ifeq ($(USE_EXCEPTIONS),0)
127 __EXCEPTIONS_DEFINE_p_1 = --define wxNO_EXCEPTIONS
130 __RTTI_DEFINE_p = -DwxNO_RTTI
133 __RTTI_DEFINE_p_1 = --define wxNO_RTTI
135 ifeq ($(USE_THREADS),0)
136 __THREAD_DEFINE_p = -DwxNO_THREADS
138 ifeq ($(USE_THREADS),0)
139 __THREAD_DEFINE_p_1 = --define wxNO_THREADS
142 __UNICODE_DEFINE_p = -D_UNICODE
145 __UNICODE_DEFINE_p_1 = --define _UNICODE
148 __MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
151 __MSLU_DEFINE_p_1 = --define wxUSE_UNICODE_MSLU=1
153 ifeq ($(USE_GDIPLUS),1)
154 __GFXCTX_DEFINE_p = -DwxUSE_GRAPHICS_CONTEXT=1
156 ifeq ($(USE_GDIPLUS),1)
157 __GFXCTX_DEFINE_p_1 = --define wxUSE_GRAPHICS_CONTEXT=1
160 __DLLFLAG_p = -DWXUSINGDLL
163 __DLLFLAG_p_1 = --define WXUSINGDLL
165 ifeq ($(MONOLITHIC),0)
167 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_dbgrid
169 ifeq ($(MONOLITHIC),0)
171 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_adv
173 ifeq ($(MONOLITHIC),0)
176 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_odbc
179 ifeq ($(MONOLITHIC),0)
181 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_html
183 ifeq ($(MONOLITHIC),0)
185 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_xml
187 ifeq ($(MONOLITHIC),0)
189 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
191 ifeq ($(MONOLITHIC),0)
193 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
195 ifeq ($(MONOLITHIC),1)
197 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
200 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
203 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
206 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
209 __UNICOWS_LIB_p = -lunicows
211 ifeq ($(USE_GDIPLUS),1)
212 __GDIPLUS_LIB_p = -lgdiplus
214 ifeq ($(BUILD),debug)
215 ifeq ($(DEBUG_INFO),default)
219 ifeq ($(BUILD),release)
220 ifeq ($(DEBUG_INFO),default)
224 ifeq ($(DEBUG_INFO),0)
227 ifeq ($(DEBUG_INFO),1)
230 ifeq ($(USE_THREADS),0)
233 ifeq ($(USE_THREADS),1)
234 __THREADSFLAG = -mthreads
240 -if not exist $(OBJS) mkdir $(OBJS)
244 all: $(__dbbrowse___depname) data_help_std data_help_png
247 -if exist $(OBJS)\*.o del $(OBJS)\*.o
248 -if exist $(OBJS)\*.d del $(OBJS)\*.d
249 -if exist $(OBJS)\dbbrowse.exe del $(OBJS)\dbbrowse.exe
252 $(OBJS)\dbbrowse.exe: $(DBBROWSE_OBJECTS) $(OBJS)\dbbrowse_dbbrowse_rc.o
253 $(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_XML_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) $(__GDIPLUS_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lodbc32
257 if not exist $(OBJS)\help.std mkdir $(OBJS)\help.std
258 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
261 if not exist $(OBJS)\help.png mkdir $(OBJS)\help.png
262 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
264 $(OBJS)\dbbrowse_dbbrowse.o: ./dbbrowse.cpp
265 $(CXX) -c -o $@ $(DBBROWSE_CXXFLAGS) $(CPPDEPS) $<
267 $(OBJS)\dbbrowse_doc.o: ./doc.cpp
268 $(CXX) -c -o $@ $(DBBROWSE_CXXFLAGS) $(CPPDEPS) $<
270 $(OBJS)\dbbrowse_pgmctrl.o: ./pgmctrl.cpp
271 $(CXX) -c -o $@ $(DBBROWSE_CXXFLAGS) $(CPPDEPS) $<
273 $(OBJS)\dbbrowse_tabpgwin.o: ./tabpgwin.cpp
274 $(CXX) -c -o $@ $(DBBROWSE_CXXFLAGS) $(CPPDEPS) $<
276 $(OBJS)\dbbrowse_browsedb.o: ./browsedb.cpp
277 $(CXX) -c -o $@ $(DBBROWSE_CXXFLAGS) $(CPPDEPS) $<
279 $(OBJS)\dbbrowse_dbtree.o: ./dbtree.cpp
280 $(CXX) -c -o $@ $(DBBROWSE_CXXFLAGS) $(CPPDEPS) $<
282 $(OBJS)\dbbrowse_dbgrid.o: ./dbgrid.cpp
283 $(CXX) -c -o $@ $(DBBROWSE_CXXFLAGS) $(CPPDEPS) $<
285 $(OBJS)\dbbrowse_dlguser.o: ./dlguser.cpp
286 $(CXX) -c -o $@ $(DBBROWSE_CXXFLAGS) $(CPPDEPS) $<
288 $(OBJS)\dbbrowse_dbbrowse_rc.o: ./dbbrowse.rc
289 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) $(__MSLU_DEFINE_p_1) $(__GFXCTX_DEFINE_p_1) --include-dir $(SETUPHDIR) --include-dir ./../../include --include-dir . $(__DLLFLAG_p_1) --include-dir ./../../samples --define NOPCH
291 .PHONY: all clean data_help_std data_help_png
294 # Dependencies tracking: