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