]> git.saurik.com Git - wxWidgets.git/blob - tests/makefile.gcc
regenerated
[wxWidgets.git] / tests / makefile.gcc
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
7 include ../build/msw/config.gcc
8
9 # -------------------------------------------------------------------------
10 # Do not modify the rest of this file!
11 # -------------------------------------------------------------------------
12
13 ### Variables: ###
14
15 WX_RELEASE_NODOT = 25
16 OBJS = \
17 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
18 SETUPHDIR = \
19 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
20 TEST_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)
24 TEST_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
55 ifeq ($(GCC_VERSION),2.95)
56 GCCFLAGS = -fvtable-thunks
57 endif
58 ifeq ($(USE_GUI),0)
59 PORTNAME = base
60 endif
61 ifeq ($(USE_GUI),1)
62 PORTNAME = msw
63 endif
64 ifeq ($(BUILD),debug)
65 ifeq ($(DEBUG_FLAG),default)
66 WXDEBUGFLAG = d
67 endif
68 endif
69 ifeq ($(DEBUG_FLAG),1)
70 WXDEBUGFLAG = d
71 endif
72 ifeq ($(UNICODE),1)
73 WXUNICODEFLAG = u
74 endif
75 ifeq ($(WXUNIV),1)
76 WXUNIVNAME = univ
77 endif
78 ifeq ($(SHARED),1)
79 WXDLLFLAG = dll
80 endif
81 ifeq ($(MONOLITHIC),0)
82 EXTRALIBS_FOR_BASE =
83 endif
84 ifeq ($(MONOLITHIC),1)
85 EXTRALIBS_FOR_BASE =
86 endif
87 ifeq ($(BUILD),debug)
88 __OPTIMIZEFLAG_2 = -O0
89 endif
90 ifeq ($(BUILD),release)
91 __OPTIMIZEFLAG_2 = -O2
92 endif
93 ifeq ($(USE_EXCEPTIONS),0)
94 __EXCEPTIONSFLAG_4 = -fno-rtti
95 endif
96 ifeq ($(USE_EXCEPTIONS),1)
97 __EXCEPTIONSFLAG_4 =
98 endif
99 ifeq ($(USE_EXCEPTIONS),0)
100 __EXCEPTIONSFLAG_5 = -fno-exceptions
101 endif
102 ifeq ($(USE_EXCEPTIONS),1)
103 __EXCEPTIONSFLAG_5 =
104 endif
105 ifeq ($(WXUNIV),1)
106 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
107 endif
108 ifeq ($(BUILD),debug)
109 ifeq ($(DEBUG_FLAG),default)
110 __DEBUG_DEFINE_p = -D__WXDEBUG__
111 endif
112 endif
113 ifeq ($(DEBUG_FLAG),1)
114 __DEBUG_DEFINE_p = -D__WXDEBUG__
115 endif
116 ifeq ($(UNICODE),1)
117 __UNICODE_DEFINE_p = -D_UNICODE
118 endif
119 ifeq ($(SHARED),1)
120 __DLLFLAG_p = -DWXUSINGDLL
121 endif
122 ifeq ($(MONOLITHIC),0)
123 __WXLIB_NET_p = \
124 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_net
125 endif
126 ifeq ($(MONOLITHIC),0)
127 __WXLIB_BASE_p = \
128 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
129 endif
130 ifeq ($(MONOLITHIC),1)
131 __WXLIB_MONO_p = \
132 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
133 endif
134 ifeq ($(USE_GUI),1)
135 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
136 endif
137 ifeq ($(USE_GUI),1)
138 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
139 endif
140 ifeq ($(USE_GUI),1)
141 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
142 endif
143 ifeq ($(MSLU),1)
144 __UNICOWS_LIB_p = -lunicows
145 endif
146 ifeq ($(SHARED),0)
147 LIBDIRNAME = .\..\lib\gcc_lib$(CFG)
148 endif
149 ifeq ($(SHARED),1)
150 LIBDIRNAME = .\..\lib\gcc_dll$(CFG)
151 endif
152 ifeq ($(BUILD),debug)
153 ifeq ($(DEBUG_INFO),default)
154 __DEBUGINFO = -g
155 endif
156 endif
157 ifeq ($(BUILD),release)
158 ifeq ($(DEBUG_INFO),default)
159 __DEBUGINFO =
160 endif
161 endif
162 ifeq ($(DEBUG_INFO),0)
163 __DEBUGINFO =
164 endif
165 ifeq ($(DEBUG_INFO),1)
166 __DEBUGINFO = -g
167 endif
168
169
170 all: $(OBJS)
171 $(OBJS):
172 -if not exist $(OBJS) mkdir $(OBJS)
173
174 ### Targets: ###
175
176 all: $(OBJS)\test.exe data
177
178 clean:
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
185 data:
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