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