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