]> git.saurik.com Git - wxWidgets.git/blame_incremental - samples/db/makefile.gcc
wxGenericDirCtrl page for widgets sample.
[wxWidgets.git] / samples / db / makefile.gcc
... / ...
CommitLineData
1# =========================================================================
2# This makefile was generated by
3# Bakefile 0.2.0 (http://bakefile.sourceforge.net)
4# Do not modify, all changes will be overwritten!
5# =========================================================================
6
7include ../../build/msw/config.gcc
8
9# -------------------------------------------------------------------------
10# Do not modify the rest of this file!
11# -------------------------------------------------------------------------
12
13### Variables: ###
14
15CPPDEPS = -MT$@ -MF$@.d -MD
16WX_RELEASE_NODOT = 27
17OBJS = \
18 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
19LIBDIRNAME = .\..\..\lib\gcc_$(LIBTYPE_SUFFIX)$(CFG)
20SETUPHDIR = \
21 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
22DBTEST_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 -I$(SETUPHDIR) -I.\..\..\include -W -Wall -I. $(__DLLFLAG_p) -I.\..\..\samples \
27 -DNOPCH $(__RTTIFLAG_5) $(__EXCEPTIONSFLAG_6) -Wno-ctor-dtor-privacy \
28 $(CPPFLAGS) $(CXXFLAGS)
29DBTEST_OBJECTS = \
30 $(OBJS)\dbtest_dbtest.o \
31 $(OBJS)\dbtest_listdb.o \
32 $(OBJS)\dbtest_dbtest_rc.o
33
34### Conditionally set variables: ###
35
36ifeq ($(GCC_VERSION),2.95)
37GCCFLAGS = -fvtable-thunks
38endif
39ifeq ($(USE_GUI),0)
40PORTNAME = base
41endif
42ifeq ($(USE_GUI),1)
43PORTNAME = msw
44endif
45ifeq ($(BUILD),debug)
46ifeq ($(DEBUG_FLAG),default)
47WXDEBUGFLAG = d
48endif
49endif
50ifeq ($(DEBUG_FLAG),1)
51WXDEBUGFLAG = d
52endif
53ifeq ($(UNICODE),1)
54WXUNICODEFLAG = u
55endif
56ifeq ($(WXUNIV),1)
57WXUNIVNAME = univ
58endif
59ifeq ($(SHARED),1)
60WXDLLFLAG = dll
61endif
62ifeq ($(SHARED),0)
63LIBTYPE_SUFFIX = lib
64endif
65ifeq ($(SHARED),1)
66LIBTYPE_SUFFIX = dll
67endif
68ifeq ($(MONOLITHIC),0)
69EXTRALIBS_FOR_BASE =
70endif
71ifeq ($(MONOLITHIC),1)
72EXTRALIBS_FOR_BASE =
73endif
74ifeq ($(USE_ODBC),1)
75__dbtest___depname = $(OBJS)\dbtest.exe
76endif
77ifeq ($(BUILD),debug)
78__OPTIMIZEFLAG_2 = -O0
79endif
80ifeq ($(BUILD),release)
81__OPTIMIZEFLAG_2 = -O2
82endif
83ifeq ($(USE_RTTI),0)
84__RTTIFLAG_5 = -fno-rtti
85endif
86ifeq ($(USE_RTTI),1)
87__RTTIFLAG_5 =
88endif
89ifeq ($(USE_EXCEPTIONS),0)
90__EXCEPTIONSFLAG_6 = -fno-exceptions
91endif
92ifeq ($(USE_EXCEPTIONS),1)
93__EXCEPTIONSFLAG_6 =
94endif
95ifeq ($(WXUNIV),1)
96__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
97endif
98ifeq ($(WXUNIV),1)
99__WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__
100endif
101ifeq ($(BUILD),debug)
102ifeq ($(DEBUG_FLAG),default)
103__DEBUG_DEFINE_p = -D__WXDEBUG__
104endif
105endif
106ifeq ($(DEBUG_FLAG),1)
107__DEBUG_DEFINE_p = -D__WXDEBUG__
108endif
109ifeq ($(BUILD),debug)
110ifeq ($(DEBUG_FLAG),default)
111__DEBUG_DEFINE_p_1 = --define __WXDEBUG__
112endif
113endif
114ifeq ($(DEBUG_FLAG),1)
115__DEBUG_DEFINE_p_1 = --define __WXDEBUG__
116endif
117ifeq ($(USE_EXCEPTIONS),0)
118__EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
119endif
120ifeq ($(USE_EXCEPTIONS),0)
121__EXCEPTIONS_DEFINE_p_1 = --define wxNO_EXCEPTIONS
122endif
123ifeq ($(USE_RTTI),0)
124__RTTI_DEFINE_p = -DwxNO_RTTI
125endif
126ifeq ($(USE_RTTI),0)
127__RTTI_DEFINE_p_1 = --define wxNO_RTTI
128endif
129ifeq ($(USE_THREADS),0)
130__THREAD_DEFINE_p = -DwxNO_THREADS
131endif
132ifeq ($(USE_THREADS),0)
133__THREAD_DEFINE_p_1 = --define wxNO_THREADS
134endif
135ifeq ($(UNICODE),1)
136__UNICODE_DEFINE_p = -D_UNICODE
137endif
138ifeq ($(UNICODE),1)
139__UNICODE_DEFINE_p_1 = --define _UNICODE
140endif
141ifeq ($(MSLU),1)
142__MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
143endif
144ifeq ($(MSLU),1)
145__MSLU_DEFINE_p_1 = --define wxUSE_UNICODE_MSLU=1
146endif
147ifeq ($(SHARED),1)
148__DLLFLAG_p = -DWXUSINGDLL
149endif
150ifeq ($(SHARED),1)
151__DLLFLAG_p_1 = --define WXUSINGDLL
152endif
153ifeq ($(MONOLITHIC),0)
154__WXLIB_DBGRID_p = \
155 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_dbgrid
156endif
157ifeq ($(MONOLITHIC),0)
158ifeq ($(USE_ODBC),1)
159__WXLIB_ODBC_p = \
160 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_odbc
161endif
162endif
163ifeq ($(MONOLITHIC),0)
164__WXLIB_ADV_p = \
165 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_adv
166endif
167ifeq ($(MONOLITHIC),0)
168__WXLIB_HTML_p = \
169 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_html
170endif
171ifeq ($(MONOLITHIC),0)
172__WXLIB_XML_p = \
173 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_xml
174endif
175ifeq ($(MONOLITHIC),0)
176__WXLIB_CORE_p = \
177 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
178endif
179ifeq ($(MONOLITHIC),0)
180__WXLIB_BASE_p = \
181 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
182endif
183ifeq ($(MONOLITHIC),1)
184__WXLIB_MONO_p = \
185 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
186endif
187ifeq ($(USE_GUI),1)
188__LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
189endif
190ifeq ($(USE_GUI),1)
191__LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
192endif
193ifeq ($(USE_GUI),1)
194__LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
195endif
196ifeq ($(MSLU),1)
197__UNICOWS_LIB_p = -lunicows
198endif
199ifeq ($(BUILD),debug)
200ifeq ($(DEBUG_INFO),default)
201__DEBUGINFO = -g
202endif
203endif
204ifeq ($(BUILD),release)
205ifeq ($(DEBUG_INFO),default)
206__DEBUGINFO =
207endif
208endif
209ifeq ($(DEBUG_INFO),0)
210__DEBUGINFO =
211endif
212ifeq ($(DEBUG_INFO),1)
213__DEBUGINFO = -g
214endif
215ifeq ($(USE_THREADS),0)
216__THREADSFLAG =
217endif
218ifeq ($(USE_THREADS),1)
219__THREADSFLAG = -mthreads
220endif
221
222
223all: $(OBJS)
224$(OBJS):
225 -if not exist $(OBJS) mkdir $(OBJS)
226
227### Targets: ###
228
229all: $(__dbtest___depname)
230
231clean:
232 -if exist $(OBJS)\*.o del $(OBJS)\*.o
233 -if exist $(OBJS)\*.d del $(OBJS)\*.d
234 -if exist $(OBJS)\dbtest.exe del $(OBJS)\dbtest.exe
235
236ifeq ($(USE_ODBC),1)
237$(OBJS)\dbtest.exe: $(DBTEST_OBJECTS) $(OBJS)\dbtest_dbtest_rc.o
238 $(CXX) -o $@ $(DBTEST_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) $(__THREADSFLAG) -L$(LIBDIRNAME) -Wl,--subsystem,windows -mwindows $(__WXLIB_DBGRID_p) $(__WXLIB_ODBC_p) $(__WXLIB_ADV_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
239endif
240
241$(OBJS)\dbtest_dbtest.o: ./dbtest.cpp
242 $(CXX) -c -o $@ $(DBTEST_CXXFLAGS) $(CPPDEPS) $<
243
244$(OBJS)\dbtest_listdb.o: ./listdb.cpp
245 $(CXX) -c -o $@ $(DBTEST_CXXFLAGS) $(CPPDEPS) $<
246
247$(OBJS)\dbtest_dbtest_rc.o: ./dbtest.rc
248 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
249
250.PHONY: all clean
251
252
253# Dependencies tracking:
254-include $(OBJS)/*.d