]>
Commit | Line | Data |
---|---|---|
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 | 7 | include ../../build/msw/config.gcc |
3b20263d VS |
8 | |
9 | # ------------------------------------------------------------------------- | |
10 | # Do not modify the rest of this file! | |
11 | # ------------------------------------------------------------------------- | |
12 | ||
13 | ### Variables: ### | |
14 | ||
c33fae85 | 15 | WX_RELEASE_NODOT = 25 |
b17c1746 DE |
16 | OBJS = \ |
17 | gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) | |
b14abf14 | 18 | LIBDIRNAME = .\..\..\lib\gcc_$(LIBTYPE_SUFFIX)$(CFG) |
b17c1746 DE |
19 | SETUPHDIR = \ |
20 | $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG) | |
8c9f8f91 JS |
21 | DBTEST_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 |
27 | DBTEST_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 |
34 | ifeq ($(GCC_VERSION),2.95) |
35 | GCCFLAGS = -fvtable-thunks | |
36 | endif | |
3b20263d VS |
37 | ifeq ($(USE_GUI),0) |
38 | PORTNAME = base | |
39 | endif | |
40 | ifeq ($(USE_GUI),1) | |
41 | PORTNAME = msw | |
42 | endif | |
43 | ifeq ($(BUILD),debug) | |
076f10e0 VS |
44 | ifeq ($(DEBUG_FLAG),default) |
45 | WXDEBUGFLAG = d | |
46 | endif | |
47 | endif | |
48 | ifeq ($(DEBUG_FLAG),1) | |
3b20263d VS |
49 | WXDEBUGFLAG = d |
50 | endif | |
3b20263d VS |
51 | ifeq ($(UNICODE),1) |
52 | WXUNICODEFLAG = u | |
53 | endif | |
54 | ifeq ($(WXUNIV),1) | |
55 | WXUNIVNAME = univ | |
56 | endif | |
b17c1746 DE |
57 | ifeq ($(SHARED),1) |
58 | WXDLLFLAG = dll | |
076f10e0 | 59 | endif |
b14abf14 JS |
60 | ifeq ($(SHARED),0) |
61 | LIBTYPE_SUFFIX = lib | |
62 | endif | |
63 | ifeq ($(SHARED),1) | |
64 | LIBTYPE_SUFFIX = dll | |
65 | endif | |
dd65d8c8 RN |
66 | ifeq ($(MONOLITHIC),0) |
67 | EXTRALIBS_FOR_BASE = | |
68 | endif | |
69 | ifeq ($(MONOLITHIC),1) | |
70 | EXTRALIBS_FOR_BASE = | |
71 | endif | |
b17c1746 DE |
72 | ifeq ($(USE_ODBC),1) |
73 | __dbtest___depname = $(OBJS)\dbtest.exe | |
74 | endif | |
75 | ifeq ($(BUILD),debug) | |
76 | __OPTIMIZEFLAG_2 = -O0 | |
250700e4 RD |
77 | endif |
78 | ifeq ($(BUILD),release) | |
b17c1746 | 79 | __OPTIMIZEFLAG_2 = -O2 |
076f10e0 | 80 | endif |
8c9f8f91 JS |
81 | ifeq ($(USE_RTTI),0) |
82 | __RTTIFLAG_5 = -fno-rtti | |
076f10e0 | 83 | endif |
8c9f8f91 JS |
84 | ifeq ($(USE_RTTI),1) |
85 | __RTTIFLAG_5 = | |
076f10e0 | 86 | endif |
b17c1746 | 87 | ifeq ($(USE_EXCEPTIONS),0) |
8c9f8f91 | 88 | __EXCEPTIONSFLAG_6 = -fno-exceptions |
b17c1746 DE |
89 | endif |
90 | ifeq ($(USE_EXCEPTIONS),1) | |
8c9f8f91 | 91 | __EXCEPTIONSFLAG_6 = |
b17c1746 DE |
92 | endif |
93 | ifeq ($(WXUNIV),1) | |
94 | __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__ | |
95 | endif | |
96 | ifeq ($(WXUNIV),1) | |
97 | __WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__ | |
250700e4 RD |
98 | endif |
99 | ifeq ($(BUILD),debug) | |
076f10e0 VS |
100 | ifeq ($(DEBUG_FLAG),default) |
101 | __DEBUG_DEFINE_p = -D__WXDEBUG__ | |
102 | endif | |
103 | endif | |
104 | ifeq ($(DEBUG_FLAG),1) | |
3b20263d VS |
105 | __DEBUG_DEFINE_p = -D__WXDEBUG__ |
106 | endif | |
107 | ifeq ($(BUILD),debug) | |
076f10e0 VS |
108 | ifeq ($(DEBUG_FLAG),default) |
109 | __DEBUG_DEFINE_p_1 = --define __WXDEBUG__ | |
110 | endif | |
111 | endif | |
112 | ifeq ($(DEBUG_FLAG),1) | |
3b20263d VS |
113 | __DEBUG_DEFINE_p_1 = --define __WXDEBUG__ |
114 | endif | |
8c9f8f91 JS |
115 | ifeq ($(USE_EXCEPTIONS),0) |
116 | __EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS | |
117 | endif | |
118 | ifeq ($(USE_EXCEPTIONS),0) | |
119 | __EXCEPTIONS_DEFINE_p_1 = --define wxNO_EXCEPTIONS | |
120 | endif | |
121 | ifeq ($(USE_RTTI),0) | |
122 | __RTTI_DEFINE_p = -DwxNO_RTTI | |
123 | endif | |
124 | ifeq ($(USE_RTTI),0) | |
125 | __RTTI_DEFINE_p_1 = --define wxNO_RTTI | |
126 | endif | |
127 | ifeq ($(USE_THREADS),0) | |
128 | __THREAD_DEFINE_p = -DwxNO_THREADS | |
129 | endif | |
130 | ifeq ($(USE_THREADS),0) | |
131 | __THREAD_DEFINE_p_1 = --define wxNO_THREADS | |
132 | endif | |
b17c1746 DE |
133 | ifeq ($(UNICODE),1) |
134 | __UNICODE_DEFINE_p = -D_UNICODE | |
135 | endif | |
136 | ifeq ($(UNICODE),1) | |
137 | __UNICODE_DEFINE_p_1 = --define _UNICODE | |
138 | endif | |
3b20263d VS |
139 | ifeq ($(SHARED),1) |
140 | __DLLFLAG_p = -DWXUSINGDLL | |
141 | endif | |
142 | ifeq ($(SHARED),1) | |
143 | __DLLFLAG_p_1 = --define WXUSINGDLL | |
144 | endif | |
b17c1746 | 145 | ifeq ($(MONOLITHIC),0) |
c4839ccf | 146 | __WXLIB_DBGRID_p = \ |
c33fae85 | 147 | -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_dbgrid |
c4839ccf JS |
148 | endif |
149 | ifeq ($(MONOLITHIC),0) | |
b92ca05a | 150 | ifeq ($(USE_ODBC),1) |
c33fae85 RN |
151 | __WXLIB_ODBC_p = \ |
152 | -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_odbc | |
b71531ad | 153 | endif |
b92ca05a | 154 | endif |
b17c1746 | 155 | ifeq ($(MONOLITHIC),0) |
c6f57ccb | 156 | __WXLIB_ADV_p = \ |
c33fae85 | 157 | -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_adv |
c6f57ccb WS |
158 | endif |
159 | ifeq ($(MONOLITHIC),0) | |
b17c1746 | 160 | __WXLIB_CORE_p = \ |
c33fae85 | 161 | -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core |
b71531ad | 162 | endif |
b17c1746 | 163 | ifeq ($(MONOLITHIC),0) |
c33fae85 RN |
164 | __WXLIB_BASE_p = \ |
165 | -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR) | |
b71531ad | 166 | endif |
b17c1746 DE |
167 | ifeq ($(MONOLITHIC),1) |
168 | __WXLIB_MONO_p = \ | |
c33fae85 | 169 | -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR) |
b71531ad | 170 | endif |
076f10e0 | 171 | ifeq ($(USE_GUI),1) |
9c2d002b | 172 | __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG) |
076f10e0 VS |
173 | endif |
174 | ifeq ($(USE_GUI),1) | |
9c2d002b | 175 | __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG) |
076f10e0 VS |
176 | endif |
177 | ifeq ($(USE_GUI),1) | |
9c2d002b | 178 | __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG) |
3b20263d | 179 | endif |
4e209a20 VS |
180 | ifeq ($(MSLU),1) |
181 | __UNICOWS_LIB_p = -lunicows | |
182 | endif | |
b17c1746 DE |
183 | ifeq ($(BUILD),debug) |
184 | ifeq ($(DEBUG_INFO),default) | |
185 | __DEBUGINFO = -g | |
3b20263d | 186 | endif |
fd9f42b6 | 187 | endif |
b17c1746 DE |
188 | ifeq ($(BUILD),release) |
189 | ifeq ($(DEBUG_INFO),default) | |
190 | __DEBUGINFO = | |
3b20263d | 191 | endif |
3b20263d | 192 | endif |
b17c1746 DE |
193 | ifeq ($(DEBUG_INFO),0) |
194 | __DEBUGINFO = | |
195 | endif | |
196 | ifeq ($(DEBUG_INFO),1) | |
197 | __DEBUGINFO = -g | |
2e9fdc04 | 198 | endif |
8c9f8f91 JS |
199 | ifeq ($(USE_THREADS),0) |
200 | __THREADSFLAG = | |
201 | endif | |
202 | ifeq ($(USE_THREADS),1) | |
203 | __THREADSFLAG = -mthreads | |
204 | endif | |
3b20263d VS |
205 | |
206 | ||
207 | all: $(OBJS) | |
208 | $(OBJS): | |
209 | -if not exist $(OBJS) mkdir $(OBJS) | |
210 | ||
211 | ### Targets: ### | |
212 | ||
2e9fdc04 | 213 | all: $(__dbtest___depname) |
3b20263d | 214 | |
3b20263d VS |
215 | clean: |
216 | -if exist $(OBJS)\*.o del $(OBJS)\*.o | |
217 | -if exist $(OBJS)\dbtest.exe del $(OBJS)\dbtest.exe | |
218 | ||
2e9fdc04 | 219 | ifeq ($(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 | 222 | endif |
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 |