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_clrpicker.o \
39 $(OBJS)\widgets_fontpicker.o \
40 $(OBJS)\widgets_filepicker.o \
41 $(OBJS)\widgets_dirpicker.o \
42 $(OBJS)\widgets_odcombobox.o \
43 $(OBJS)\widgets_radiobox.o \
44 $(OBJS)\widgets_slider.o \
45 $(OBJS)\widgets_spinbtn.o \
46 $(OBJS)\widgets_static.o \
47 $(OBJS)\widgets_textctrl.o \
48 $(OBJS)\widgets_toggle.o \
49 $(OBJS)\widgets_widgets.o \
50 $(OBJS)\widgets_sample_rc.o
52 ### Conditionally set variables: ###
54 ifeq ($(GCC_VERSION),2.95)
55 GCCFLAGS = -fvtable-thunks
64 ifeq ($(DEBUG_FLAG),default)
68 ifeq ($(DEBUG_FLAG),1)
86 ifeq ($(MONOLITHIC),0)
89 ifeq ($(MONOLITHIC),1)
93 __OPTIMIZEFLAG_2 = -O0
95 ifeq ($(BUILD),release)
96 __OPTIMIZEFLAG_2 = -O2
99 __RTTIFLAG_5 = -fno-rtti
104 ifeq ($(USE_EXCEPTIONS),0)
105 __EXCEPTIONSFLAG_6 = -fno-exceptions
107 ifeq ($(USE_EXCEPTIONS),1)
111 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
114 __WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__
116 ifeq ($(BUILD),debug)
117 ifeq ($(DEBUG_FLAG),default)
118 __DEBUG_DEFINE_p = -D__WXDEBUG__
121 ifeq ($(DEBUG_FLAG),1)
122 __DEBUG_DEFINE_p = -D__WXDEBUG__
124 ifeq ($(BUILD),debug)
125 ifeq ($(DEBUG_FLAG),default)
126 __DEBUG_DEFINE_p_1 = --define __WXDEBUG__
129 ifeq ($(DEBUG_FLAG),1)
130 __DEBUG_DEFINE_p_1 = --define __WXDEBUG__
132 ifeq ($(USE_EXCEPTIONS),0)
133 __EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
135 ifeq ($(USE_EXCEPTIONS),0)
136 __EXCEPTIONS_DEFINE_p_1 = --define wxNO_EXCEPTIONS
139 __RTTI_DEFINE_p = -DwxNO_RTTI
142 __RTTI_DEFINE_p_1 = --define wxNO_RTTI
144 ifeq ($(USE_THREADS),0)
145 __THREAD_DEFINE_p = -DwxNO_THREADS
147 ifeq ($(USE_THREADS),0)
148 __THREAD_DEFINE_p_1 = --define wxNO_THREADS
151 __UNICODE_DEFINE_p = -D_UNICODE
154 __UNICODE_DEFINE_p_1 = --define _UNICODE
157 __MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
160 __MSLU_DEFINE_p_1 = --define wxUSE_UNICODE_MSLU=1
163 __DLLFLAG_p = -DWXUSINGDLL
166 __DLLFLAG_p_1 = --define WXUSINGDLL
168 ifeq ($(MONOLITHIC),0)
170 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_xml
172 ifeq ($(MONOLITHIC),0)
174 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_adv
176 ifeq ($(MONOLITHIC),0)
178 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_html
180 ifeq ($(MONOLITHIC),0)
182 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
184 ifeq ($(MONOLITHIC),0)
186 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
188 ifeq ($(MONOLITHIC),1)
190 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
193 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
196 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
199 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
202 __UNICOWS_LIB_p = -lunicows
204 ifeq ($(BUILD),debug)
205 ifeq ($(DEBUG_INFO),default)
209 ifeq ($(BUILD),release)
210 ifeq ($(DEBUG_INFO),default)
214 ifeq ($(DEBUG_INFO),0)
217 ifeq ($(DEBUG_INFO),1)
220 ifeq ($(USE_THREADS),0)
223 ifeq ($(USE_THREADS),1)
224 __THREADSFLAG = -mthreads
230 -if not exist $(OBJS) mkdir $(OBJS)
234 all: $(OBJS)\widgets.exe
237 -if exist $(OBJS)\*.o del $(OBJS)\*.o
238 -if exist $(OBJS)\*.d del $(OBJS)\*.d
239 -if exist $(OBJS)\widgets.exe del $(OBJS)\widgets.exe
241 $(OBJS)\widgets.exe: $(WIDGETS_OBJECTS) $(OBJS)\widgets_sample_rc.o
242 $(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) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lodbc32
244 $(OBJS)\widgets_button.o: ./button.cpp
245 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
247 $(OBJS)\widgets_checkbox.o: ./checkbox.cpp
248 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
250 $(OBJS)\widgets_combobox.o: ./combobox.cpp
251 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
253 $(OBJS)\widgets_datepick.o: ./datepick.cpp
254 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
256 $(OBJS)\widgets_gauge.o: ./gauge.cpp
257 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
259 $(OBJS)\widgets_hyperlnk.o: ./hyperlnk.cpp
260 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
262 $(OBJS)\widgets_listbox.o: ./listbox.cpp
263 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
265 $(OBJS)\widgets_notebook.o: ./notebook.cpp
266 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
268 $(OBJS)\widgets_clrpicker.o: ./clrpicker.cpp
269 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
271 $(OBJS)\widgets_fontpicker.o: ./fontpicker.cpp
272 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
274 $(OBJS)\widgets_filepicker.o: ./filepicker.cpp
275 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
277 $(OBJS)\widgets_dirpicker.o: ./dirpicker.cpp
278 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
280 $(OBJS)\widgets_odcombobox.o: ./odcombobox.cpp
281 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
283 $(OBJS)\widgets_radiobox.o: ./radiobox.cpp
284 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
286 $(OBJS)\widgets_slider.o: ./slider.cpp
287 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
289 $(OBJS)\widgets_spinbtn.o: ./spinbtn.cpp
290 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
292 $(OBJS)\widgets_static.o: ./static.cpp
293 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
295 $(OBJS)\widgets_textctrl.o: ./textctrl.cpp
296 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
298 $(OBJS)\widgets_toggle.o: ./toggle.cpp
299 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
301 $(OBJS)\widgets_widgets.o: ./widgets.cpp
302 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
304 $(OBJS)\widgets_sample_rc.o: ./../sample.rc
305 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
310 # Dependencies tracking: