]> git.saurik.com Git - wxWidgets.git/blame_incremental - tests/makefile.gcc
Fixes for file dialog. No longer spits out
[wxWidgets.git] / tests / makefile.gcc
... / ...
CommitLineData
1# =========================================================================
2# This makefile was generated by
3# Bakefile 0.1.4 (http://bakefile.sourceforge.net)
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
15WX_RELEASE_NODOT = 25
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_dummy.o \
26 $(OBJS)\test_test.o \
27 $(OBJS)\test_archivetest.o \
28 $(OBJS)\test_arrays.o \
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 \
35 $(OBJS)\test_hashes.o \
36 $(OBJS)\test_longlongtest.o \
37 $(OBJS)\test_mbconvtest.o \
38 $(OBJS)\test_regextest.o \
39 $(OBJS)\test_wxregextest.o \
40 $(OBJS)\test_strings.o \
41 $(OBJS)\test_stdstrings.o \
42 $(OBJS)\test_unicode.o \
43 $(OBJS)\test_crt.o \
44 $(OBJS)\test_bstream.o \
45 $(OBJS)\test_ffilestream.o \
46 $(OBJS)\test_filestream.o \
47 $(OBJS)\test_memstream.o \
48 $(OBJS)\test_sstream.o \
49 $(OBJS)\test_textstreamtest.o \
50 $(OBJS)\test_zlibstream.o \
51 $(OBJS)\test_uris.o
52
53### Conditionally set variables: ###
54
55ifeq ($(GCC_VERSION),2.95)
56GCCFLAGS = -fvtable-thunks
57endif
58ifeq ($(USE_GUI),0)
59PORTNAME = base
60endif
61ifeq ($(USE_GUI),1)
62PORTNAME = msw
63endif
64ifeq ($(BUILD),debug)
65ifeq ($(DEBUG_FLAG),default)
66WXDEBUGFLAG = d
67endif
68endif
69ifeq ($(DEBUG_FLAG),1)
70WXDEBUGFLAG = d
71endif
72ifeq ($(UNICODE),1)
73WXUNICODEFLAG = u
74endif
75ifeq ($(WXUNIV),1)
76WXUNIVNAME = univ
77endif
78ifeq ($(SHARED),1)
79WXDLLFLAG = dll
80endif
81ifeq ($(MONOLITHIC),0)
82EXTRALIBS_FOR_BASE =
83endif
84ifeq ($(MONOLITHIC),1)
85EXTRALIBS_FOR_BASE =
86endif
87ifeq ($(BUILD),debug)
88__OPTIMIZEFLAG_2 = -O0
89endif
90ifeq ($(BUILD),release)
91__OPTIMIZEFLAG_2 = -O2
92endif
93ifeq ($(USE_EXCEPTIONS),0)
94__EXCEPTIONSFLAG_4 = -fno-rtti
95endif
96ifeq ($(USE_EXCEPTIONS),1)
97__EXCEPTIONSFLAG_4 =
98endif
99ifeq ($(USE_EXCEPTIONS),0)
100__EXCEPTIONSFLAG_5 = -fno-exceptions
101endif
102ifeq ($(USE_EXCEPTIONS),1)
103__EXCEPTIONSFLAG_5 =
104endif
105ifeq ($(WXUNIV),1)
106__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
107endif
108ifeq ($(BUILD),debug)
109ifeq ($(DEBUG_FLAG),default)
110__DEBUG_DEFINE_p = -D__WXDEBUG__
111endif
112endif
113ifeq ($(DEBUG_FLAG),1)
114__DEBUG_DEFINE_p = -D__WXDEBUG__
115endif
116ifeq ($(UNICODE),1)
117__UNICODE_DEFINE_p = -D_UNICODE
118endif
119ifeq ($(SHARED),1)
120__DLLFLAG_p = -DWXUSINGDLL
121endif
122ifeq ($(MONOLITHIC),0)
123__WXLIB_NET_p = \
124 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_net
125endif
126ifeq ($(MONOLITHIC),0)
127__WXLIB_BASE_p = \
128 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
129endif
130ifeq ($(MONOLITHIC),1)
131__WXLIB_MONO_p = \
132 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
133endif
134ifeq ($(USE_GUI),1)
135__LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
136endif
137ifeq ($(USE_GUI),1)
138__LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
139endif
140ifeq ($(USE_GUI),1)
141__LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
142endif
143ifeq ($(MSLU),1)
144__UNICOWS_LIB_p = -lunicows
145endif
146ifeq ($(SHARED),0)
147LIBDIRNAME = .\..\lib\gcc_lib$(CFG)
148endif
149ifeq ($(SHARED),1)
150LIBDIRNAME = .\..\lib\gcc_dll$(CFG)
151endif
152ifeq ($(BUILD),debug)
153ifeq ($(DEBUG_INFO),default)
154__DEBUGINFO = -g
155endif
156endif
157ifeq ($(BUILD),release)
158ifeq ($(DEBUG_INFO),default)
159__DEBUGINFO =
160endif
161endif
162ifeq ($(DEBUG_INFO),0)
163__DEBUGINFO =
164endif
165ifeq ($(DEBUG_INFO),1)
166__DEBUGINFO = -g
167endif
168
169
170all: $(OBJS)
171$(OBJS):
172 -if not exist $(OBJS) mkdir $(OBJS)
173
174### Targets: ###
175
176all: $(OBJS)\test.exe data
177
178clean:
179 -if exist $(OBJS)\*.o del $(OBJS)\*.o
180 -if exist $(OBJS)\test.exe del $(OBJS)\test.exe
181
182$(OBJS)\test.exe: $(TEST_OBJECTS)
183 $(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
184
185data:
186 if not exist $(OBJS) mkdir $(OBJS)
187 for %%f in (testdata.fc) do if not exist $(OBJS)\%%f copy .\%%f $(OBJS)
188
189$(OBJS)\test_dummy.o: ./dummy.cpp
190 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
191
192$(OBJS)\test_test.o: ./test.cpp
193 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
194
195$(OBJS)\test_archivetest.o: ./archive/archivetest.cpp
196 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
197
198$(OBJS)\test_arrays.o: ./arrays/arrays.cpp
199 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
200
201$(OBJS)\test_datetimetest.o: ./datetime/datetimetest.cpp
202 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
203
204$(OBJS)\test_fileconftest.o: ./fileconf/fileconftest.cpp
205 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
206
207$(OBJS)\test_filenametest.o: ./filename/filenametest.cpp
208 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
209
210$(OBJS)\test_filesystest.o: ./filesys/filesystest.cpp
211 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
212
213$(OBJS)\test_fontmaptest.o: ./fontmap/fontmaptest.cpp
214 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
215
216$(OBJS)\test_formatconvertertest.o: ./formatconverter/formatconvertertest.cpp
217 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
218
219$(OBJS)\test_hashes.o: ./hashes/hashes.cpp
220 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
221
222$(OBJS)\test_longlongtest.o: ./longlong/longlongtest.cpp
223 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
224
225$(OBJS)\test_mbconvtest.o: ./mbconv/mbconvtest.cpp
226 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
227
228$(OBJS)\test_regextest.o: ./regex/regextest.cpp
229 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
230
231$(OBJS)\test_wxregextest.o: ./regex/wxregextest.cpp
232 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
233
234$(OBJS)\test_strings.o: ./strings/strings.cpp
235 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
236
237$(OBJS)\test_stdstrings.o: ./strings/stdstrings.cpp
238 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
239
240$(OBJS)\test_unicode.o: ./strings/unicode.cpp
241 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
242
243$(OBJS)\test_crt.o: ./strings/crt.cpp
244 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
245
246$(OBJS)\test_bstream.o: ./streams/bstream.cpp
247 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
248
249$(OBJS)\test_ffilestream.o: ./streams/ffilestream.cpp
250 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
251
252$(OBJS)\test_filestream.o: ./streams/filestream.cpp
253 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
254
255$(OBJS)\test_memstream.o: ./streams/memstream.cpp
256 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
257
258$(OBJS)\test_sstream.o: ./streams/sstream.cpp
259 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
260
261$(OBJS)\test_textstreamtest.o: ./streams/textstreamtest.cpp
262 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
263
264$(OBJS)\test_zlibstream.o: ./streams/zlibstream.cpp
265 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
266
267$(OBJS)\test_uris.o: ./uris/uris.cpp
268 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
269
270.PHONY: all clean data