]> git.saurik.com Git - wxWidgets.git/blame - tests/makefile.gcc
wxTE_AUTO_URL for wxGTK2 from Mart R. [patch 1126182]
[wxWidgets.git] / tests / makefile.gcc
CommitLineData
670ec357
VS
1# =========================================================================
2# This makefile was generated by
cb327439 3# Bakefile 0.1.6 (http://bakefile.sourceforge.net)
670ec357
VS
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
c33fae85 15WX_RELEASE_NODOT = 25
670ec357
VS
16OBJS = \
17 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
cb327439 18LIBDIRNAME = .\..\lib\gcc_$(LIBTYPE_SUFFIX)$(CFG)
670ec357
VS
19SETUPHDIR = \
20 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
a0744a6b 21TEST_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) -DHAVE_W32API_H \
670ec357 22 -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) \
3c70014d
MW
23 -I.\..\include -I$(SETUPHDIR) -W -Wall -I. $(__DLLFLAG_p) -DwxUSE_GUI=0 \
24 $(CPPUNIT_CFLAGS) $(__EXCEPTIONSFLAG) $(__EXCEPTIONSFLAG_0) \
25 -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)
670ec357 26TEST_OBJECTS = \
8899b155 27 $(OBJS)\test_dummy.o \
670ec357 28 $(OBJS)\test_test.o \
8899b155 29 $(OBJS)\test_archivetest.o \
e6477b92 30 $(OBJS)\test_ziptest.o \
dd65d8c8 31 $(OBJS)\test_arrays.o \
113e181a
RN
32 $(OBJS)\test_datetimetest.o \
33 $(OBJS)\test_fileconftest.o \
0912690b 34 $(OBJS)\test_filekind.o \
113e181a
RN
35 $(OBJS)\test_filenametest.o \
36 $(OBJS)\test_filesystest.o \
37 $(OBJS)\test_fontmaptest.o \
38 $(OBJS)\test_formatconvertertest.o \
f9c3d39b 39 $(OBJS)\test_hashes.o \
7d9cfc54 40 $(OBJS)\test_lists.o \
113e181a
RN
41 $(OBJS)\test_longlongtest.o \
42 $(OBJS)\test_mbconvtest.o \
43 $(OBJS)\test_regextest.o \
44 $(OBJS)\test_wxregextest.o \
1cd53e88 45 $(OBJS)\test_strings.o \
405b7d91 46 $(OBJS)\test_stdstrings.o \
387f829e 47 $(OBJS)\test_unicode.o \
cf8ee08b 48 $(OBJS)\test_crt.o \
7735998c 49 $(OBJS)\test_bstream.o \
7d9cfc54 50 $(OBJS)\test_datastreamtest.o \
7735998c
VS
51 $(OBJS)\test_ffilestream.o \
52 $(OBJS)\test_filestream.o \
cb327439 53 $(OBJS)\test_largefile.o \
7735998c 54 $(OBJS)\test_memstream.o \
c33fae85 55 $(OBJS)\test_sstream.o \
8899b155 56 $(OBJS)\test_textstreamtest.o \
816b59de 57 $(OBJS)\test_zlibstream.o \
dd65d8c8 58 $(OBJS)\test_uris.o
a0744a6b
VS
59TEST_GUI_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) \
60 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
cb327439
MW
61 $(__UNICODE_DEFINE_p) -I.\..\include -I$(SETUPHDIR) -W -Wall -I. \
62 $(__DLLFLAG_p) -I.\..\samples -DNOPCH $(CPPUNIT_CFLAGS) $(__EXCEPTIONSFLAG) \
63 $(__EXCEPTIONSFLAG_0) -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)
a0744a6b
VS
64TEST_GUI_OBJECTS = \
65 $(OBJS)\test_gui_sample_rc.o \
66 $(OBJS)\test_gui_dummy.o \
98a50e20 67 $(OBJS)\test_gui_test.o \
cb327439
MW
68 $(OBJS)\test_gui_rect.o \
69 $(OBJS)\test_gui_size.o \
70 $(OBJS)\test_gui_point.o
670ec357
VS
71
72### Conditionally set variables: ###
73
74ifeq ($(GCC_VERSION),2.95)
75GCCFLAGS = -fvtable-thunks
76endif
77ifeq ($(USE_GUI),0)
78PORTNAME = base
79endif
80ifeq ($(USE_GUI),1)
81PORTNAME = msw
82endif
83ifeq ($(BUILD),debug)
84ifeq ($(DEBUG_FLAG),default)
85WXDEBUGFLAG = d
86endif
87endif
88ifeq ($(DEBUG_FLAG),1)
89WXDEBUGFLAG = d
90endif
91ifeq ($(UNICODE),1)
92WXUNICODEFLAG = u
93endif
94ifeq ($(WXUNIV),1)
95WXUNIVNAME = univ
96endif
97ifeq ($(SHARED),1)
98WXDLLFLAG = dll
99endif
cb327439
MW
100ifeq ($(SHARED),0)
101LIBTYPE_SUFFIX = lib
102endif
103ifeq ($(SHARED),1)
104LIBTYPE_SUFFIX = dll
105endif
dd65d8c8
RN
106ifeq ($(MONOLITHIC),0)
107EXTRALIBS_FOR_BASE =
108endif
109ifeq ($(MONOLITHIC),1)
110EXTRALIBS_FOR_BASE =
111endif
a0744a6b
VS
112ifeq ($(MONOLITHIC),0)
113__WXLIB_NET_p = \
114 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_net
115endif
116ifeq ($(USE_GUI),1)
117__test_gui___depname = $(OBJS)\test_gui.exe
118endif
119ifeq ($(WXUNIV),1)
120__WXUNIV_DEFINE_p_3 = --define __WXUNIVERSAL__
121endif
670ec357 122ifeq ($(BUILD),debug)
a0744a6b
VS
123ifeq ($(DEBUG_FLAG),default)
124__DEBUG_DEFINE_p_3 = --define __WXDEBUG__
125endif
126endif
127ifeq ($(DEBUG_FLAG),1)
128__DEBUG_DEFINE_p_3 = --define __WXDEBUG__
129endif
130ifeq ($(UNICODE),1)
131__UNICODE_DEFINE_p_3 = --define _UNICODE
132endif
133ifeq ($(SHARED),1)
134__DLLFLAG_p_3 = --define WXUSINGDLL
135endif
136ifeq ($(MONOLITHIC),0)
137__WXLIB_CORE_p = \
138 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
139endif
140ifeq ($(BUILD),debug)
141__OPTIMIZEFLAG = -O0
670ec357
VS
142endif
143ifeq ($(BUILD),release)
a0744a6b 144__OPTIMIZEFLAG = -O2
670ec357
VS
145endif
146ifeq ($(USE_EXCEPTIONS),0)
a0744a6b 147__EXCEPTIONSFLAG = -fno-rtti
670ec357
VS
148endif
149ifeq ($(USE_EXCEPTIONS),1)
a0744a6b 150__EXCEPTIONSFLAG =
670ec357
VS
151endif
152ifeq ($(USE_EXCEPTIONS),0)
a0744a6b 153__EXCEPTIONSFLAG_0 = -fno-exceptions
670ec357
VS
154endif
155ifeq ($(USE_EXCEPTIONS),1)
a0744a6b 156__EXCEPTIONSFLAG_0 =
670ec357
VS
157endif
158ifeq ($(WXUNIV),1)
159__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
160endif
161ifeq ($(BUILD),debug)
162ifeq ($(DEBUG_FLAG),default)
163__DEBUG_DEFINE_p = -D__WXDEBUG__
164endif
165endif
166ifeq ($(DEBUG_FLAG),1)
167__DEBUG_DEFINE_p = -D__WXDEBUG__
168endif
169ifeq ($(UNICODE),1)
170__UNICODE_DEFINE_p = -D_UNICODE
171endif
a0744a6b
VS
172ifeq ($(SHARED),1)
173__DLLFLAG_p = -DWXUSINGDLL
113e181a
RN
174endif
175ifeq ($(MONOLITHIC),0)
c33fae85
RN
176__WXLIB_BASE_p = \
177 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
670ec357
VS
178endif
179ifeq ($(MONOLITHIC),1)
180__WXLIB_MONO_p = \
c33fae85 181 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
670ec357
VS
182endif
183ifeq ($(USE_GUI),1)
9c2d002b 184__LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
670ec357
VS
185endif
186ifeq ($(USE_GUI),1)
9c2d002b 187__LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
670ec357
VS
188endif
189ifeq ($(USE_GUI),1)
9c2d002b 190__LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
670ec357
VS
191endif
192ifeq ($(MSLU),1)
193__UNICOWS_LIB_p = -lunicows
194endif
670ec357
VS
195ifeq ($(BUILD),debug)
196ifeq ($(DEBUG_INFO),default)
197__DEBUGINFO = -g
198endif
199endif
200ifeq ($(BUILD),release)
201ifeq ($(DEBUG_INFO),default)
202__DEBUGINFO =
203endif
204endif
205ifeq ($(DEBUG_INFO),0)
206__DEBUGINFO =
207endif
208ifeq ($(DEBUG_INFO),1)
209__DEBUGINFO = -g
210endif
211
212
213all: $(OBJS)
214$(OBJS):
215 -if not exist $(OBJS) mkdir $(OBJS)
216
217### Targets: ###
218
a0744a6b 219all: $(OBJS)\test.exe $(__test_gui___depname) data
670ec357
VS
220
221clean:
222 -if exist $(OBJS)\*.o del $(OBJS)\*.o
223 -if exist $(OBJS)\test.exe del $(OBJS)\test.exe
a0744a6b 224 -if exist $(OBJS)\test_gui.exe del $(OBJS)\test_gui.exe
670ec357
VS
225
226$(OBJS)\test.exe: $(TEST_OBJECTS)
113e181a 227 $(CXX) -o $@ $(TEST_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) -mthreads -L$(LIBDIRNAME) $(CPPUNIT_LIBS) $(__WXLIB_NET_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
670ec357 228
a0744a6b
VS
229ifeq ($(USE_GUI),1)
230$(OBJS)\test_gui.exe: $(TEST_GUI_OBJECTS) $(OBJS)\test_gui_sample_rc.o
98a50e20 231 $(CXX) -o $@ $(TEST_GUI_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) -mthreads -L$(LIBDIRNAME) $(CPPUNIT_LIBS) $(__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
a0744a6b
VS
232endif
233
387f829e
VS
234data:
235 if not exist $(OBJS) mkdir $(OBJS)
236 for %%f in (testdata.fc) do if not exist $(OBJS)\%%f copy .\%%f $(OBJS)
237
8899b155
RN
238$(OBJS)\test_dummy.o: ./dummy.cpp
239 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
240
670ec357
VS
241$(OBJS)\test_test.o: ./test.cpp
242 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
243
8899b155
RN
244$(OBJS)\test_archivetest.o: ./archive/archivetest.cpp
245 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
246
e6477b92
MW
247$(OBJS)\test_ziptest.o: ./archive/ziptest.cpp
248 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
249
dd65d8c8 250$(OBJS)\test_arrays.o: ./arrays/arrays.cpp
e70833fb
VS
251 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
252
113e181a 253$(OBJS)\test_datetimetest.o: ./datetime/datetimetest.cpp
bc10103e
VS
254 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
255
113e181a 256$(OBJS)\test_fileconftest.o: ./fileconf/fileconftest.cpp
ab921f5f
RN
257 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
258
0912690b 259$(OBJS)\test_filekind.o: ./filekind/filekind.cpp
3fa86423
WS
260 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
261
0912690b 262$(OBJS)\test_filenametest.o: ./filename/filenametest.cpp
4827cbd9
VS
263 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
264
0912690b 265$(OBJS)\test_filesystest.o: ./filesys/filesystest.cpp
3c70014d
MW
266 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
267
113e181a 268$(OBJS)\test_fontmaptest.o: ./fontmap/fontmaptest.cpp
dd65d8c8
RN
269 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
270
113e181a 271$(OBJS)\test_formatconvertertest.o: ./formatconverter/formatconvertertest.cpp
cf1014a2
VS
272 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
273
f9c3d39b
MB
274$(OBJS)\test_hashes.o: ./hashes/hashes.cpp
275 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
276
7d9cfc54
MB
277$(OBJS)\test_lists.o: ./lists/lists.cpp
278 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
279
113e181a 280$(OBJS)\test_longlongtest.o: ./longlong/longlongtest.cpp
1b035b8c
VS
281 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
282
113e181a 283$(OBJS)\test_mbconvtest.o: ./mbconv/mbconvtest.cpp
dd65d8c8
RN
284 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
285
113e181a 286$(OBJS)\test_regextest.o: ./regex/regextest.cpp
dd65d8c8
RN
287 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
288
113e181a 289$(OBJS)\test_wxregextest.o: ./regex/wxregextest.cpp
dd65d8c8
RN
290 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
291
1cd53e88
VS
292$(OBJS)\test_strings.o: ./strings/strings.cpp
293 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
294
405b7d91
WS
295$(OBJS)\test_stdstrings.o: ./strings/stdstrings.cpp
296 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
297
387f829e
VS
298$(OBJS)\test_unicode.o: ./strings/unicode.cpp
299 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
300
cf8ee08b
VS
301$(OBJS)\test_crt.o: ./strings/crt.cpp
302 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
303
7735998c
VS
304$(OBJS)\test_bstream.o: ./streams/bstream.cpp
305 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
306
7d9cfc54
MB
307$(OBJS)\test_datastreamtest.o: ./streams/datastreamtest.cpp
308 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
309
7735998c
VS
310$(OBJS)\test_ffilestream.o: ./streams/ffilestream.cpp
311 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
312
313$(OBJS)\test_filestream.o: ./streams/filestream.cpp
314 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
315
cb327439
MW
316$(OBJS)\test_largefile.o: ./streams/largefile.cpp
317 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
318
7735998c
VS
319$(OBJS)\test_memstream.o: ./streams/memstream.cpp
320 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
321
c33fae85
RN
322$(OBJS)\test_sstream.o: ./streams/sstream.cpp
323 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
324
8899b155
RN
325$(OBJS)\test_textstreamtest.o: ./streams/textstreamtest.cpp
326 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
327
7735998c
VS
328$(OBJS)\test_zlibstream.o: ./streams/zlibstream.cpp
329 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
330
dd65d8c8 331$(OBJS)\test_uris.o: ./uris/uris.cpp
edcccd84
WS
332 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
333
a0744a6b 334$(OBJS)\test_gui_sample_rc.o: ./../samples/sample.rc
cb327439 335 windres --use-temp-file -i$< -o$@ --define __WXMSW__ $(__WXUNIV_DEFINE_p_3) $(__DEBUG_DEFINE_p_3) $(__UNICODE_DEFINE_p_3) --include-dir ./../include --include-dir $(SETUPHDIR) --include-dir . $(__DLLFLAG_p_3) --include-dir ./../samples
a0744a6b
VS
336
337$(OBJS)\test_gui_dummy.o: ./dummy.cpp
338 $(CXX) -c -o $@ $(TEST_GUI_CXXFLAGS) $<
339
340$(OBJS)\test_gui_test.o: ./test.cpp
341 $(CXX) -c -o $@ $(TEST_GUI_CXXFLAGS) $<
342
98a50e20
VS
343$(OBJS)\test_gui_rect.o: ./geometry/rect.cpp
344 $(CXX) -c -o $@ $(TEST_GUI_CXXFLAGS) $<
345
cb327439
MW
346$(OBJS)\test_gui_size.o: ./geometry/size.cpp
347 $(CXX) -c -o $@ $(TEST_GUI_CXXFLAGS) $<
348
349$(OBJS)\test_gui_point.o: ./geometry/point.cpp
350 $(CXX) -c -o $@ $(TEST_GUI_CXXFLAGS) $<
351
387f829e 352.PHONY: all clean data
cb327439 353