1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.2.9 (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)$(COMPILER_VERSION)_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
21 .\..\..\lib\$(COMPILER_PREFIX)$(COMPILER_VERSION)_$(LIBTYPE_SUFFIX)$(CFG)
23 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
24 WIDGETS_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG_2) $(__THREADSFLAG) \
25 $(GCCFLAGS) -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
26 $(__DEBUG_DEFINE_p) $(__NDEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) \
27 $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) \
28 $(__MSLU_DEFINE_p) -I$(SETUPHDIR) -I.\..\..\include \
29 $(____CAIRO_INCLUDEDIR_FILENAMES_p) -W -Wall -I. $(__DLLFLAG_p) \
30 -I.\..\..\samples -DNOPCH $(__RTTIFLAG_5) $(__EXCEPTIONSFLAG_6) \
31 -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)
33 $(OBJS)\widgets_bmpcombobox.o \
34 $(OBJS)\widgets_button.o \
35 $(OBJS)\widgets_checkbox.o \
36 $(OBJS)\widgets_choice.o \
37 $(OBJS)\widgets_clrpicker.o \
38 $(OBJS)\widgets_combobox.o \
39 $(OBJS)\widgets_datepick.o \
40 $(OBJS)\widgets_dirctrl.o \
41 $(OBJS)\widgets_dirpicker.o \
42 $(OBJS)\widgets_editlbox.o \
43 $(OBJS)\widgets_filectrl.o \
44 $(OBJS)\widgets_filepicker.o \
45 $(OBJS)\widgets_fontpicker.o \
46 $(OBJS)\widgets_gauge.o \
47 $(OBJS)\widgets_hyperlnk.o \
48 $(OBJS)\widgets_itemcontainer.o \
49 $(OBJS)\widgets_listbox.o \
50 $(OBJS)\widgets_notebook.o \
51 $(OBJS)\widgets_odcombobox.o \
52 $(OBJS)\widgets_radiobox.o \
53 $(OBJS)\widgets_searchctrl.o \
54 $(OBJS)\widgets_slider.o \
55 $(OBJS)\widgets_spinbtn.o \
56 $(OBJS)\widgets_static.o \
57 $(OBJS)\widgets_statbmp.o \
58 $(OBJS)\widgets_textctrl.o \
59 $(OBJS)\widgets_timepick.o \
60 $(OBJS)\widgets_toggle.o \
61 $(OBJS)\widgets_widgets.o \
62 $(OBJS)\widgets_sample_rc.o
64 ### Conditionally set variables: ###
66 ifeq ($(GCC_VERSION),2.95)
67 GCCFLAGS = -fvtable-thunks
73 PORTNAME = msw$(TOOLKIT_VERSION)
75 ifeq ($(OFFICIAL_BUILD),1)
76 COMPILER_VERSION = ERROR-COMPILER-VERSION-MUST-BE-SET-FOR-OFFICIAL-BUILD
96 ifeq ($(MONOLITHIC),0)
99 ifeq ($(MONOLITHIC),1)
102 ifeq ($(BUILD),debug)
103 __OPTIMIZEFLAG_2 = -O0
105 ifeq ($(BUILD),release)
106 __OPTIMIZEFLAG_2 = -O2
109 __RTTIFLAG_5 = -fno-rtti
114 ifeq ($(USE_EXCEPTIONS),0)
115 __EXCEPTIONSFLAG_6 = -fno-exceptions
117 ifeq ($(USE_EXCEPTIONS),1)
121 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
124 __WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__
126 ifeq ($(DEBUG_FLAG),0)
127 __DEBUG_DEFINE_p = -DwxDEBUG_LEVEL=0
129 ifeq ($(DEBUG_FLAG),0)
130 __DEBUG_DEFINE_p_1 = --define wxDEBUG_LEVEL=0
132 ifeq ($(BUILD),release)
133 __NDEBUG_DEFINE_p = -DNDEBUG
135 ifeq ($(BUILD),release)
136 __NDEBUG_DEFINE_p_1 = --define NDEBUG
138 ifeq ($(USE_EXCEPTIONS),0)
139 __EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
141 ifeq ($(USE_EXCEPTIONS),0)
142 __EXCEPTIONS_DEFINE_p_1 = --define wxNO_EXCEPTIONS
145 __RTTI_DEFINE_p = -DwxNO_RTTI
148 __RTTI_DEFINE_p_1 = --define wxNO_RTTI
150 ifeq ($(USE_THREADS),0)
151 __THREAD_DEFINE_p = -DwxNO_THREADS
153 ifeq ($(USE_THREADS),0)
154 __THREAD_DEFINE_p_1 = --define wxNO_THREADS
157 __UNICODE_DEFINE_p = -DwxUSE_UNICODE=0
160 __UNICODE_DEFINE_p = -D_UNICODE
163 __UNICODE_DEFINE_p_1 = --define wxUSE_UNICODE=0
166 __UNICODE_DEFINE_p_1 = --define _UNICODE
169 __MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
172 __MSLU_DEFINE_p_1 = --define wxUSE_UNICODE_MSLU=1
174 ifeq ($(USE_CAIRO),1)
175 ____CAIRO_INCLUDEDIR_FILENAMES_p = -I$(CAIRO_ROOT)\include\cairo
177 ifeq ($(USE_CAIRO),1)
178 __CAIRO_INCLUDEDIR_p = --include-dir $(CAIRO_ROOT)/include/cairo
181 __DLLFLAG_p = -DWXUSINGDLL
184 __DLLFLAG_p_1 = --define WXUSINGDLL
186 ifeq ($(MONOLITHIC),0)
188 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_adv
190 ifeq ($(MONOLITHIC),0)
192 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
194 ifeq ($(MONOLITHIC),0)
196 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
198 ifeq ($(MONOLITHIC),1)
200 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
202 ifeq ($(MONOLITHIC),1)
203 __LIB_SCINTILLA_IF_MONO_p = -lwxscintilla$(WXDEBUGFLAG)
206 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
209 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
212 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
215 __UNICOWS_LIB_p = -lunicows
217 ifeq ($(USE_CAIRO),1)
218 __CAIRO_LIB_p = -lcairo
220 ifeq ($(USE_CAIRO),1)
221 ____CAIRO_LIBDIR_FILENAMES_p = -L$(CAIRO_ROOT)\lib
223 ifeq ($(BUILD),debug)
224 ifeq ($(DEBUG_INFO),default)
228 ifeq ($(BUILD),release)
229 ifeq ($(DEBUG_INFO),default)
233 ifeq ($(DEBUG_INFO),0)
236 ifeq ($(DEBUG_INFO),1)
239 ifeq ($(USE_THREADS),0)
242 ifeq ($(USE_THREADS),1)
243 __THREADSFLAG = -mthreads
249 -if not exist $(OBJS) mkdir $(OBJS)
253 all: $(OBJS)\widgets.exe
256 -if exist $(OBJS)\*.o del $(OBJS)\*.o
257 -if exist $(OBJS)\*.d del $(OBJS)\*.d
258 -if exist $(OBJS)\widgets.exe del $(OBJS)\widgets.exe
260 $(OBJS)\widgets.exe: $(WIDGETS_OBJECTS) $(OBJS)\widgets_sample_rc.o
261 $(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_SCINTILLA_IF_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) -lwxzlib$(WXDEBUGFLAG) -lwxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG) -lwxexpat$(WXDEBUGFLAG) $(EXTRALIBS_FOR_BASE) $(__UNICOWS_LIB_p) $(__CAIRO_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lwininet
263 $(OBJS)\widgets_bmpcombobox.o: ./bmpcombobox.cpp
264 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
266 $(OBJS)\widgets_button.o: ./button.cpp
267 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
269 $(OBJS)\widgets_checkbox.o: ./checkbox.cpp
270 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
272 $(OBJS)\widgets_choice.o: ./choice.cpp
273 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
275 $(OBJS)\widgets_clrpicker.o: ./clrpicker.cpp
276 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
278 $(OBJS)\widgets_combobox.o: ./combobox.cpp
279 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
281 $(OBJS)\widgets_datepick.o: ./datepick.cpp
282 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
284 $(OBJS)\widgets_dirctrl.o: ./dirctrl.cpp
285 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
287 $(OBJS)\widgets_dirpicker.o: ./dirpicker.cpp
288 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
290 $(OBJS)\widgets_editlbox.o: ./editlbox.cpp
291 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
293 $(OBJS)\widgets_filectrl.o: ./filectrl.cpp
294 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
296 $(OBJS)\widgets_filepicker.o: ./filepicker.cpp
297 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
299 $(OBJS)\widgets_fontpicker.o: ./fontpicker.cpp
300 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
302 $(OBJS)\widgets_gauge.o: ./gauge.cpp
303 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
305 $(OBJS)\widgets_hyperlnk.o: ./hyperlnk.cpp
306 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
308 $(OBJS)\widgets_itemcontainer.o: ./itemcontainer.cpp
309 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
311 $(OBJS)\widgets_listbox.o: ./listbox.cpp
312 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
314 $(OBJS)\widgets_notebook.o: ./notebook.cpp
315 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
317 $(OBJS)\widgets_odcombobox.o: ./odcombobox.cpp
318 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
320 $(OBJS)\widgets_radiobox.o: ./radiobox.cpp
321 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
323 $(OBJS)\widgets_searchctrl.o: ./searchctrl.cpp
324 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
326 $(OBJS)\widgets_slider.o: ./slider.cpp
327 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
329 $(OBJS)\widgets_spinbtn.o: ./spinbtn.cpp
330 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
332 $(OBJS)\widgets_static.o: ./static.cpp
333 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
335 $(OBJS)\widgets_statbmp.o: ./statbmp.cpp
336 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
338 $(OBJS)\widgets_textctrl.o: ./textctrl.cpp
339 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
341 $(OBJS)\widgets_timepick.o: ./timepick.cpp
342 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
344 $(OBJS)\widgets_toggle.o: ./toggle.cpp
345 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
347 $(OBJS)\widgets_widgets.o: ./widgets.cpp
348 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
350 $(OBJS)\widgets_sample_rc.o: ./../sample.rc
351 windres --use-temp-file -i$< -o$@ --define __WXMSW__ $(__WXUNIV_DEFINE_p_1) $(__DEBUG_DEFINE_p_1) $(__NDEBUG_DEFINE_p_1) $(__EXCEPTIONS_DEFINE_p_1) $(__RTTI_DEFINE_p_1) $(__THREAD_DEFINE_p_1) $(__UNICODE_DEFINE_p_1) $(__MSLU_DEFINE_p_1) --include-dir $(SETUPHDIR) --include-dir ./../../include $(__CAIRO_INCLUDEDIR_p) --include-dir . $(__DLLFLAG_p_1) --include-dir ./../../samples --define NOPCH
358 # Dependencies tracking: