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