]> git.saurik.com Git - wxWidgets.git/blame - samples/db/makefile.gcc
Incomplete wxUSE_* warning fix.
[wxWidgets.git] / samples / db / makefile.gcc
CommitLineData
3b20263d
VS
1# =========================================================================
2# This makefile was generated by
8c9f8f91 3# Bakefile 0.1.8 (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)
b14abf14 18LIBDIRNAME = .\..\..\lib\gcc_$(LIBTYPE_SUFFIX)$(CFG)
b17c1746
DE
19SETUPHDIR = \
20 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
8c9f8f91
JS
21DBTEST_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG_2) $(__THREADSFLAG) \
22 $(GCCFLAGS) -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
23 $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
24 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) -I.\..\..\include -I$(SETUPHDIR) \
25 -W -Wall -I. $(__DLLFLAG_p) -I.\..\..\samples -DNOPCH $(__RTTIFLAG_5) \
26 $(__EXCEPTIONSFLAG_6) -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)
076f10e0
VS
27DBTEST_OBJECTS = \
28 $(OBJS)\dbtest_dbtest.o \
29 $(OBJS)\dbtest_listdb.o \
30 $(OBJS)\dbtest_dbtest_rc.o
3b20263d
VS
31
32### Conditionally set variables: ###
33
250700e4
RD
34ifeq ($(GCC_VERSION),2.95)
35GCCFLAGS = -fvtable-thunks
36endif
3b20263d
VS
37ifeq ($(USE_GUI),0)
38PORTNAME = base
39endif
40ifeq ($(USE_GUI),1)
41PORTNAME = msw
42endif
43ifeq ($(BUILD),debug)
076f10e0
VS
44ifeq ($(DEBUG_FLAG),default)
45WXDEBUGFLAG = d
46endif
47endif
48ifeq ($(DEBUG_FLAG),1)
3b20263d
VS
49WXDEBUGFLAG = d
50endif
3b20263d
VS
51ifeq ($(UNICODE),1)
52WXUNICODEFLAG = u
53endif
54ifeq ($(WXUNIV),1)
55WXUNIVNAME = univ
56endif
b17c1746
DE
57ifeq ($(SHARED),1)
58WXDLLFLAG = dll
076f10e0 59endif
b14abf14
JS
60ifeq ($(SHARED),0)
61LIBTYPE_SUFFIX = lib
62endif
63ifeq ($(SHARED),1)
64LIBTYPE_SUFFIX = dll
65endif
dd65d8c8
RN
66ifeq ($(MONOLITHIC),0)
67EXTRALIBS_FOR_BASE =
68endif
69ifeq ($(MONOLITHIC),1)
70EXTRALIBS_FOR_BASE =
71endif
b17c1746
DE
72ifeq ($(USE_ODBC),1)
73__dbtest___depname = $(OBJS)\dbtest.exe
74endif
75ifeq ($(BUILD),debug)
76__OPTIMIZEFLAG_2 = -O0
250700e4
RD
77endif
78ifeq ($(BUILD),release)
b17c1746 79__OPTIMIZEFLAG_2 = -O2
076f10e0 80endif
8c9f8f91
JS
81ifeq ($(USE_RTTI),0)
82__RTTIFLAG_5 = -fno-rtti
076f10e0 83endif
8c9f8f91
JS
84ifeq ($(USE_RTTI),1)
85__RTTIFLAG_5 =
076f10e0 86endif
b17c1746 87ifeq ($(USE_EXCEPTIONS),0)
8c9f8f91 88__EXCEPTIONSFLAG_6 = -fno-exceptions
b17c1746
DE
89endif
90ifeq ($(USE_EXCEPTIONS),1)
8c9f8f91 91__EXCEPTIONSFLAG_6 =
b17c1746
DE
92endif
93ifeq ($(WXUNIV),1)
94__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
95endif
96ifeq ($(WXUNIV),1)
97__WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__
250700e4
RD
98endif
99ifeq ($(BUILD),debug)
076f10e0
VS
100ifeq ($(DEBUG_FLAG),default)
101__DEBUG_DEFINE_p = -D__WXDEBUG__
102endif
103endif
104ifeq ($(DEBUG_FLAG),1)
3b20263d
VS
105__DEBUG_DEFINE_p = -D__WXDEBUG__
106endif
107ifeq ($(BUILD),debug)
076f10e0
VS
108ifeq ($(DEBUG_FLAG),default)
109__DEBUG_DEFINE_p_1 = --define __WXDEBUG__
110endif
111endif
112ifeq ($(DEBUG_FLAG),1)
3b20263d
VS
113__DEBUG_DEFINE_p_1 = --define __WXDEBUG__
114endif
8c9f8f91
JS
115ifeq ($(USE_EXCEPTIONS),0)
116__EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
117endif
118ifeq ($(USE_EXCEPTIONS),0)
119__EXCEPTIONS_DEFINE_p_1 = --define wxNO_EXCEPTIONS
120endif
121ifeq ($(USE_RTTI),0)
122__RTTI_DEFINE_p = -DwxNO_RTTI
123endif
124ifeq ($(USE_RTTI),0)
125__RTTI_DEFINE_p_1 = --define wxNO_RTTI
126endif
127ifeq ($(USE_THREADS),0)
128__THREAD_DEFINE_p = -DwxNO_THREADS
129endif
130ifeq ($(USE_THREADS),0)
131__THREAD_DEFINE_p_1 = --define wxNO_THREADS
132endif
b17c1746
DE
133ifeq ($(UNICODE),1)
134__UNICODE_DEFINE_p = -D_UNICODE
135endif
136ifeq ($(UNICODE),1)
137__UNICODE_DEFINE_p_1 = --define _UNICODE
138endif
3b20263d
VS
139ifeq ($(SHARED),1)
140__DLLFLAG_p = -DWXUSINGDLL
141endif
142ifeq ($(SHARED),1)
143__DLLFLAG_p_1 = --define WXUSINGDLL
144endif
b17c1746 145ifeq ($(MONOLITHIC),0)
c4839ccf 146__WXLIB_DBGRID_p = \
c33fae85 147 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_dbgrid
c4839ccf
JS
148endif
149ifeq ($(MONOLITHIC),0)
b92ca05a 150ifeq ($(USE_ODBC),1)
c33fae85
RN
151__WXLIB_ODBC_p = \
152 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_odbc
b71531ad 153endif
b92ca05a 154endif
b17c1746 155ifeq ($(MONOLITHIC),0)
c6f57ccb 156__WXLIB_ADV_p = \
c33fae85 157 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_adv
c6f57ccb
WS
158endif
159ifeq ($(MONOLITHIC),0)
b17c1746 160__WXLIB_CORE_p = \
c33fae85 161 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
b71531ad 162endif
b17c1746 163ifeq ($(MONOLITHIC),0)
c33fae85
RN
164__WXLIB_BASE_p = \
165 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
b71531ad 166endif
b17c1746
DE
167ifeq ($(MONOLITHIC),1)
168__WXLIB_MONO_p = \
c33fae85 169 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
b71531ad 170endif
076f10e0 171ifeq ($(USE_GUI),1)
9c2d002b 172__LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
076f10e0
VS
173endif
174ifeq ($(USE_GUI),1)
9c2d002b 175__LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
076f10e0
VS
176endif
177ifeq ($(USE_GUI),1)
9c2d002b 178__LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
3b20263d 179endif
4e209a20
VS
180ifeq ($(MSLU),1)
181__UNICOWS_LIB_p = -lunicows
182endif
b17c1746
DE
183ifeq ($(BUILD),debug)
184ifeq ($(DEBUG_INFO),default)
185__DEBUGINFO = -g
3b20263d 186endif
fd9f42b6 187endif
b17c1746
DE
188ifeq ($(BUILD),release)
189ifeq ($(DEBUG_INFO),default)
190__DEBUGINFO =
3b20263d 191endif
3b20263d 192endif
b17c1746
DE
193ifeq ($(DEBUG_INFO),0)
194__DEBUGINFO =
195endif
196ifeq ($(DEBUG_INFO),1)
197__DEBUGINFO = -g
2e9fdc04 198endif
8c9f8f91
JS
199ifeq ($(USE_THREADS),0)
200__THREADSFLAG =
201endif
202ifeq ($(USE_THREADS),1)
203__THREADSFLAG = -mthreads
204endif
3b20263d
VS
205
206
207all: $(OBJS)
208$(OBJS):
209 -if not exist $(OBJS) mkdir $(OBJS)
210
211### Targets: ###
212
2e9fdc04 213all: $(__dbtest___depname)
3b20263d 214
3b20263d
VS
215clean:
216 -if exist $(OBJS)\*.o del $(OBJS)\*.o
217 -if exist $(OBJS)\dbtest.exe del $(OBJS)\dbtest.exe
218
2e9fdc04 219ifeq ($(USE_ODBC),1)
076f10e0 220$(OBJS)\dbtest.exe: $(DBTEST_OBJECTS) $(OBJS)\dbtest_dbtest_rc.o
8c9f8f91 221 $(CXX) -o $@ $(DBTEST_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) $(__THREADSFLAG) -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 222endif
3b20263d 223
b17c1746
DE
224$(OBJS)\dbtest_dbtest.o: ./dbtest.cpp
225 $(CXX) -c -o $@ $(DBTEST_CXXFLAGS) $<
226
227$(OBJS)\dbtest_listdb.o: ./listdb.cpp
228 $(CXX) -c -o $@ $(DBTEST_CXXFLAGS) $<
229
230$(OBJS)\dbtest_dbtest_rc.o: ./dbtest.rc
8c9f8f91 231 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) --include-dir ./../../include --include-dir $(SETUPHDIR) --include-dir . $(__DLLFLAG_p_1) --include-dir ./../../samples --define NOPCH
b17c1746 232
250700e4 233.PHONY: all clean
b14abf14 234
8c9f8f91 235