]> git.saurik.com Git - wxWidgets.git/blame - demos/dbbrowse/makefile.gcc
File/font/colour/dir picker fixes for GTK Universal
[wxWidgets.git] / demos / dbbrowse / makefile.gcc
CommitLineData
264af224
VS
1# =========================================================================
2# This makefile was generated by
cf9b63b3 3# Bakefile 0.2.0 (http://bakefile.sourceforge.net)
264af224
VS
4# Do not modify, all changes will be overwritten!
5# =========================================================================
6
fd9f42b6 7include ../../build/msw/config.gcc
264af224
VS
8
9# -------------------------------------------------------------------------
10# Do not modify the rest of this file!
11# -------------------------------------------------------------------------
12
13### Variables: ###
14
0d90d6ea 15CPPDEPS = -MT$@ -MF$@.d -MD
4cbcfb73 16WX_RELEASE_NODOT = 27
b17c1746
DE
17OBJS = \
18 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
d3d0b8db 19LIBDIRNAME = .\..\..\lib\gcc_$(LIBTYPE_SUFFIX)$(CFG)
b17c1746
DE
20SETUPHDIR = \
21 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
8c9f8f91
JS
22DBBROWSE_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) \
2113bc77 25 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \
cf9b63b3 26 -I$(SETUPHDIR) -I.\..\..\include -W -Wall -I. $(__DLLFLAG_p) -I.\..\..\samples \
2113bc77
MW
27 -DNOPCH $(__RTTIFLAG_5) $(__EXCEPTIONSFLAG_6) -Wno-ctor-dtor-privacy \
28 $(CPPFLAGS) $(CXXFLAGS)
264af224
VS
29DBBROWSE_OBJECTS = \
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
264af224
VS
39
40### Conditionally set variables: ###
41
42ifeq ($(GCC_VERSION),2.95)
43GCCFLAGS = -fvtable-thunks
44endif
45ifeq ($(USE_GUI),0)
46PORTNAME = base
47endif
48ifeq ($(USE_GUI),1)
49PORTNAME = msw
50endif
51ifeq ($(BUILD),debug)
52ifeq ($(DEBUG_FLAG),default)
53WXDEBUGFLAG = d
54endif
55endif
56ifeq ($(DEBUG_FLAG),1)
57WXDEBUGFLAG = d
58endif
264af224
VS
59ifeq ($(UNICODE),1)
60WXUNICODEFLAG = u
61endif
62ifeq ($(WXUNIV),1)
63WXUNIVNAME = univ
64endif
b17c1746
DE
65ifeq ($(SHARED),1)
66WXDLLFLAG = dll
264af224 67endif
d3d0b8db
JS
68ifeq ($(SHARED),0)
69LIBTYPE_SUFFIX = lib
70endif
71ifeq ($(SHARED),1)
72LIBTYPE_SUFFIX = dll
73endif
dd65d8c8
RN
74ifeq ($(MONOLITHIC),0)
75EXTRALIBS_FOR_BASE =
76endif
77ifeq ($(MONOLITHIC),1)
78EXTRALIBS_FOR_BASE =
79endif
80ifeq ($(USE_ODBC),1)
81__dbbrowse___depname = $(OBJS)\dbbrowse.exe
82endif
b17c1746
DE
83ifeq ($(BUILD),debug)
84__OPTIMIZEFLAG_2 = -O0
264af224
VS
85endif
86ifeq ($(BUILD),release)
b17c1746 87__OPTIMIZEFLAG_2 = -O2
264af224 88endif
8c9f8f91
JS
89ifeq ($(USE_RTTI),0)
90__RTTIFLAG_5 = -fno-rtti
264af224 91endif
8c9f8f91
JS
92ifeq ($(USE_RTTI),1)
93__RTTIFLAG_5 =
264af224 94endif
b17c1746 95ifeq ($(USE_EXCEPTIONS),0)
8c9f8f91 96__EXCEPTIONSFLAG_6 = -fno-exceptions
b17c1746
DE
97endif
98ifeq ($(USE_EXCEPTIONS),1)
8c9f8f91 99__EXCEPTIONSFLAG_6 =
b17c1746
DE
100endif
101ifeq ($(WXUNIV),1)
102__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
103endif
104ifeq ($(WXUNIV),1)
105__WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__
264af224
VS
106endif
107ifeq ($(BUILD),debug)
108ifeq ($(DEBUG_FLAG),default)
109__DEBUG_DEFINE_p = -D__WXDEBUG__
110endif
111endif
112ifeq ($(DEBUG_FLAG),1)
113__DEBUG_DEFINE_p = -D__WXDEBUG__
114endif
115ifeq ($(BUILD),debug)
116ifeq ($(DEBUG_FLAG),default)
117__DEBUG_DEFINE_p_1 = --define __WXDEBUG__
118endif
119endif
120ifeq ($(DEBUG_FLAG),1)
121__DEBUG_DEFINE_p_1 = --define __WXDEBUG__
122endif
8c9f8f91
JS
123ifeq ($(USE_EXCEPTIONS),0)
124__EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
125endif
126ifeq ($(USE_EXCEPTIONS),0)
127__EXCEPTIONS_DEFINE_p_1 = --define wxNO_EXCEPTIONS
128endif
129ifeq ($(USE_RTTI),0)
130__RTTI_DEFINE_p = -DwxNO_RTTI
131endif
132ifeq ($(USE_RTTI),0)
133__RTTI_DEFINE_p_1 = --define wxNO_RTTI
134endif
135ifeq ($(USE_THREADS),0)
136__THREAD_DEFINE_p = -DwxNO_THREADS
137endif
138ifeq ($(USE_THREADS),0)
139__THREAD_DEFINE_p_1 = --define wxNO_THREADS
140endif
b17c1746
DE
141ifeq ($(UNICODE),1)
142__UNICODE_DEFINE_p = -D_UNICODE
143endif
144ifeq ($(UNICODE),1)
145__UNICODE_DEFINE_p_1 = --define _UNICODE
146endif
2113bc77
MW
147ifeq ($(MSLU),1)
148__MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
149endif
150ifeq ($(MSLU),1)
151__MSLU_DEFINE_p_1 = --define wxUSE_UNICODE_MSLU=1
152endif
264af224
VS
153ifeq ($(SHARED),1)
154__DLLFLAG_p = -DWXUSINGDLL
155endif
156ifeq ($(SHARED),1)
157__DLLFLAG_p_1 = --define WXUSINGDLL
158endif
b17c1746
DE
159ifeq ($(MONOLITHIC),0)
160__WXLIB_DBGRID_p = \
c33fae85 161 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_dbgrid
a4ad36cd 162endif
b17c1746
DE
163ifeq ($(MONOLITHIC),0)
164__WXLIB_ADV_p = \
c33fae85 165 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_adv
a4ad36cd 166endif
b17c1746 167ifeq ($(MONOLITHIC),0)
b92ca05a 168ifeq ($(USE_ODBC),1)
c33fae85
RN
169__WXLIB_ODBC_p = \
170 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_odbc
a4ad36cd 171endif
b92ca05a 172endif
b17c1746
DE
173ifeq ($(MONOLITHIC),0)
174__WXLIB_HTML_p = \
c33fae85 175 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_html
a4ad36cd 176endif
b17c1746 177ifeq ($(MONOLITHIC),0)
ebef1625
MW
178__WXLIB_XML_p = \
179 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_xml
180endif
181ifeq ($(MONOLITHIC),0)
b17c1746 182__WXLIB_CORE_p = \
c33fae85 183 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
264af224 184endif
b17c1746 185ifeq ($(MONOLITHIC),0)
c33fae85
RN
186__WXLIB_BASE_p = \
187 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
b17c1746
DE
188endif
189ifeq ($(MONOLITHIC),1)
190__WXLIB_MONO_p = \
c33fae85 191 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
264af224
VS
192endif
193ifeq ($(USE_GUI),1)
9c2d002b 194__LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
264af224 195endif
b17c1746 196ifeq ($(USE_GUI),1)
9c2d002b 197__LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
264af224 198endif
b17c1746 199ifeq ($(USE_GUI),1)
9c2d002b 200__LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
264af224 201endif
4e209a20
VS
202ifeq ($(MSLU),1)
203__UNICOWS_LIB_p = -lunicows
204endif
b17c1746
DE
205ifeq ($(BUILD),debug)
206ifeq ($(DEBUG_INFO),default)
207__DEBUGINFO = -g
f2901744 208endif
264af224 209endif
b17c1746
DE
210ifeq ($(BUILD),release)
211ifeq ($(DEBUG_INFO),default)
212__DEBUGINFO =
264af224 213endif
264af224 214endif
b17c1746
DE
215ifeq ($(DEBUG_INFO),0)
216__DEBUGINFO =
264af224 217endif
b17c1746
DE
218ifeq ($(DEBUG_INFO),1)
219__DEBUGINFO = -g
264af224 220endif
8c9f8f91
JS
221ifeq ($(USE_THREADS),0)
222__THREADSFLAG =
223endif
224ifeq ($(USE_THREADS),1)
225__THREADSFLAG = -mthreads
226endif
264af224
VS
227
228
229all: $(OBJS)
230$(OBJS):
231 -if not exist $(OBJS) mkdir $(OBJS)
232
233### Targets: ###
234
dd65d8c8 235all: $(__dbbrowse___depname) data_help_std data_help_png
264af224 236
b17c1746
DE
237clean:
238 -if exist $(OBJS)\*.o del $(OBJS)\*.o
0d90d6ea 239 -if exist $(OBJS)\*.d del $(OBJS)\*.d
b17c1746
DE
240 -if exist $(OBJS)\dbbrowse.exe del $(OBJS)\dbbrowse.exe
241
dd65d8c8 242ifeq ($(USE_ODBC),1)
b17c1746 243$(OBJS)\dbbrowse.exe: $(DBBROWSE_OBJECTS) $(OBJS)\dbbrowse_dbbrowse_rc.o
3b2cb431 244 $(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) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lodbc32
dd65d8c8 245endif
264af224 246
eac98de7
VS
247data_help_std:
248 if not exist $(OBJS)\help.std mkdir $(OBJS)\help.std
249 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
250
251data_help_png:
252 if not exist $(OBJS)\help.png mkdir $(OBJS)\help.png
253 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
254
1c3a6972 255$(OBJS)\dbbrowse_dbbrowse.o: ./dbbrowse.cpp
0d90d6ea 256 $(CXX) -c -o $@ $(DBBROWSE_CXXFLAGS) $(CPPDEPS) $<
264af224 257
b17c1746 258$(OBJS)\dbbrowse_doc.o: ./doc.cpp
0d90d6ea 259 $(CXX) -c -o $@ $(DBBROWSE_CXXFLAGS) $(CPPDEPS) $<
264af224 260
b17c1746 261$(OBJS)\dbbrowse_pgmctrl.o: ./pgmctrl.cpp
0d90d6ea 262 $(CXX) -c -o $@ $(DBBROWSE_CXXFLAGS) $(CPPDEPS) $<
264af224 263
b17c1746 264$(OBJS)\dbbrowse_tabpgwin.o: ./tabpgwin.cpp
0d90d6ea 265 $(CXX) -c -o $@ $(DBBROWSE_CXXFLAGS) $(CPPDEPS) $<
264af224 266
b17c1746 267$(OBJS)\dbbrowse_browsedb.o: ./browsedb.cpp
0d90d6ea 268 $(CXX) -c -o $@ $(DBBROWSE_CXXFLAGS) $(CPPDEPS) $<
264af224 269
b17c1746 270$(OBJS)\dbbrowse_dbtree.o: ./dbtree.cpp
0d90d6ea 271 $(CXX) -c -o $@ $(DBBROWSE_CXXFLAGS) $(CPPDEPS) $<
264af224 272
b17c1746 273$(OBJS)\dbbrowse_dbgrid.o: ./dbgrid.cpp
0d90d6ea 274 $(CXX) -c -o $@ $(DBBROWSE_CXXFLAGS) $(CPPDEPS) $<
264af224 275
b17c1746 276$(OBJS)\dbbrowse_dlguser.o: ./dlguser.cpp
0d90d6ea 277 $(CXX) -c -o $@ $(DBBROWSE_CXXFLAGS) $(CPPDEPS) $<
264af224 278
b17c1746 279$(OBJS)\dbbrowse_dbbrowse_rc.o: ./dbbrowse.rc
cf9b63b3 280 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) --include-dir $(SETUPHDIR) --include-dir ./../../include --include-dir . $(__DLLFLAG_p_1) --include-dir ./../../samples --define NOPCH
264af224 281
eac98de7 282.PHONY: all clean data_help_std data_help_png
d3d0b8db 283
8c9f8f91 284
0d90d6ea
JS
285# Dependencies tracking:
286-include $(OBJS)/*.d