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