]>
Commit | Line | Data |
---|---|---|
78808897 VZ |
1 | # ========================================================================= |
2 | # This makefile was generated by | |
3 | # Bakefile 0.2.7 (http://www.bakefile.org) | |
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 | CPPDEPS = -MT$@ -MF$@.d -MD -MP | |
16 | WX_RELEASE_NODOT = 29 | |
17 | COMPILER_PREFIX = gcc | |
18 | OBJS = \ | |
19 | $(COMPILER_PREFIX)_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) | |
20 | LIBDIRNAME = .\..\..\lib\$(COMPILER_PREFIX)_$(LIBTYPE_SUFFIX)$(CFG) | |
21 | SETUPHDIR = \ | |
22 | $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG) | |
23 | WIDGETS_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG_2) $(__THREADSFLAG) \ | |
24 | $(GCCFLAGS) -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) \ | |
25 | $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \ | |
26 | $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \ | |
27 | $(__GFXCTX_DEFINE_p) -I$(SETUPHDIR) -I.\..\..\include -W -Wall -I. \ | |
28 | $(__DLLFLAG_p) -I.\..\..\samples -DNOPCH $(__RTTIFLAG_5) \ | |
29 | $(__EXCEPTIONSFLAG_6) -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS) | |
30 | WIDGETS_OBJECTS = \ | |
31 | $(OBJS)\widgets_bmpcombobox.o \ | |
32 | $(OBJS)\widgets_button.o \ | |
33 | $(OBJS)\widgets_checkbox.o \ | |
34 | $(OBJS)\widgets_choice.o \ | |
35 | $(OBJS)\widgets_clrpicker.o \ | |
36 | $(OBJS)\widgets_combobox.o \ | |
37 | $(OBJS)\widgets_datepick.o \ | |
38 | $(OBJS)\widgets_dirctrl.o \ | |
39 | $(OBJS)\widgets_dirpicker.o \ | |
40 | $(OBJS)\widgets_editlbox.o \ | |
41 | $(OBJS)\widgets_filectrl.o \ | |
42 | $(OBJS)\widgets_filepicker.o \ | |
43 | $(OBJS)\widgets_fontpicker.o \ | |
44 | $(OBJS)\widgets_gauge.o \ | |
45 | $(OBJS)\widgets_hyperlnk.o \ | |
46 | $(OBJS)\widgets_itemcontainer.o \ | |
47 | $(OBJS)\widgets_listbox.o \ | |
48 | $(OBJS)\widgets_notebook.o \ | |
49 | $(OBJS)\widgets_odcombobox.o \ | |
50 | $(OBJS)\widgets_radiobox.o \ | |
51 | $(OBJS)\widgets_searchctrl.o \ | |
52 | $(OBJS)\widgets_slider.o \ | |
53 | $(OBJS)\widgets_spinbtn.o \ | |
54 | $(OBJS)\widgets_static.o \ | |
55 | $(OBJS)\widgets_statbmp.o \ | |
56 | $(OBJS)\widgets_textctrl.o \ | |
57 | $(OBJS)\widgets_toggle.o \ | |
58 | $(OBJS)\widgets_widgets.o \ | |
59 | $(OBJS)\widgets_sample_rc.o | |
60 | ||
61 | ### Conditionally set variables: ### | |
62 | ||
63 | ifeq ($(GCC_VERSION),2.95) | |
64 | GCCFLAGS = -fvtable-thunks | |
65 | endif | |
66 | ifeq ($(USE_GUI),0) | |
67 | PORTNAME = base | |
68 | endif | |
69 | ifeq ($(USE_GUI),1) | |
70 | PORTNAME = msw | |
71 | endif | |
72 | ifeq ($(BUILD),debug) | |
73 | WXDEBUGFLAG = d | |
74 | endif | |
75 | ifeq ($(UNICODE),1) | |
76 | WXUNICODEFLAG = u | |
77 | endif | |
78 | ifeq ($(WXUNIV),1) | |
79 | WXUNIVNAME = univ | |
80 | endif | |
81 | ifeq ($(SHARED),1) | |
82 | WXDLLFLAG = dll | |
83 | endif | |
84 | ifeq ($(SHARED),0) | |
85 | LIBTYPE_SUFFIX = lib | |
86 | endif | |
87 | ifeq ($(SHARED),1) | |
88 | LIBTYPE_SUFFIX = dll | |
89 | endif | |
90 | ifeq ($(MONOLITHIC),0) | |
91 | EXTRALIBS_FOR_BASE = | |
92 | endif | |
93 | ifeq ($(MONOLITHIC),1) | |
94 | EXTRALIBS_FOR_BASE = | |
95 | endif | |
96 | ifeq ($(BUILD),debug) | |
97 | __OPTIMIZEFLAG_2 = -O0 | |
98 | endif | |
99 | ifeq ($(BUILD),release) | |
100 | __OPTIMIZEFLAG_2 = -O2 | |
101 | endif | |
102 | ifeq ($(USE_RTTI),0) | |
103 | __RTTIFLAG_5 = -fno-rtti | |
104 | endif | |
105 | ifeq ($(USE_RTTI),1) | |
106 | __RTTIFLAG_5 = | |
107 | endif | |
108 | ifeq ($(USE_EXCEPTIONS),0) | |
109 | __EXCEPTIONSFLAG_6 = -fno-exceptions | |
110 | endif | |
111 | ifeq ($(USE_EXCEPTIONS),1) | |
112 | __EXCEPTIONSFLAG_6 = | |
113 | endif | |
114 | ifeq ($(WXUNIV),1) | |
115 | __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__ | |
116 | endif | |
117 | ifeq ($(WXUNIV),1) | |
118 | __WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__ | |
119 | endif | |
120 | ifeq ($(DEBUG_FLAG),0) | |
121 | __DEBUG_DEFINE_p = -DwxDEBUG_LEVEL=0 | |
122 | endif | |
123 | ifeq ($(DEBUG_FLAG),0) | |
124 | __DEBUG_DEFINE_p_1 = --define wxDEBUG_LEVEL=0 | |
125 | endif | |
126 | ifeq ($(USE_EXCEPTIONS),0) | |
127 | __EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS | |
128 | endif | |
129 | ifeq ($(USE_EXCEPTIONS),0) | |
130 | __EXCEPTIONS_DEFINE_p_1 = --define wxNO_EXCEPTIONS | |
131 | endif | |
132 | ifeq ($(USE_RTTI),0) | |
133 | __RTTI_DEFINE_p = -DwxNO_RTTI | |
134 | endif | |
135 | ifeq ($(USE_RTTI),0) | |
136 | __RTTI_DEFINE_p_1 = --define wxNO_RTTI | |
137 | endif | |
138 | ifeq ($(USE_THREADS),0) | |
139 | __THREAD_DEFINE_p = -DwxNO_THREADS | |
140 | endif | |
141 | ifeq ($(USE_THREADS),0) | |
142 | __THREAD_DEFINE_p_1 = --define wxNO_THREADS | |
143 | endif | |
144 | ifeq ($(UNICODE),0) | |
145 | __UNICODE_DEFINE_p = -DwxUSE_UNICODE=0 | |
146 | endif | |
147 | ifeq ($(UNICODE),1) | |
148 | __UNICODE_DEFINE_p = -D_UNICODE | |
149 | endif | |
150 | ifeq ($(UNICODE),0) | |
151 | __UNICODE_DEFINE_p_1 = --define wxUSE_UNICODE=0 | |
152 | endif | |
153 | ifeq ($(UNICODE),1) | |
154 | __UNICODE_DEFINE_p_1 = --define _UNICODE | |
155 | endif | |
156 | ifeq ($(MSLU),1) | |
157 | __MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1 | |
158 | endif | |
159 | ifeq ($(MSLU),1) | |
160 | __MSLU_DEFINE_p_1 = --define wxUSE_UNICODE_MSLU=1 | |
161 | endif | |
162 | ifeq ($(USE_GDIPLUS),1) | |
163 | __GFXCTX_DEFINE_p = -DwxUSE_GRAPHICS_CONTEXT=1 | |
164 | endif | |
165 | ifeq ($(USE_GDIPLUS),1) | |
166 | __GFXCTX_DEFINE_p_1 = --define wxUSE_GRAPHICS_CONTEXT=1 | |
167 | endif | |
168 | ifeq ($(SHARED),1) | |
169 | __DLLFLAG_p = -DWXUSINGDLL | |
170 | endif | |
171 | ifeq ($(SHARED),1) | |
172 | __DLLFLAG_p_1 = --define WXUSINGDLL | |
173 | endif | |
174 | ifeq ($(MONOLITHIC),0) | |
175 | __WXLIB_ADV_p = \ | |
176 | -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_adv | |
177 | endif | |
178 | ifeq ($(MONOLITHIC),0) | |
179 | __WXLIB_CORE_p = \ | |
180 | -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core | |
181 | endif | |
182 | ifeq ($(MONOLITHIC),0) | |
183 | __WXLIB_BASE_p = \ | |
184 | -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR) | |
185 | endif | |
186 | ifeq ($(MONOLITHIC),1) | |
187 | __WXLIB_MONO_p = \ | |
188 | -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR) | |
189 | endif | |
190 | ifeq ($(USE_GUI),1) | |
191 | __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG) | |
192 | endif | |
193 | ifeq ($(USE_GUI),1) | |
194 | __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG) | |
195 | endif | |
196 | ifeq ($(USE_GUI),1) | |
197 | __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG) | |
198 | endif | |
199 | ifeq ($(MSLU),1) | |
200 | __UNICOWS_LIB_p = -lunicows | |
201 | endif | |
202 | ifeq ($(USE_GDIPLUS),1) | |
203 | __GDIPLUS_LIB_p = -lgdiplus | |
204 | endif | |
205 | ifeq ($(BUILD),debug) | |
206 | ifeq ($(DEBUG_INFO),default) | |
207 | __DEBUGINFO = -g | |
208 | endif | |
209 | endif | |
210 | ifeq ($(BUILD),release) | |
211 | ifeq ($(DEBUG_INFO),default) | |
212 | __DEBUGINFO = | |
213 | endif | |
214 | endif | |
215 | ifeq ($(DEBUG_INFO),0) | |
216 | __DEBUGINFO = | |
217 | endif | |
218 | ifeq ($(DEBUG_INFO),1) | |
219 | __DEBUGINFO = -g | |
220 | endif | |
221 | ifeq ($(USE_THREADS),0) | |
222 | __THREADSFLAG = | |
223 | endif | |
224 | ifeq ($(USE_THREADS),1) | |
225 | __THREADSFLAG = -mthreads | |
226 | endif | |
227 | ||
228 | ||
229 | all: $(OBJS) | |
230 | $(OBJS): | |
231 | -if not exist $(OBJS) mkdir $(OBJS) | |
232 | ||
233 | ### Targets: ### | |
234 | ||
235 | all: $(OBJS)\widgets.exe | |
236 | ||
237 | clean: | |
238 | -if exist $(OBJS)\*.o del $(OBJS)\*.o | |
239 | -if exist $(OBJS)\*.d del $(OBJS)\*.d | |
240 | -if exist $(OBJS)\widgets.exe del $(OBJS)\widgets.exe | |
241 | ||
242 | $(OBJS)\widgets.exe: $(WIDGETS_OBJECTS) $(OBJS)\widgets_sample_rc.o | |
243 | $(CXX) -o $@ $(WIDGETS_OBJECTS) $(__DEBUGINFO) $(__THREADSFLAG) -L$(LIBDIRNAME) -Wl,--subsystem,windows -mwindows $(LDFLAGS) $(__WXLIB_ADV_p) $(__WXLIB_CORE_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) $(__GDIPLUS_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lwininet | |
244 | ||
245 | $(OBJS)\widgets_bmpcombobox.o: ./bmpcombobox.cpp | |
246 | $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $< | |
247 | ||
248 | $(OBJS)\widgets_button.o: ./button.cpp | |
249 | $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $< | |
250 | ||
251 | $(OBJS)\widgets_checkbox.o: ./checkbox.cpp | |
252 | $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $< | |
253 | ||
254 | $(OBJS)\widgets_choice.o: ./choice.cpp | |
255 | $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $< | |
256 | ||
257 | $(OBJS)\widgets_clrpicker.o: ./clrpicker.cpp | |
258 | $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $< | |
259 | ||
260 | $(OBJS)\widgets_combobox.o: ./combobox.cpp | |
261 | $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $< | |
262 | ||
263 | $(OBJS)\widgets_datepick.o: ./datepick.cpp | |
264 | $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $< | |
265 | ||
266 | $(OBJS)\widgets_dirctrl.o: ./dirctrl.cpp | |
267 | $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $< | |
268 | ||
269 | $(OBJS)\widgets_dirpicker.o: ./dirpicker.cpp | |
270 | $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $< | |
271 | ||
272 | $(OBJS)\widgets_editlbox.o: ./editlbox.cpp | |
273 | $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $< | |
274 | ||
275 | $(OBJS)\widgets_filectrl.o: ./filectrl.cpp | |
276 | $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $< | |
277 | ||
278 | $(OBJS)\widgets_filepicker.o: ./filepicker.cpp | |
279 | $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $< | |
280 | ||
281 | $(OBJS)\widgets_fontpicker.o: ./fontpicker.cpp | |
282 | $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $< | |
283 | ||
284 | $(OBJS)\widgets_gauge.o: ./gauge.cpp | |
285 | $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $< | |
286 | ||
287 | $(OBJS)\widgets_hyperlnk.o: ./hyperlnk.cpp | |
288 | $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $< | |
289 | ||
290 | $(OBJS)\widgets_itemcontainer.o: ./itemcontainer.cpp | |
291 | $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $< | |
292 | ||
293 | $(OBJS)\widgets_listbox.o: ./listbox.cpp | |
294 | $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $< | |
295 | ||
296 | $(OBJS)\widgets_notebook.o: ./notebook.cpp | |
297 | $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $< | |
298 | ||
299 | $(OBJS)\widgets_odcombobox.o: ./odcombobox.cpp | |
300 | $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $< | |
301 | ||
302 | $(OBJS)\widgets_radiobox.o: ./radiobox.cpp | |
303 | $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $< | |
304 | ||
305 | $(OBJS)\widgets_searchctrl.o: ./searchctrl.cpp | |
306 | $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $< | |
307 | ||
308 | $(OBJS)\widgets_slider.o: ./slider.cpp | |
309 | $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $< | |
310 | ||
311 | $(OBJS)\widgets_spinbtn.o: ./spinbtn.cpp | |
312 | $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $< | |
313 | ||
314 | $(OBJS)\widgets_static.o: ./static.cpp | |
315 | $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $< | |
316 | ||
317 | $(OBJS)\widgets_statbmp.o: ./statbmp.cpp | |
318 | $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $< | |
319 | ||
320 | $(OBJS)\widgets_textctrl.o: ./textctrl.cpp | |
321 | $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $< | |
322 | ||
323 | $(OBJS)\widgets_toggle.o: ./toggle.cpp | |
324 | $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $< | |
325 | ||
326 | $(OBJS)\widgets_widgets.o: ./widgets.cpp | |
327 | $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $< | |
328 | ||
329 | $(OBJS)\widgets_sample_rc.o: ./../sample.rc | |
330 | windres --use-temp-file -i$< -o$@ --define __WXMSW__ $(__WXUNIV_DEFINE_p_1) $(__DEBUG_DEFINE_p_1) $(__EXCEPTIONS_DEFINE_p_1) $(__RTTI_DEFINE_p_1) $(__THREAD_DEFINE_p_1) $(__UNICODE_DEFINE_p_1) $(__MSLU_DEFINE_p_1) $(__GFXCTX_DEFINE_p_1) --include-dir $(SETUPHDIR) --include-dir ./../../include --include-dir . $(__DLLFLAG_p_1) --include-dir ./../../samples --define NOPCH | |
331 | ||
332 | .PHONY: all clean | |
333 | ||
334 | ||
335 | SHELL := $(COMSPEC) | |
336 | ||
337 | # Dependencies tracking: | |
338 | -include $(OBJS)/*.d |