]> git.saurik.com Git - wxWidgets.git/blame - samples/db/makefile.gcc
Tagged DEBIAN_2_5_3_2 for release testing. Bumped subversion to 2.5.3.3
[wxWidgets.git] / samples / db / makefile.gcc
CommitLineData
3b20263d
VS
1# =========================================================================
2# This makefile was generated by
c4839ccf 3# Bakefile 0.1.4 (http://bakefile.sourceforge.net)
3b20263d
VS
4# Do not modify, all changes will be overwritten!
5# =========================================================================
6
fd9f42b6 7include ../../build/msw/config.gcc
3b20263d
VS
8
9# -------------------------------------------------------------------------
10# Do not modify the rest of this file!
11# -------------------------------------------------------------------------
12
13### Variables: ###
14
c33fae85 15WX_RELEASE_NODOT = 25
b17c1746
DE
16OBJS = \
17 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
18SETUPHDIR = \
19 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
9bfe7ad9 20DBTEST_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG_2) $(GCCFLAGS) \
076f10e0 21 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
ec08d395 22 $(__UNICODE_DEFINE_p) -I.\..\..\include -I$(SETUPHDIR) -Wall -I. \
c33fae85 23 $(__DLLFLAG_p) -I.\..\..\samples -DNOPCH $(__EXCEPTIONSFLAG_4) \
9bfe7ad9 24 $(__EXCEPTIONSFLAG_5) $(CPPFLAGS) $(CXXFLAGS)
076f10e0
VS
25DBTEST_OBJECTS = \
26 $(OBJS)\dbtest_dbtest.o \
27 $(OBJS)\dbtest_listdb.o \
28 $(OBJS)\dbtest_dbtest_rc.o
3b20263d
VS
29
30### Conditionally set variables: ###
31
250700e4
RD
32ifeq ($(GCC_VERSION),2.95)
33GCCFLAGS = -fvtable-thunks
34endif
3b20263d
VS
35ifeq ($(USE_GUI),0)
36PORTNAME = base
37endif
38ifeq ($(USE_GUI),1)
39PORTNAME = msw
40endif
41ifeq ($(BUILD),debug)
076f10e0
VS
42ifeq ($(DEBUG_FLAG),default)
43WXDEBUGFLAG = d
44endif
45endif
46ifeq ($(DEBUG_FLAG),1)
3b20263d
VS
47WXDEBUGFLAG = d
48endif
3b20263d
VS
49ifeq ($(UNICODE),1)
50WXUNICODEFLAG = u
51endif
52ifeq ($(WXUNIV),1)
53WXUNIVNAME = univ
54endif
b17c1746
DE
55ifeq ($(SHARED),1)
56WXDLLFLAG = dll
076f10e0 57endif
dd65d8c8
RN
58ifeq ($(MONOLITHIC),0)
59EXTRALIBS_FOR_BASE =
60endif
61ifeq ($(MONOLITHIC),1)
62EXTRALIBS_FOR_BASE =
63endif
b17c1746
DE
64ifeq ($(USE_ODBC),1)
65__dbtest___depname = $(OBJS)\dbtest.exe
66endif
67ifeq ($(BUILD),debug)
68__OPTIMIZEFLAG_2 = -O0
250700e4
RD
69endif
70ifeq ($(BUILD),release)
b17c1746 71__OPTIMIZEFLAG_2 = -O2
076f10e0 72endif
b17c1746
DE
73ifeq ($(USE_EXCEPTIONS),0)
74__EXCEPTIONSFLAG_4 = -fno-rtti
076f10e0 75endif
b17c1746
DE
76ifeq ($(USE_EXCEPTIONS),1)
77__EXCEPTIONSFLAG_4 =
076f10e0 78endif
b17c1746
DE
79ifeq ($(USE_EXCEPTIONS),0)
80__EXCEPTIONSFLAG_5 = -fno-exceptions
81endif
82ifeq ($(USE_EXCEPTIONS),1)
83__EXCEPTIONSFLAG_5 =
84endif
85ifeq ($(WXUNIV),1)
86__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
87endif
88ifeq ($(WXUNIV),1)
89__WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__
250700e4
RD
90endif
91ifeq ($(BUILD),debug)
076f10e0
VS
92ifeq ($(DEBUG_FLAG),default)
93__DEBUG_DEFINE_p = -D__WXDEBUG__
94endif
95endif
96ifeq ($(DEBUG_FLAG),1)
3b20263d
VS
97__DEBUG_DEFINE_p = -D__WXDEBUG__
98endif
99ifeq ($(BUILD),debug)
076f10e0
VS
100ifeq ($(DEBUG_FLAG),default)
101__DEBUG_DEFINE_p_1 = --define __WXDEBUG__
102endif
103endif
104ifeq ($(DEBUG_FLAG),1)
3b20263d
VS
105__DEBUG_DEFINE_p_1 = --define __WXDEBUG__
106endif
b17c1746
DE
107ifeq ($(UNICODE),1)
108__UNICODE_DEFINE_p = -D_UNICODE
109endif
110ifeq ($(UNICODE),1)
111__UNICODE_DEFINE_p_1 = --define _UNICODE
112endif
3b20263d
VS
113ifeq ($(SHARED),1)
114__DLLFLAG_p = -DWXUSINGDLL
115endif
116ifeq ($(SHARED),1)
117__DLLFLAG_p_1 = --define WXUSINGDLL
118endif
b17c1746 119ifeq ($(MONOLITHIC),0)
c4839ccf 120__WXLIB_DBGRID_p = \
c33fae85 121 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_dbgrid
c4839ccf
JS
122endif
123ifeq ($(MONOLITHIC),0)
b92ca05a 124ifeq ($(USE_ODBC),1)
c33fae85
RN
125__WXLIB_ODBC_p = \
126 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_odbc
b71531ad 127endif
b92ca05a 128endif
b17c1746 129ifeq ($(MONOLITHIC),0)
c6f57ccb 130__WXLIB_ADV_p = \
c33fae85 131 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_adv
c6f57ccb
WS
132endif
133ifeq ($(MONOLITHIC),0)
b17c1746 134__WXLIB_CORE_p = \
c33fae85 135 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
b71531ad 136endif
b17c1746 137ifeq ($(MONOLITHIC),0)
c33fae85
RN
138__WXLIB_BASE_p = \
139 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
b71531ad 140endif
b17c1746
DE
141ifeq ($(MONOLITHIC),1)
142__WXLIB_MONO_p = \
c33fae85 143 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
b71531ad 144endif
076f10e0 145ifeq ($(USE_GUI),1)
9c2d002b 146__LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
076f10e0
VS
147endif
148ifeq ($(USE_GUI),1)
9c2d002b 149__LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
076f10e0
VS
150endif
151ifeq ($(USE_GUI),1)
9c2d002b 152__LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
3b20263d 153endif
4e209a20
VS
154ifeq ($(MSLU),1)
155__UNICOWS_LIB_p = -lunicows
156endif
b17c1746
DE
157ifeq ($(SHARED),0)
158LIBDIRNAME = .\..\..\lib\gcc_lib$(CFG)
3b20263d 159endif
b17c1746
DE
160ifeq ($(SHARED),1)
161LIBDIRNAME = .\..\..\lib\gcc_dll$(CFG)
3b20263d 162endif
b17c1746
DE
163ifeq ($(BUILD),debug)
164ifeq ($(DEBUG_INFO),default)
165__DEBUGINFO = -g
3b20263d 166endif
fd9f42b6 167endif
b17c1746
DE
168ifeq ($(BUILD),release)
169ifeq ($(DEBUG_INFO),default)
170__DEBUGINFO =
3b20263d 171endif
3b20263d 172endif
b17c1746
DE
173ifeq ($(DEBUG_INFO),0)
174__DEBUGINFO =
175endif
176ifeq ($(DEBUG_INFO),1)
177__DEBUGINFO = -g
2e9fdc04 178endif
3b20263d
VS
179
180
181all: $(OBJS)
182$(OBJS):
183 -if not exist $(OBJS) mkdir $(OBJS)
184
185### Targets: ###
186
2e9fdc04 187all: $(__dbtest___depname)
3b20263d 188
3b20263d
VS
189clean:
190 -if exist $(OBJS)\*.o del $(OBJS)\*.o
191 -if exist $(OBJS)\dbtest.exe del $(OBJS)\dbtest.exe
192
2e9fdc04 193ifeq ($(USE_ODBC),1)
076f10e0 194$(OBJS)\dbtest.exe: $(DBTEST_OBJECTS) $(OBJS)\dbtest_dbtest_rc.o
dd65d8c8 195 $(CXX) -o $@ $(DBTEST_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) -mthreads -L$(LIBDIRNAME) -Wl,--subsystem,windows -mwindows $(__WXLIB_DBGRID_p) $(__WXLIB_ODBC_p) $(__WXLIB_ADV_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
2e9fdc04 196endif
3b20263d 197
b17c1746
DE
198$(OBJS)\dbtest_dbtest.o: ./dbtest.cpp
199 $(CXX) -c -o $@ $(DBTEST_CXXFLAGS) $<
200
201$(OBJS)\dbtest_listdb.o: ./listdb.cpp
202 $(CXX) -c -o $@ $(DBTEST_CXXFLAGS) $<
203
204$(OBJS)\dbtest_dbtest_rc.o: ./dbtest.rc
c33fae85 205 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
b17c1746 206
250700e4 207.PHONY: all clean