]>
Commit | Line | Data |
---|---|---|
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_test.o \ | |
26 | $(OBJS)\test_main.o \ | |
27 | $(OBJS)\test_formatconverter.o \ | |
28 | $(OBJS)\test_regex.o \ | |
29 | $(OBJS)\test_wxregex.o \ | |
30 | $(OBJS)\test_fileconf.o \ | |
31 | $(OBJS)\test_filename.o \ | |
32 | $(OBJS)\test_filesys.o \ | |
33 | $(OBJS)\test_arrays.o \ | |
34 | $(OBJS)\test_hashes.o \ | |
35 | $(OBJS)\test_longlong.o \ | |
36 | $(OBJS)\test_strings.o \ | |
37 | $(OBJS)\test_stdstrings.o \ | |
38 | $(OBJS)\test_unicode.o \ | |
39 | $(OBJS)\test_crt.o \ | |
40 | $(OBJS)\test_bstream.o \ | |
41 | $(OBJS)\test_ffilestream.o \ | |
42 | $(OBJS)\test_filestream.o \ | |
43 | $(OBJS)\test_memstream.o \ | |
44 | $(OBJS)\test_sstream.o \ | |
45 | $(OBJS)\test_zlibstream.o \ | |
46 | $(OBJS)\test_fontmap.o \ | |
47 | $(OBJS)\test_datetime.o | |
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) | |
113 | __WXLIB_BASE_p = \ | |
114 | -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR) | |
115 | endif | |
116 | ifeq ($(MONOLITHIC),1) | |
117 | __WXLIB_MONO_p = \ | |
118 | -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR) | |
119 | endif | |
120 | ifeq ($(USE_GUI),1) | |
121 | __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG) | |
122 | endif | |
123 | ifeq ($(USE_GUI),1) | |
124 | __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG) | |
125 | endif | |
126 | ifeq ($(USE_GUI),1) | |
127 | __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG) | |
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 | ||
162 | all: $(OBJS)\test.exe data | |
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) | |
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 | |
170 | ||
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 | ||
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 | ||
181 | $(OBJS)\test_formatconverter.o: ./formatconverter/formatconverter.cpp | |
182 | $(CXX) -c -o $@ $(TEST_CXXFLAGS) $< | |
183 | ||
184 | $(OBJS)\test_regex.o: ./regex/regex.cpp | |
185 | $(CXX) -c -o $@ $(TEST_CXXFLAGS) $< | |
186 | ||
187 | $(OBJS)\test_wxregex.o: ./regex/wxregex.cpp | |
188 | $(CXX) -c -o $@ $(TEST_CXXFLAGS) $< | |
189 | ||
190 | $(OBJS)\test_fileconf.o: ./fileconf/fileconf.cpp | |
191 | $(CXX) -c -o $@ $(TEST_CXXFLAGS) $< | |
192 | ||
193 | $(OBJS)\test_filename.o: ./filename/filename.cpp | |
194 | $(CXX) -c -o $@ $(TEST_CXXFLAGS) $< | |
195 | ||
196 | $(OBJS)\test_filesys.o: ./filesys/filesys.cpp | |
197 | $(CXX) -c -o $@ $(TEST_CXXFLAGS) $< | |
198 | ||
199 | $(OBJS)\test_arrays.o: ./arrays/arrays.cpp | |
200 | $(CXX) -c -o $@ $(TEST_CXXFLAGS) $< | |
201 | ||
202 | $(OBJS)\test_hashes.o: ./hashes/hashes.cpp | |
203 | $(CXX) -c -o $@ $(TEST_CXXFLAGS) $< | |
204 | ||
205 | $(OBJS)\test_longlong.o: ./longlong/longlong.cpp | |
206 | $(CXX) -c -o $@ $(TEST_CXXFLAGS) $< | |
207 | ||
208 | $(OBJS)\test_strings.o: ./strings/strings.cpp | |
209 | $(CXX) -c -o $@ $(TEST_CXXFLAGS) $< | |
210 | ||
211 | $(OBJS)\test_stdstrings.o: ./strings/stdstrings.cpp | |
212 | $(CXX) -c -o $@ $(TEST_CXXFLAGS) $< | |
213 | ||
214 | $(OBJS)\test_unicode.o: ./strings/unicode.cpp | |
215 | $(CXX) -c -o $@ $(TEST_CXXFLAGS) $< | |
216 | ||
217 | $(OBJS)\test_crt.o: ./strings/crt.cpp | |
218 | $(CXX) -c -o $@ $(TEST_CXXFLAGS) $< | |
219 | ||
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 | ||
232 | $(OBJS)\test_sstream.o: ./streams/sstream.cpp | |
233 | $(CXX) -c -o $@ $(TEST_CXXFLAGS) $< | |
234 | ||
235 | $(OBJS)\test_zlibstream.o: ./streams/zlibstream.cpp | |
236 | $(CXX) -c -o $@ $(TEST_CXXFLAGS) $< | |
237 | ||
238 | $(OBJS)\test_fontmap.o: ./fontmap/fontmap.cpp | |
239 | $(CXX) -c -o $@ $(TEST_CXXFLAGS) $< | |
240 | ||
241 | $(OBJS)\test_datetime.o: ./datetime/datetime.cpp | |
242 | $(CXX) -c -o $@ $(TEST_CXXFLAGS) $< | |
243 | ||
244 | .PHONY: all clean data |