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