]> git.saurik.com Git - wxWidgets.git/blame - tests/makefile.gcc
Fixed wrong append() name
[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
15OBJS = \
16 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
17SETUPHDIR = \
18 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
19TEST_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG_2) $(GCCFLAGS) -DHAVE_W32API_H \
20 -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) \
21 -I.\..\include -I$(SETUPHDIR) -Wall -I. $(__DLLFLAG_p) $(CPPUNIT_CFLAGS) \
22 $(__EXCEPTIONSFLAG_4) $(__EXCEPTIONSFLAG_5) $(CPPFLAGS) $(CXXFLAGS)
23TEST_OBJECTS = \
24 $(OBJS)\test_test.o \
e70833fb 25 $(OBJS)\test_main.o \
7d5ab151 26 $(OBJS)\test_formatconverter.o \
4827cbd9 27 $(OBJS)\test_regex.o \
bc10103e 28 $(OBJS)\test_wxregex.o \
3fa86423 29 $(OBJS)\test_filename.o \
cf1014a2 30 $(OBJS)\test_filesys.o \
1b035b8c 31 $(OBJS)\test_arrays.o \
f9c3d39b 32 $(OBJS)\test_hashes.o \
7735998c 33 $(OBJS)\test_longlong.o \
1cd53e88 34 $(OBJS)\test_strings.o \
405b7d91 35 $(OBJS)\test_stdstrings.o \
387f829e 36 $(OBJS)\test_unicode.o \
cf8ee08b 37 $(OBJS)\test_crt.o \
7735998c
VS
38 $(OBJS)\test_bstream.o \
39 $(OBJS)\test_ffilestream.o \
40 $(OBJS)\test_filestream.o \
41 $(OBJS)\test_memstream.o \
816b59de 42 $(OBJS)\test_zlibstream.o \
edcccd84
WS
43 $(OBJS)\test_fontmap.o \
44 $(OBJS)\test_datetime.o
670ec357
VS
45
46### Conditionally set variables: ###
47
48ifeq ($(GCC_VERSION),2.95)
49GCCFLAGS = -fvtable-thunks
50endif
51ifeq ($(USE_GUI),0)
52PORTNAME = base
53endif
54ifeq ($(USE_GUI),1)
55PORTNAME = msw
56endif
57ifeq ($(BUILD),debug)
58ifeq ($(DEBUG_FLAG),default)
59WXDEBUGFLAG = d
60endif
61endif
62ifeq ($(DEBUG_FLAG),1)
63WXDEBUGFLAG = d
64endif
65ifeq ($(UNICODE),1)
66WXUNICODEFLAG = u
67endif
68ifeq ($(WXUNIV),1)
69WXUNIVNAME = univ
70endif
71ifeq ($(SHARED),1)
72WXDLLFLAG = dll
73endif
74ifeq ($(BUILD),debug)
75__OPTIMIZEFLAG_2 = -O0
76endif
77ifeq ($(BUILD),release)
78__OPTIMIZEFLAG_2 = -O2
79endif
80ifeq ($(USE_EXCEPTIONS),0)
81__EXCEPTIONSFLAG_4 = -fno-rtti
82endif
83ifeq ($(USE_EXCEPTIONS),1)
84__EXCEPTIONSFLAG_4 =
85endif
86ifeq ($(USE_EXCEPTIONS),0)
87__EXCEPTIONSFLAG_5 = -fno-exceptions
88endif
89ifeq ($(USE_EXCEPTIONS),1)
90__EXCEPTIONSFLAG_5 =
91endif
92ifeq ($(WXUNIV),1)
93__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
94endif
95ifeq ($(BUILD),debug)
96ifeq ($(DEBUG_FLAG),default)
97__DEBUG_DEFINE_p = -D__WXDEBUG__
98endif
99endif
100ifeq ($(DEBUG_FLAG),1)
101__DEBUG_DEFINE_p = -D__WXDEBUG__
102endif
103ifeq ($(UNICODE),1)
104__UNICODE_DEFINE_p = -D_UNICODE
105endif
106ifeq ($(SHARED),1)
107__DLLFLAG_p = -DWXUSINGDLL
108endif
109ifeq ($(MONOLITHIC),0)
110__WXLIB_BASE_p = -lwxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG)
111endif
112ifeq ($(MONOLITHIC),1)
113__WXLIB_MONO_p = \
114 -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)
115endif
116ifeq ($(USE_GUI),1)
117__LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
118endif
119ifeq ($(USE_GUI),1)
120__LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
121endif
122ifeq ($(USE_GUI),1)
123__LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
124endif
125ifeq ($(MSLU),1)
126__UNICOWS_LIB_p = -lunicows
127endif
128ifeq ($(SHARED),0)
129LIBDIRNAME = .\..\lib\gcc_lib$(CFG)
130endif
131ifeq ($(SHARED),1)
132LIBDIRNAME = .\..\lib\gcc_dll$(CFG)
133endif
134ifeq ($(BUILD),debug)
135ifeq ($(DEBUG_INFO),default)
136__DEBUGINFO = -g
137endif
138endif
139ifeq ($(BUILD),release)
140ifeq ($(DEBUG_INFO),default)
141__DEBUGINFO =
142endif
143endif
144ifeq ($(DEBUG_INFO),0)
145__DEBUGINFO =
146endif
147ifeq ($(DEBUG_INFO),1)
148__DEBUGINFO = -g
149endif
150
151
152all: $(OBJS)
153$(OBJS):
154 -if not exist $(OBJS) mkdir $(OBJS)
155
156### Targets: ###
157
387f829e 158all: $(OBJS)\test.exe data
670ec357
VS
159
160clean:
161 -if exist $(OBJS)\*.o del $(OBJS)\*.o
162 -if exist $(OBJS)\test.exe del $(OBJS)\test.exe
163
164$(OBJS)\test.exe: $(TEST_OBJECTS)
165 $(CXX) -o $@ $(TEST_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) -mthreads -L$(LIBDIRNAME) $(CPPUNIT_LIBS) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) -lwxzlib$(WXDEBUGFLAG) -lwxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG) -lwxexpat$(WXDEBUGFLAG) $(__UNICOWS_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lodbc32
166
387f829e
VS
167data:
168 if not exist $(OBJS) mkdir $(OBJS)
169 for %%f in (testdata.fc) do if not exist $(OBJS)\%%f copy .\%%f $(OBJS)
170
670ec357
VS
171$(OBJS)\test_test.o: ./test.cpp
172 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
173
174$(OBJS)\test_main.o: ./mbconv/main.cpp
175 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
176
7d5ab151
VS
177$(OBJS)\test_formatconverter.o: ./formatconverter/formatconverter.cpp
178 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
179
e70833fb
VS
180$(OBJS)\test_regex.o: ./regex/regex.cpp
181 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
182
bc10103e
VS
183$(OBJS)\test_wxregex.o: ./regex/wxregex.cpp
184 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
185
3fa86423
WS
186$(OBJS)\test_filename.o: ./filename/filename.cpp
187 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
188
4827cbd9
VS
189$(OBJS)\test_filesys.o: ./filesys/filesys.cpp
190 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
191
cf1014a2
VS
192$(OBJS)\test_arrays.o: ./arrays/arrays.cpp
193 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
194
f9c3d39b
MB
195$(OBJS)\test_hashes.o: ./hashes/hashes.cpp
196 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
197
1b035b8c
VS
198$(OBJS)\test_longlong.o: ./longlong/longlong.cpp
199 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
200
1cd53e88
VS
201$(OBJS)\test_strings.o: ./strings/strings.cpp
202 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
203
405b7d91
WS
204$(OBJS)\test_stdstrings.o: ./strings/stdstrings.cpp
205 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
206
387f829e
VS
207$(OBJS)\test_unicode.o: ./strings/unicode.cpp
208 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
209
cf8ee08b
VS
210$(OBJS)\test_crt.o: ./strings/crt.cpp
211 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
212
7735998c
VS
213$(OBJS)\test_bstream.o: ./streams/bstream.cpp
214 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
215
216$(OBJS)\test_ffilestream.o: ./streams/ffilestream.cpp
217 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
218
219$(OBJS)\test_filestream.o: ./streams/filestream.cpp
220 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
221
222$(OBJS)\test_memstream.o: ./streams/memstream.cpp
223 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
224
225$(OBJS)\test_zlibstream.o: ./streams/zlibstream.cpp
226 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
227
816b59de
VS
228$(OBJS)\test_fontmap.o: ./fontmap/fontmap.cpp
229 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
230
edcccd84
WS
231$(OBJS)\test_datetime.o: ./datetime/datetime.cpp
232 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
233
387f829e 234.PHONY: all clean data