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