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