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