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