1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.2.0 (http://bakefile.sourceforge.net)
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
18 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
19 LIBDIRNAME = .\..\..\lib\gcc_$(LIBTYPE_SUFFIX)$(CFG)
21 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
22 WIDGETS_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG_2) $(__THREADSFLAG) \
23 $(GCCFLAGS) -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
24 $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
25 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \
26 -I$(SETUPHDIR) -I.\..\..\include -W -Wall -I. $(__DLLFLAG_p) -I.\..\..\samples \
27 -DNOPCH $(__RTTIFLAG_5) $(__EXCEPTIONSFLAG_6) -Wno-ctor-dtor-privacy \
28 $(CPPFLAGS) $(CXXFLAGS)
30 $(OBJS)\widgets_button.o \
31 $(OBJS)\widgets_checkbox.o \
32 $(OBJS)\widgets_combobox.o \
33 $(OBJS)\widgets_datepick.o \
34 $(OBJS)\widgets_gauge.o \
35 $(OBJS)\widgets_hyperlnk.o \
36 $(OBJS)\widgets_listbox.o \
37 $(OBJS)\widgets_notebook.o \
38 $(OBJS)\widgets_picker.o \
39 $(OBJS)\widgets_radiobox.o \
40 $(OBJS)\widgets_slider.o \
41 $(OBJS)\widgets_spinbtn.o \
42 $(OBJS)\widgets_static.o \
43 $(OBJS)\widgets_textctrl.o \
44 $(OBJS)\widgets_toggle.o \
45 $(OBJS)\widgets_widgets.o \
46 $(OBJS)\widgets_sample_rc.o
48 ### Conditionally set variables: ###
50 ifeq ($(GCC_VERSION),2.95)
51 GCCFLAGS = -fvtable-thunks
60 ifeq ($(DEBUG_FLAG),default)
64 ifeq ($(DEBUG_FLAG),1)
82 ifeq ($(MONOLITHIC),0)
85 ifeq ($(MONOLITHIC),1)
89 __OPTIMIZEFLAG_2 = -O0
91 ifeq ($(BUILD),release)
92 __OPTIMIZEFLAG_2 = -O2
95 __RTTIFLAG_5 = -fno-rtti
100 ifeq ($(USE_EXCEPTIONS),0)
101 __EXCEPTIONSFLAG_6 = -fno-exceptions
103 ifeq ($(USE_EXCEPTIONS),1)
107 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
110 __WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__
112 ifeq ($(BUILD),debug)
113 ifeq ($(DEBUG_FLAG),default)
114 __DEBUG_DEFINE_p = -D__WXDEBUG__
117 ifeq ($(DEBUG_FLAG),1)
118 __DEBUG_DEFINE_p = -D__WXDEBUG__
120 ifeq ($(BUILD),debug)
121 ifeq ($(DEBUG_FLAG),default)
122 __DEBUG_DEFINE_p_1 = --define __WXDEBUG__
125 ifeq ($(DEBUG_FLAG),1)
126 __DEBUG_DEFINE_p_1 = --define __WXDEBUG__
128 ifeq ($(USE_EXCEPTIONS),0)
129 __EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
131 ifeq ($(USE_EXCEPTIONS),0)
132 __EXCEPTIONS_DEFINE_p_1 = --define wxNO_EXCEPTIONS
135 __RTTI_DEFINE_p = -DwxNO_RTTI
138 __RTTI_DEFINE_p_1 = --define wxNO_RTTI
140 ifeq ($(USE_THREADS),0)
141 __THREAD_DEFINE_p = -DwxNO_THREADS
143 ifeq ($(USE_THREADS),0)
144 __THREAD_DEFINE_p_1 = --define wxNO_THREADS
147 __UNICODE_DEFINE_p = -D_UNICODE
150 __UNICODE_DEFINE_p_1 = --define _UNICODE
153 __MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
156 __MSLU_DEFINE_p_1 = --define wxUSE_UNICODE_MSLU=1
159 __DLLFLAG_p = -DWXUSINGDLL
162 __DLLFLAG_p_1 = --define WXUSINGDLL
164 ifeq ($(MONOLITHIC),0)
166 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_adv
168 ifeq ($(MONOLITHIC),0)
170 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_html
172 ifeq ($(MONOLITHIC),0)
174 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
176 ifeq ($(MONOLITHIC),0)
178 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
180 ifeq ($(MONOLITHIC),1)
182 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
185 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
188 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
191 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
194 __UNICOWS_LIB_p = -lunicows
196 ifeq ($(BUILD),debug)
197 ifeq ($(DEBUG_INFO),default)
201 ifeq ($(BUILD),release)
202 ifeq ($(DEBUG_INFO),default)
206 ifeq ($(DEBUG_INFO),0)
209 ifeq ($(DEBUG_INFO),1)
212 ifeq ($(USE_THREADS),0)
215 ifeq ($(USE_THREADS),1)
216 __THREADSFLAG = -mthreads
222 -if not exist $(OBJS) mkdir $(OBJS)
226 all: $(OBJS)\widgets.exe
229 -if exist $(OBJS)\*.o del $(OBJS)\*.o
230 -if exist $(OBJS)\*.d del $(OBJS)\*.d
231 -if exist $(OBJS)\widgets.exe del $(OBJS)\widgets.exe
233 $(OBJS)\widgets.exe: $(WIDGETS_OBJECTS) $(OBJS)\widgets_sample_rc.o
234 $(CXX) -o $@ $(WIDGETS_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) $(__THREADSFLAG) -L$(LIBDIRNAME) -Wl,--subsystem,windows -mwindows $(__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) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lodbc32
236 $(OBJS)\widgets_button.o: ./button.cpp
237 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
239 $(OBJS)\widgets_checkbox.o: ./checkbox.cpp
240 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
242 $(OBJS)\widgets_combobox.o: ./combobox.cpp
243 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
245 $(OBJS)\widgets_datepick.o: ./datepick.cpp
246 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
248 $(OBJS)\widgets_gauge.o: ./gauge.cpp
249 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
251 $(OBJS)\widgets_hyperlnk.o: ./hyperlnk.cpp
252 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
254 $(OBJS)\widgets_listbox.o: ./listbox.cpp
255 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
257 $(OBJS)\widgets_notebook.o: ./notebook.cpp
258 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
260 $(OBJS)\widgets_picker.o: ./picker.cpp
261 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
263 $(OBJS)\widgets_radiobox.o: ./radiobox.cpp
264 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
266 $(OBJS)\widgets_slider.o: ./slider.cpp
267 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
269 $(OBJS)\widgets_spinbtn.o: ./spinbtn.cpp
270 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
272 $(OBJS)\widgets_static.o: ./static.cpp
273 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
275 $(OBJS)\widgets_textctrl.o: ./textctrl.cpp
276 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
278 $(OBJS)\widgets_toggle.o: ./toggle.cpp
279 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
281 $(OBJS)\widgets_widgets.o: ./widgets.cpp
282 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
284 $(OBJS)\widgets_sample_rc.o: ./../sample.rc
285 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) --include-dir $(SETUPHDIR) --include-dir ./../../include --include-dir . $(__DLLFLAG_p_1) --include-dir ./../../samples --define NOPCH
290 # Dependencies tracking: