]> git.saurik.com Git - wxWidgets.git/blame - samples/db/makefile.gcc
Script updates
[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
b17c1746
DE
58ifeq ($(USE_ODBC),1)
59__dbtest___depname = $(OBJS)\dbtest.exe
60endif
61ifeq ($(BUILD),debug)
62__OPTIMIZEFLAG_2 = -O0
250700e4
RD
63endif
64ifeq ($(BUILD),release)
b17c1746 65__OPTIMIZEFLAG_2 = -O2
076f10e0 66endif
b17c1746
DE
67ifeq ($(USE_EXCEPTIONS),0)
68__EXCEPTIONSFLAG_4 = -fno-rtti
076f10e0 69endif
b17c1746
DE
70ifeq ($(USE_EXCEPTIONS),1)
71__EXCEPTIONSFLAG_4 =
076f10e0 72endif
b17c1746
DE
73ifeq ($(USE_EXCEPTIONS),0)
74__EXCEPTIONSFLAG_5 = -fno-exceptions
75endif
76ifeq ($(USE_EXCEPTIONS),1)
77__EXCEPTIONSFLAG_5 =
78endif
79ifeq ($(WXUNIV),1)
80__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
81endif
82ifeq ($(WXUNIV),1)
83__WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__
250700e4
RD
84endif
85ifeq ($(BUILD),debug)
076f10e0
VS
86ifeq ($(DEBUG_FLAG),default)
87__DEBUG_DEFINE_p = -D__WXDEBUG__
88endif
89endif
90ifeq ($(DEBUG_FLAG),1)
3b20263d
VS
91__DEBUG_DEFINE_p = -D__WXDEBUG__
92endif
93ifeq ($(BUILD),debug)
076f10e0
VS
94ifeq ($(DEBUG_FLAG),default)
95__DEBUG_DEFINE_p_1 = --define __WXDEBUG__
96endif
97endif
98ifeq ($(DEBUG_FLAG),1)
3b20263d
VS
99__DEBUG_DEFINE_p_1 = --define __WXDEBUG__
100endif
b17c1746
DE
101ifeq ($(UNICODE),1)
102__UNICODE_DEFINE_p = -D_UNICODE
103endif
104ifeq ($(UNICODE),1)
105__UNICODE_DEFINE_p_1 = --define _UNICODE
106endif
3b20263d
VS
107ifeq ($(SHARED),1)
108__DLLFLAG_p = -DWXUSINGDLL
109endif
110ifeq ($(SHARED),1)
111__DLLFLAG_p_1 = --define WXUSINGDLL
112endif
b17c1746 113ifeq ($(MONOLITHIC),0)
c4839ccf 114__WXLIB_DBGRID_p = \
c33fae85 115 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_dbgrid
c4839ccf
JS
116endif
117ifeq ($(MONOLITHIC),0)
b92ca05a 118ifeq ($(USE_ODBC),1)
c33fae85
RN
119__WXLIB_ODBC_p = \
120 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_odbc
b71531ad 121endif
b92ca05a 122endif
b17c1746 123ifeq ($(MONOLITHIC),0)
c6f57ccb 124__WXLIB_ADV_p = \
c33fae85 125 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_adv
c6f57ccb
WS
126endif
127ifeq ($(MONOLITHIC),0)
b17c1746 128__WXLIB_CORE_p = \
c33fae85 129 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
b71531ad 130endif
b17c1746 131ifeq ($(MONOLITHIC),0)
c33fae85
RN
132__WXLIB_BASE_p = \
133 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
b71531ad 134endif
b17c1746
DE
135ifeq ($(MONOLITHIC),1)
136__WXLIB_MONO_p = \
c33fae85 137 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
b71531ad 138endif
076f10e0 139ifeq ($(USE_GUI),1)
9c2d002b 140__LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
076f10e0
VS
141endif
142ifeq ($(USE_GUI),1)
9c2d002b 143__LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
076f10e0
VS
144endif
145ifeq ($(USE_GUI),1)
9c2d002b 146__LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
3b20263d 147endif
4e209a20
VS
148ifeq ($(MSLU),1)
149__UNICOWS_LIB_p = -lunicows
150endif
b17c1746
DE
151ifeq ($(SHARED),0)
152LIBDIRNAME = .\..\..\lib\gcc_lib$(CFG)
3b20263d 153endif
b17c1746
DE
154ifeq ($(SHARED),1)
155LIBDIRNAME = .\..\..\lib\gcc_dll$(CFG)
3b20263d 156endif
b17c1746
DE
157ifeq ($(BUILD),debug)
158ifeq ($(DEBUG_INFO),default)
159__DEBUGINFO = -g
3b20263d 160endif
fd9f42b6 161endif
b17c1746
DE
162ifeq ($(BUILD),release)
163ifeq ($(DEBUG_INFO),default)
164__DEBUGINFO =
3b20263d 165endif
3b20263d 166endif
b17c1746
DE
167ifeq ($(DEBUG_INFO),0)
168__DEBUGINFO =
169endif
170ifeq ($(DEBUG_INFO),1)
171__DEBUGINFO = -g
2e9fdc04 172endif
3b20263d
VS
173
174
175all: $(OBJS)
176$(OBJS):
177 -if not exist $(OBJS) mkdir $(OBJS)
178
179### Targets: ###
180
2e9fdc04 181all: $(__dbtest___depname)
3b20263d 182
3b20263d
VS
183clean:
184 -if exist $(OBJS)\*.o del $(OBJS)\*.o
185 -if exist $(OBJS)\dbtest.exe del $(OBJS)\dbtest.exe
186
2e9fdc04 187ifeq ($(USE_ODBC),1)
076f10e0 188$(OBJS)\dbtest.exe: $(DBTEST_OBJECTS) $(OBJS)\dbtest_dbtest_rc.o
9c2d002b 189 $(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) $(__UNICOWS_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lodbc32
2e9fdc04 190endif
3b20263d 191
b17c1746
DE
192$(OBJS)\dbtest_dbtest.o: ./dbtest.cpp
193 $(CXX) -c -o $@ $(DBTEST_CXXFLAGS) $<
194
195$(OBJS)\dbtest_listdb.o: ./listdb.cpp
196 $(CXX) -c -o $@ $(DBTEST_CXXFLAGS) $<
197
198$(OBJS)\dbtest_dbtest_rc.o: ./dbtest.rc
c33fae85 199 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 200
250700e4 201.PHONY: all clean