1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.2.3 (http://www.bakefile.org)
4 # Do not modify, all changes will be overwritten!
5 # =========================================================================
7 include ../../build/msw/config.gcc
9 # -------------------------------------------------------------------------
10 # Do not modify the rest of this file!
11 # -------------------------------------------------------------------------
15 CPPDEPS = -MT$@ -MF$@.d -MD
19 $(COMPILER_PREFIX)_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
20 LIBDIRNAME = .\..\..\lib\$(COMPILER_PREFIX)_$(LIBTYPE_SUFFIX)$(CFG)
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)
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_filectrl.o \
41 $(OBJS)\widgets_filepicker.o \
42 $(OBJS)\widgets_fontpicker.o \
43 $(OBJS)\widgets_gauge.o \
44 $(OBJS)\widgets_hyperlnk.o \
45 $(OBJS)\widgets_itemcontainer.o \
46 $(OBJS)\widgets_listbox.o \
47 $(OBJS)\widgets_notebook.o \
48 $(OBJS)\widgets_odcombobox.o \
49 $(OBJS)\widgets_radiobox.o \
50 $(OBJS)\widgets_searchctrl.o \
51 $(OBJS)\widgets_slider.o \
52 $(OBJS)\widgets_spinbtn.o \
53 $(OBJS)\widgets_static.o \
54 $(OBJS)\widgets_statbmp.o \
55 $(OBJS)\widgets_textctrl.o \
56 $(OBJS)\widgets_toggle.o \
57 $(OBJS)\widgets_widgets.o \
58 $(OBJS)\widgets_sample_rc.o
60 ### Conditionally set variables: ###
62 ifeq ($(GCC_VERSION),2.95)
63 GCCFLAGS = -fvtable-thunks
72 ifeq ($(DEBUG_FLAG),default)
76 ifeq ($(DEBUG_FLAG),1)
94 ifeq ($(MONOLITHIC),0)
97 ifeq ($(MONOLITHIC),1)
100 ifeq ($(BUILD),debug)
101 __OPTIMIZEFLAG_2 = -O0
103 ifeq ($(BUILD),release)
104 __OPTIMIZEFLAG_2 = -O2
107 __RTTIFLAG_5 = -fno-rtti
112 ifeq ($(USE_EXCEPTIONS),0)
113 __EXCEPTIONSFLAG_6 = -fno-exceptions
115 ifeq ($(USE_EXCEPTIONS),1)
119 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
122 __WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__
124 ifeq ($(BUILD),debug)
125 ifeq ($(DEBUG_FLAG),default)
126 __DEBUG_DEFINE_p = -D__WXDEBUG__
129 ifeq ($(DEBUG_FLAG),1)
130 __DEBUG_DEFINE_p = -D__WXDEBUG__
132 ifeq ($(BUILD),debug)
133 ifeq ($(DEBUG_FLAG),default)
134 __DEBUG_DEFINE_p_1 = --define __WXDEBUG__
137 ifeq ($(DEBUG_FLAG),1)
138 __DEBUG_DEFINE_p_1 = --define __WXDEBUG__
140 ifeq ($(USE_EXCEPTIONS),0)
141 __EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
143 ifeq ($(USE_EXCEPTIONS),0)
144 __EXCEPTIONS_DEFINE_p_1 = --define wxNO_EXCEPTIONS
147 __RTTI_DEFINE_p = -DwxNO_RTTI
150 __RTTI_DEFINE_p_1 = --define wxNO_RTTI
152 ifeq ($(USE_THREADS),0)
153 __THREAD_DEFINE_p = -DwxNO_THREADS
155 ifeq ($(USE_THREADS),0)
156 __THREAD_DEFINE_p_1 = --define wxNO_THREADS
159 __UNICODE_DEFINE_p = -DwxUSE_UNICODE=0
162 __UNICODE_DEFINE_p = -D_UNICODE
165 __UNICODE_DEFINE_p_1 = --define wxUSE_UNICODE=0
168 __UNICODE_DEFINE_p_1 = --define _UNICODE
171 __MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
174 __MSLU_DEFINE_p_1 = --define wxUSE_UNICODE_MSLU=1
176 ifeq ($(USE_GDIPLUS),1)
177 __GFXCTX_DEFINE_p = -DwxUSE_GRAPHICS_CONTEXT=1
179 ifeq ($(USE_GDIPLUS),1)
180 __GFXCTX_DEFINE_p_1 = --define wxUSE_GRAPHICS_CONTEXT=1
183 __DLLFLAG_p = -DWXUSINGDLL
186 __DLLFLAG_p_1 = --define WXUSINGDLL
188 ifeq ($(MONOLITHIC),0)
190 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_xml
192 ifeq ($(MONOLITHIC),0)
194 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_adv
196 ifeq ($(MONOLITHIC),0)
198 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_html
200 ifeq ($(MONOLITHIC),0)
202 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
204 ifeq ($(MONOLITHIC),0)
206 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
208 ifeq ($(MONOLITHIC),1)
210 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
213 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
216 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
219 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
222 __UNICOWS_LIB_p = -lunicows
224 ifeq ($(USE_GDIPLUS),1)
225 __GDIPLUS_LIB_p = -lgdiplus
227 ifeq ($(BUILD),debug)
228 ifeq ($(DEBUG_INFO),default)
232 ifeq ($(BUILD),release)
233 ifeq ($(DEBUG_INFO),default)
237 ifeq ($(DEBUG_INFO),0)
240 ifeq ($(DEBUG_INFO),1)
243 ifeq ($(USE_THREADS),0)
246 ifeq ($(USE_THREADS),1)
247 __THREADSFLAG = -mthreads
253 -if not exist $(OBJS) mkdir $(OBJS)
257 all: $(OBJS)\widgets.exe
260 -if exist $(OBJS)\*.o del $(OBJS)\*.o
261 -if exist $(OBJS)\*.d del $(OBJS)\*.d
262 -if exist $(OBJS)\widgets.exe del $(OBJS)\widgets.exe
264 $(OBJS)\widgets.exe: $(WIDGETS_OBJECTS) $(OBJS)\widgets_sample_rc.o
265 $(CXX) -o $@ $(WIDGETS_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) $(__THREADSFLAG) -L$(LIBDIRNAME) -Wl,--subsystem,windows -mwindows $(__WXLIB_XML_p) $(__WXLIB_ADV_p) $(__WXLIB_HTML_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
267 $(OBJS)\widgets_bmpcombobox.o: ./bmpcombobox.cpp
268 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
270 $(OBJS)\widgets_button.o: ./button.cpp
271 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
273 $(OBJS)\widgets_checkbox.o: ./checkbox.cpp
274 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
276 $(OBJS)\widgets_choice.o: ./choice.cpp
277 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
279 $(OBJS)\widgets_clrpicker.o: ./clrpicker.cpp
280 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
282 $(OBJS)\widgets_combobox.o: ./combobox.cpp
283 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
285 $(OBJS)\widgets_datepick.o: ./datepick.cpp
286 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
288 $(OBJS)\widgets_dirctrl.o: ./dirctrl.cpp
289 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
291 $(OBJS)\widgets_dirpicker.o: ./dirpicker.cpp
292 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
294 $(OBJS)\widgets_filectrl.o: ./filectrl.cpp
295 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
297 $(OBJS)\widgets_filepicker.o: ./filepicker.cpp
298 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
300 $(OBJS)\widgets_fontpicker.o: ./fontpicker.cpp
301 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
303 $(OBJS)\widgets_gauge.o: ./gauge.cpp
304 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
306 $(OBJS)\widgets_hyperlnk.o: ./hyperlnk.cpp
307 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
309 $(OBJS)\widgets_itemcontainer.o: ./itemcontainer.cpp
310 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
312 $(OBJS)\widgets_listbox.o: ./listbox.cpp
313 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
315 $(OBJS)\widgets_notebook.o: ./notebook.cpp
316 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
318 $(OBJS)\widgets_odcombobox.o: ./odcombobox.cpp
319 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
321 $(OBJS)\widgets_radiobox.o: ./radiobox.cpp
322 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
324 $(OBJS)\widgets_searchctrl.o: ./searchctrl.cpp
325 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
327 $(OBJS)\widgets_slider.o: ./slider.cpp
328 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
330 $(OBJS)\widgets_spinbtn.o: ./spinbtn.cpp
331 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
333 $(OBJS)\widgets_static.o: ./static.cpp
334 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
336 $(OBJS)\widgets_statbmp.o: ./statbmp.cpp
337 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
339 $(OBJS)\widgets_textctrl.o: ./textctrl.cpp
340 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
342 $(OBJS)\widgets_toggle.o: ./toggle.cpp
343 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
345 $(OBJS)\widgets_widgets.o: ./widgets.cpp
346 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
348 $(OBJS)\widgets_sample_rc.o: ./../sample.rc
349 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
356 # Dependencies tracking: