]> git.saurik.com Git - wxWidgets.git/blame - tests/makefile.gcc
wxMediaCtrl unix port with gstreamer usable version :)
[wxWidgets.git] / tests / makefile.gcc
CommitLineData
670ec357
VS
1# =========================================================================
2# This makefile was generated by
cb327439 3# Bakefile 0.1.6 (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)
cb327439 18LIBDIRNAME = .\..\lib\gcc_$(LIBTYPE_SUFFIX)$(CFG)
670ec357
VS
19SETUPHDIR = \
20 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
a0744a6b 21TEST_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) -DHAVE_W32API_H \
670ec357 22 -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) \
cb327439
MW
23 -I.\..\include -I$(SETUPHDIR) -W -Wall -I. $(__DLLFLAG_p) $(CPPUNIT_CFLAGS) \
24 $(__EXCEPTIONSFLAG) $(__EXCEPTIONSFLAG_0) -Wno-ctor-dtor-privacy \
25 $(CPPFLAGS) $(CXXFLAGS)
670ec357 26TEST_OBJECTS = \
8899b155 27 $(OBJS)\test_dummy.o \
670ec357 28 $(OBJS)\test_test.o \
8899b155 29 $(OBJS)\test_archivetest.o \
dd65d8c8 30 $(OBJS)\test_arrays.o \
113e181a
RN
31 $(OBJS)\test_datetimetest.o \
32 $(OBJS)\test_fileconftest.o \
33 $(OBJS)\test_filenametest.o \
34 $(OBJS)\test_filesystest.o \
35 $(OBJS)\test_fontmaptest.o \
36 $(OBJS)\test_formatconvertertest.o \
f9c3d39b 37 $(OBJS)\test_hashes.o \
7d9cfc54 38 $(OBJS)\test_lists.o \
113e181a
RN
39 $(OBJS)\test_longlongtest.o \
40 $(OBJS)\test_mbconvtest.o \
41 $(OBJS)\test_regextest.o \
42 $(OBJS)\test_wxregextest.o \
1cd53e88 43 $(OBJS)\test_strings.o \
405b7d91 44 $(OBJS)\test_stdstrings.o \
387f829e 45 $(OBJS)\test_unicode.o \
cf8ee08b 46 $(OBJS)\test_crt.o \
7735998c 47 $(OBJS)\test_bstream.o \
7d9cfc54 48 $(OBJS)\test_datastreamtest.o \
7735998c
VS
49 $(OBJS)\test_ffilestream.o \
50 $(OBJS)\test_filestream.o \
cb327439 51 $(OBJS)\test_largefile.o \
7735998c 52 $(OBJS)\test_memstream.o \
c33fae85 53 $(OBJS)\test_sstream.o \
8899b155 54 $(OBJS)\test_textstreamtest.o \
816b59de 55 $(OBJS)\test_zlibstream.o \
dd65d8c8 56 $(OBJS)\test_uris.o
a0744a6b
VS
57TEST_GUI_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) \
58 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
cb327439
MW
59 $(__UNICODE_DEFINE_p) -I.\..\include -I$(SETUPHDIR) -W -Wall -I. \
60 $(__DLLFLAG_p) -I.\..\samples -DNOPCH $(CPPUNIT_CFLAGS) $(__EXCEPTIONSFLAG) \
61 $(__EXCEPTIONSFLAG_0) -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)
a0744a6b
VS
62TEST_GUI_OBJECTS = \
63 $(OBJS)\test_gui_sample_rc.o \
64 $(OBJS)\test_gui_dummy.o \
98a50e20 65 $(OBJS)\test_gui_test.o \
cb327439
MW
66 $(OBJS)\test_gui_rect.o \
67 $(OBJS)\test_gui_size.o \
68 $(OBJS)\test_gui_point.o
670ec357
VS
69
70### Conditionally set variables: ###
71
72ifeq ($(GCC_VERSION),2.95)
73GCCFLAGS = -fvtable-thunks
74endif
75ifeq ($(USE_GUI),0)
76PORTNAME = base
77endif
78ifeq ($(USE_GUI),1)
79PORTNAME = msw
80endif
81ifeq ($(BUILD),debug)
82ifeq ($(DEBUG_FLAG),default)
83WXDEBUGFLAG = d
84endif
85endif
86ifeq ($(DEBUG_FLAG),1)
87WXDEBUGFLAG = d
88endif
89ifeq ($(UNICODE),1)
90WXUNICODEFLAG = u
91endif
92ifeq ($(WXUNIV),1)
93WXUNIVNAME = univ
94endif
95ifeq ($(SHARED),1)
96WXDLLFLAG = dll
97endif
cb327439
MW
98ifeq ($(SHARED),0)
99LIBTYPE_SUFFIX = lib
100endif
101ifeq ($(SHARED),1)
102LIBTYPE_SUFFIX = dll
103endif
dd65d8c8
RN
104ifeq ($(MONOLITHIC),0)
105EXTRALIBS_FOR_BASE =
106endif
107ifeq ($(MONOLITHIC),1)
108EXTRALIBS_FOR_BASE =
109endif
a0744a6b
VS
110ifeq ($(MONOLITHIC),0)
111__WXLIB_NET_p = \
112 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_net
113endif
114ifeq ($(USE_GUI),1)
115__test_gui___depname = $(OBJS)\test_gui.exe
116endif
117ifeq ($(WXUNIV),1)
118__WXUNIV_DEFINE_p_3 = --define __WXUNIVERSAL__
119endif
670ec357 120ifeq ($(BUILD),debug)
a0744a6b
VS
121ifeq ($(DEBUG_FLAG),default)
122__DEBUG_DEFINE_p_3 = --define __WXDEBUG__
123endif
124endif
125ifeq ($(DEBUG_FLAG),1)
126__DEBUG_DEFINE_p_3 = --define __WXDEBUG__
127endif
128ifeq ($(UNICODE),1)
129__UNICODE_DEFINE_p_3 = --define _UNICODE
130endif
131ifeq ($(SHARED),1)
132__DLLFLAG_p_3 = --define WXUSINGDLL
133endif
134ifeq ($(MONOLITHIC),0)
135__WXLIB_CORE_p = \
136 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
137endif
138ifeq ($(BUILD),debug)
139__OPTIMIZEFLAG = -O0
670ec357
VS
140endif
141ifeq ($(BUILD),release)
a0744a6b 142__OPTIMIZEFLAG = -O2
670ec357
VS
143endif
144ifeq ($(USE_EXCEPTIONS),0)
a0744a6b 145__EXCEPTIONSFLAG = -fno-rtti
670ec357
VS
146endif
147ifeq ($(USE_EXCEPTIONS),1)
a0744a6b 148__EXCEPTIONSFLAG =
670ec357
VS
149endif
150ifeq ($(USE_EXCEPTIONS),0)
a0744a6b 151__EXCEPTIONSFLAG_0 = -fno-exceptions
670ec357
VS
152endif
153ifeq ($(USE_EXCEPTIONS),1)
a0744a6b 154__EXCEPTIONSFLAG_0 =
670ec357
VS
155endif
156ifeq ($(WXUNIV),1)
157__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
158endif
159ifeq ($(BUILD),debug)
160ifeq ($(DEBUG_FLAG),default)
161__DEBUG_DEFINE_p = -D__WXDEBUG__
162endif
163endif
164ifeq ($(DEBUG_FLAG),1)
165__DEBUG_DEFINE_p = -D__WXDEBUG__
166endif
167ifeq ($(UNICODE),1)
168__UNICODE_DEFINE_p = -D_UNICODE
169endif
a0744a6b
VS
170ifeq ($(SHARED),1)
171__DLLFLAG_p = -DWXUSINGDLL
113e181a
RN
172endif
173ifeq ($(MONOLITHIC),0)
c33fae85
RN
174__WXLIB_BASE_p = \
175 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
670ec357
VS
176endif
177ifeq ($(MONOLITHIC),1)
178__WXLIB_MONO_p = \
c33fae85 179 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
670ec357
VS
180endif
181ifeq ($(USE_GUI),1)
9c2d002b 182__LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
670ec357
VS
183endif
184ifeq ($(USE_GUI),1)
9c2d002b 185__LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
670ec357
VS
186endif
187ifeq ($(USE_GUI),1)
9c2d002b 188__LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
670ec357
VS
189endif
190ifeq ($(MSLU),1)
191__UNICOWS_LIB_p = -lunicows
192endif
670ec357
VS
193ifeq ($(BUILD),debug)
194ifeq ($(DEBUG_INFO),default)
195__DEBUGINFO = -g
196endif
197endif
198ifeq ($(BUILD),release)
199ifeq ($(DEBUG_INFO),default)
200__DEBUGINFO =
201endif
202endif
203ifeq ($(DEBUG_INFO),0)
204__DEBUGINFO =
205endif
206ifeq ($(DEBUG_INFO),1)
207__DEBUGINFO = -g
208endif
209
210
211all: $(OBJS)
212$(OBJS):
213 -if not exist $(OBJS) mkdir $(OBJS)
214
215### Targets: ###
216
a0744a6b 217all: $(OBJS)\test.exe $(__test_gui___depname) data
670ec357
VS
218
219clean:
220 -if exist $(OBJS)\*.o del $(OBJS)\*.o
221 -if exist $(OBJS)\test.exe del $(OBJS)\test.exe
a0744a6b 222 -if exist $(OBJS)\test_gui.exe del $(OBJS)\test_gui.exe
670ec357
VS
223
224$(OBJS)\test.exe: $(TEST_OBJECTS)
113e181a 225 $(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 226
a0744a6b
VS
227ifeq ($(USE_GUI),1)
228$(OBJS)\test_gui.exe: $(TEST_GUI_OBJECTS) $(OBJS)\test_gui_sample_rc.o
98a50e20 229 $(CXX) -o $@ $(TEST_GUI_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) -mthreads -L$(LIBDIRNAME) $(CPPUNIT_LIBS) $(__WXLIB_CORE_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
a0744a6b
VS
230endif
231
387f829e
VS
232data:
233 if not exist $(OBJS) mkdir $(OBJS)
234 for %%f in (testdata.fc) do if not exist $(OBJS)\%%f copy .\%%f $(OBJS)
235
8899b155
RN
236$(OBJS)\test_dummy.o: ./dummy.cpp
237 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
238
670ec357
VS
239$(OBJS)\test_test.o: ./test.cpp
240 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
241
8899b155
RN
242$(OBJS)\test_archivetest.o: ./archive/archivetest.cpp
243 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
244
dd65d8c8 245$(OBJS)\test_arrays.o: ./arrays/arrays.cpp
e70833fb
VS
246 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
247
113e181a 248$(OBJS)\test_datetimetest.o: ./datetime/datetimetest.cpp
bc10103e
VS
249 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
250
113e181a 251$(OBJS)\test_fileconftest.o: ./fileconf/fileconftest.cpp
ab921f5f
RN
252 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
253
113e181a 254$(OBJS)\test_filenametest.o: ./filename/filenametest.cpp
3fa86423
WS
255 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
256
113e181a 257$(OBJS)\test_filesystest.o: ./filesys/filesystest.cpp
4827cbd9
VS
258 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
259
113e181a 260$(OBJS)\test_fontmaptest.o: ./fontmap/fontmaptest.cpp
dd65d8c8
RN
261 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
262
113e181a 263$(OBJS)\test_formatconvertertest.o: ./formatconverter/formatconvertertest.cpp
cf1014a2
VS
264 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
265
f9c3d39b
MB
266$(OBJS)\test_hashes.o: ./hashes/hashes.cpp
267 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
268
7d9cfc54
MB
269$(OBJS)\test_lists.o: ./lists/lists.cpp
270 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
271
113e181a 272$(OBJS)\test_longlongtest.o: ./longlong/longlongtest.cpp
1b035b8c
VS
273 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
274
113e181a 275$(OBJS)\test_mbconvtest.o: ./mbconv/mbconvtest.cpp
dd65d8c8
RN
276 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
277
113e181a 278$(OBJS)\test_regextest.o: ./regex/regextest.cpp
dd65d8c8
RN
279 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
280
113e181a 281$(OBJS)\test_wxregextest.o: ./regex/wxregextest.cpp
dd65d8c8
RN
282 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
283
1cd53e88
VS
284$(OBJS)\test_strings.o: ./strings/strings.cpp
285 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
286
405b7d91
WS
287$(OBJS)\test_stdstrings.o: ./strings/stdstrings.cpp
288 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
289
387f829e
VS
290$(OBJS)\test_unicode.o: ./strings/unicode.cpp
291 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
292
cf8ee08b
VS
293$(OBJS)\test_crt.o: ./strings/crt.cpp
294 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
295
7735998c
VS
296$(OBJS)\test_bstream.o: ./streams/bstream.cpp
297 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
298
7d9cfc54
MB
299$(OBJS)\test_datastreamtest.o: ./streams/datastreamtest.cpp
300 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
301
7735998c
VS
302$(OBJS)\test_ffilestream.o: ./streams/ffilestream.cpp
303 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
304
305$(OBJS)\test_filestream.o: ./streams/filestream.cpp
306 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
307
cb327439
MW
308$(OBJS)\test_largefile.o: ./streams/largefile.cpp
309 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
310
7735998c
VS
311$(OBJS)\test_memstream.o: ./streams/memstream.cpp
312 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
313
c33fae85
RN
314$(OBJS)\test_sstream.o: ./streams/sstream.cpp
315 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
316
8899b155
RN
317$(OBJS)\test_textstreamtest.o: ./streams/textstreamtest.cpp
318 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
319
7735998c
VS
320$(OBJS)\test_zlibstream.o: ./streams/zlibstream.cpp
321 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
322
dd65d8c8 323$(OBJS)\test_uris.o: ./uris/uris.cpp
edcccd84
WS
324 $(CXX) -c -o $@ $(TEST_CXXFLAGS) $<
325
a0744a6b 326$(OBJS)\test_gui_sample_rc.o: ./../samples/sample.rc
cb327439 327 windres --use-temp-file -i$< -o$@ --define __WXMSW__ $(__WXUNIV_DEFINE_p_3) $(__DEBUG_DEFINE_p_3) $(__UNICODE_DEFINE_p_3) --include-dir ./../include --include-dir $(SETUPHDIR) --include-dir . $(__DLLFLAG_p_3) --include-dir ./../samples
a0744a6b
VS
328
329$(OBJS)\test_gui_dummy.o: ./dummy.cpp
330 $(CXX) -c -o $@ $(TEST_GUI_CXXFLAGS) $<
331
332$(OBJS)\test_gui_test.o: ./test.cpp
333 $(CXX) -c -o $@ $(TEST_GUI_CXXFLAGS) $<
334
98a50e20
VS
335$(OBJS)\test_gui_rect.o: ./geometry/rect.cpp
336 $(CXX) -c -o $@ $(TEST_GUI_CXXFLAGS) $<
337
cb327439
MW
338$(OBJS)\test_gui_size.o: ./geometry/size.cpp
339 $(CXX) -c -o $@ $(TEST_GUI_CXXFLAGS) $<
340
341$(OBJS)\test_gui_point.o: ./geometry/point.cpp
342 $(CXX) -c -o $@ $(TEST_GUI_CXXFLAGS) $<
343
387f829e 344.PHONY: all clean data
cb327439 345