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