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