1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.2.8 (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 -MP
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 \
28 $(____CAIRO_INCLUDEDIR_FILENAMES_p) -W -Wall -I. $(__DLLFLAG_p) \
29 -I.\..\..\samples -DNOPCH $(__RTTIFLAG_5) $(__EXCEPTIONSFLAG_6) \
30 -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)
32 $(OBJS)\widgets_bmpcombobox.o \
33 $(OBJS)\widgets_button.o \
34 $(OBJS)\widgets_checkbox.o \
35 $(OBJS)\widgets_choice.o \
36 $(OBJS)\widgets_clrpicker.o \
37 $(OBJS)\widgets_combobox.o \
38 $(OBJS)\widgets_datepick.o \
39 $(OBJS)\widgets_dirctrl.o \
40 $(OBJS)\widgets_dirpicker.o \
41 $(OBJS)\widgets_editlbox.o \
42 $(OBJS)\widgets_filectrl.o \
43 $(OBJS)\widgets_filepicker.o \
44 $(OBJS)\widgets_fontpicker.o \
45 $(OBJS)\widgets_gauge.o \
46 $(OBJS)\widgets_hyperlnk.o \
47 $(OBJS)\widgets_itemcontainer.o \
48 $(OBJS)\widgets_listbox.o \
49 $(OBJS)\widgets_notebook.o \
50 $(OBJS)\widgets_odcombobox.o \
51 $(OBJS)\widgets_radiobox.o \
52 $(OBJS)\widgets_searchctrl.o \
53 $(OBJS)\widgets_slider.o \
54 $(OBJS)\widgets_spinbtn.o \
55 $(OBJS)\widgets_static.o \
56 $(OBJS)\widgets_statbmp.o \
57 $(OBJS)\widgets_textctrl.o \
58 $(OBJS)\widgets_toggle.o \
59 $(OBJS)\widgets_widgets.o \
60 $(OBJS)\widgets_sample_rc.o
62 ### Conditionally set variables: ###
64 ifeq ($(GCC_VERSION),2.95)
65 GCCFLAGS = -fvtable-thunks
91 ifeq ($(MONOLITHIC),0)
94 ifeq ($(MONOLITHIC),1)
98 __OPTIMIZEFLAG_2 = -O0
100 ifeq ($(BUILD),release)
101 __OPTIMIZEFLAG_2 = -O2
104 __RTTIFLAG_5 = -fno-rtti
109 ifeq ($(USE_EXCEPTIONS),0)
110 __EXCEPTIONSFLAG_6 = -fno-exceptions
112 ifeq ($(USE_EXCEPTIONS),1)
116 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
119 __WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__
121 ifeq ($(DEBUG_FLAG),0)
122 __DEBUG_DEFINE_p = -DwxDEBUG_LEVEL=0
124 ifeq ($(DEBUG_FLAG),0)
125 __DEBUG_DEFINE_p_1 = --define wxDEBUG_LEVEL=0
127 ifeq ($(USE_EXCEPTIONS),0)
128 __EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
130 ifeq ($(USE_EXCEPTIONS),0)
131 __EXCEPTIONS_DEFINE_p_1 = --define wxNO_EXCEPTIONS
134 __RTTI_DEFINE_p = -DwxNO_RTTI
137 __RTTI_DEFINE_p_1 = --define wxNO_RTTI
139 ifeq ($(USE_THREADS),0)
140 __THREAD_DEFINE_p = -DwxNO_THREADS
142 ifeq ($(USE_THREADS),0)
143 __THREAD_DEFINE_p_1 = --define wxNO_THREADS
146 __UNICODE_DEFINE_p = -DwxUSE_UNICODE=0
149 __UNICODE_DEFINE_p = -D_UNICODE
152 __UNICODE_DEFINE_p_1 = --define wxUSE_UNICODE=0
155 __UNICODE_DEFINE_p_1 = --define _UNICODE
158 __MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
161 __MSLU_DEFINE_p_1 = --define wxUSE_UNICODE_MSLU=1
163 ifeq ($(USE_GDIPLUS),1)
164 __GFXCTX_DEFINE_p = -DwxUSE_GRAPHICS_CONTEXT=1
166 ifeq ($(USE_GDIPLUS),1)
167 __GFXCTX_DEFINE_p_1 = --define wxUSE_GRAPHICS_CONTEXT=1
169 ifeq ($(USE_CAIRO),1)
170 ____CAIRO_INCLUDEDIR_FILENAMES_p = -I$(CAIRO_ROOT)\include\cairo
172 ifeq ($(USE_CAIRO),1)
173 __CAIRO_INCLUDEDIR_p = --include-dir $(CAIRO_ROOT)/include/cairo
176 __DLLFLAG_p = -DWXUSINGDLL
179 __DLLFLAG_p_1 = --define WXUSINGDLL
181 ifeq ($(MONOLITHIC),0)
183 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_adv
185 ifeq ($(MONOLITHIC),0)
187 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
189 ifeq ($(MONOLITHIC),0)
191 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
193 ifeq ($(MONOLITHIC),1)
195 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
198 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
201 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
204 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
207 __UNICOWS_LIB_p = -lunicows
209 ifeq ($(USE_GDIPLUS),1)
210 __GDIPLUS_LIB_p = -lgdiplus
212 ifeq ($(USE_CAIRO),1)
213 __CAIRO_LIB_p = -lcairo
215 ifeq ($(USE_CAIRO),1)
216 ____CAIRO_LIBDIR_FILENAMES_p = -L$(CAIRO_ROOT)\lib
218 ifeq ($(BUILD),debug)
219 ifeq ($(DEBUG_INFO),default)
223 ifeq ($(BUILD),release)
224 ifeq ($(DEBUG_INFO),default)
228 ifeq ($(DEBUG_INFO),0)
231 ifeq ($(DEBUG_INFO),1)
234 ifeq ($(USE_THREADS),0)
237 ifeq ($(USE_THREADS),1)
238 __THREADSFLAG = -mthreads
244 -if not exist $(OBJS) mkdir $(OBJS)
248 all: $(OBJS)\widgets.exe
251 -if exist $(OBJS)\*.o del $(OBJS)\*.o
252 -if exist $(OBJS)\*.d del $(OBJS)\*.d
253 -if exist $(OBJS)\widgets.exe del $(OBJS)\widgets.exe
255 $(OBJS)\widgets.exe: $(WIDGETS_OBJECTS) $(OBJS)\widgets_sample_rc.o
256 $(CXX) -o $@ $(WIDGETS_OBJECTS) $(__DEBUGINFO) $(__THREADSFLAG) -L$(LIBDIRNAME) -Wl,--subsystem,windows -mwindows $(____CAIRO_LIBDIR_FILENAMES_p) $(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) $(__CAIRO_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lwininet
258 $(OBJS)\widgets_bmpcombobox.o: ./bmpcombobox.cpp
259 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
261 $(OBJS)\widgets_button.o: ./button.cpp
262 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
264 $(OBJS)\widgets_checkbox.o: ./checkbox.cpp
265 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
267 $(OBJS)\widgets_choice.o: ./choice.cpp
268 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
270 $(OBJS)\widgets_clrpicker.o: ./clrpicker.cpp
271 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
273 $(OBJS)\widgets_combobox.o: ./combobox.cpp
274 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
276 $(OBJS)\widgets_datepick.o: ./datepick.cpp
277 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
279 $(OBJS)\widgets_dirctrl.o: ./dirctrl.cpp
280 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
282 $(OBJS)\widgets_dirpicker.o: ./dirpicker.cpp
283 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
285 $(OBJS)\widgets_editlbox.o: ./editlbox.cpp
286 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
288 $(OBJS)\widgets_filectrl.o: ./filectrl.cpp
289 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
291 $(OBJS)\widgets_filepicker.o: ./filepicker.cpp
292 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
294 $(OBJS)\widgets_fontpicker.o: ./fontpicker.cpp
295 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
297 $(OBJS)\widgets_gauge.o: ./gauge.cpp
298 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
300 $(OBJS)\widgets_hyperlnk.o: ./hyperlnk.cpp
301 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
303 $(OBJS)\widgets_itemcontainer.o: ./itemcontainer.cpp
304 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
306 $(OBJS)\widgets_listbox.o: ./listbox.cpp
307 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
309 $(OBJS)\widgets_notebook.o: ./notebook.cpp
310 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
312 $(OBJS)\widgets_odcombobox.o: ./odcombobox.cpp
313 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
315 $(OBJS)\widgets_radiobox.o: ./radiobox.cpp
316 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
318 $(OBJS)\widgets_searchctrl.o: ./searchctrl.cpp
319 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
321 $(OBJS)\widgets_slider.o: ./slider.cpp
322 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
324 $(OBJS)\widgets_spinbtn.o: ./spinbtn.cpp
325 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
327 $(OBJS)\widgets_static.o: ./static.cpp
328 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
330 $(OBJS)\widgets_statbmp.o: ./statbmp.cpp
331 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
333 $(OBJS)\widgets_textctrl.o: ./textctrl.cpp
334 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
336 $(OBJS)\widgets_toggle.o: ./toggle.cpp
337 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
339 $(OBJS)\widgets_widgets.o: ./widgets.cpp
340 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
342 $(OBJS)\widgets_sample_rc.o: ./../sample.rc
343 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 $(__CAIRO_INCLUDEDIR_p) --include-dir . $(__DLLFLAG_p_1) --include-dir ./../../samples --define NOPCH
350 # Dependencies tracking: