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_radiobox.o \
43 $(OBJS)\widgets_slider.o \
44 $(OBJS)\widgets_spinbtn.o \
45 $(OBJS)\widgets_static.o \
46 $(OBJS)\widgets_textctrl.o \
47 $(OBJS)\widgets_toggle.o \
48 $(OBJS)\widgets_widgets.o \
49 $(OBJS)\widgets_sample_rc.o
51 ### Conditionally set variables: ###
53 ifeq ($(GCC_VERSION),2.95)
54 GCCFLAGS = -fvtable-thunks
63 ifeq ($(DEBUG_FLAG),default)
67 ifeq ($(DEBUG_FLAG),1)
85 ifeq ($(MONOLITHIC),0)
88 ifeq ($(MONOLITHIC),1)
92 __OPTIMIZEFLAG_2 = -O0
94 ifeq ($(BUILD),release)
95 __OPTIMIZEFLAG_2 = -O2
98 __RTTIFLAG_5 = -fno-rtti
103 ifeq ($(USE_EXCEPTIONS),0)
104 __EXCEPTIONSFLAG_6 = -fno-exceptions
106 ifeq ($(USE_EXCEPTIONS),1)
110 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
113 __WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__
115 ifeq ($(BUILD),debug)
116 ifeq ($(DEBUG_FLAG),default)
117 __DEBUG_DEFINE_p = -D__WXDEBUG__
120 ifeq ($(DEBUG_FLAG),1)
121 __DEBUG_DEFINE_p = -D__WXDEBUG__
123 ifeq ($(BUILD),debug)
124 ifeq ($(DEBUG_FLAG),default)
125 __DEBUG_DEFINE_p_1 = --define __WXDEBUG__
128 ifeq ($(DEBUG_FLAG),1)
129 __DEBUG_DEFINE_p_1 = --define __WXDEBUG__
131 ifeq ($(USE_EXCEPTIONS),0)
132 __EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
134 ifeq ($(USE_EXCEPTIONS),0)
135 __EXCEPTIONS_DEFINE_p_1 = --define wxNO_EXCEPTIONS
138 __RTTI_DEFINE_p = -DwxNO_RTTI
141 __RTTI_DEFINE_p_1 = --define wxNO_RTTI
143 ifeq ($(USE_THREADS),0)
144 __THREAD_DEFINE_p = -DwxNO_THREADS
146 ifeq ($(USE_THREADS),0)
147 __THREAD_DEFINE_p_1 = --define wxNO_THREADS
150 __UNICODE_DEFINE_p = -D_UNICODE
153 __UNICODE_DEFINE_p_1 = --define _UNICODE
156 __MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
159 __MSLU_DEFINE_p_1 = --define wxUSE_UNICODE_MSLU=1
162 __DLLFLAG_p = -DWXUSINGDLL
165 __DLLFLAG_p_1 = --define WXUSINGDLL
167 ifeq ($(MONOLITHIC),0)
169 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_xml
171 ifeq ($(MONOLITHIC),0)
173 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_adv
175 ifeq ($(MONOLITHIC),0)
177 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_html
179 ifeq ($(MONOLITHIC),0)
181 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
183 ifeq ($(MONOLITHIC),0)
185 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
187 ifeq ($(MONOLITHIC),1)
189 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
192 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
195 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
198 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
201 __UNICOWS_LIB_p = -lunicows
203 ifeq ($(BUILD),debug)
204 ifeq ($(DEBUG_INFO),default)
208 ifeq ($(BUILD),release)
209 ifeq ($(DEBUG_INFO),default)
213 ifeq ($(DEBUG_INFO),0)
216 ifeq ($(DEBUG_INFO),1)
219 ifeq ($(USE_THREADS),0)
222 ifeq ($(USE_THREADS),1)
223 __THREADSFLAG = -mthreads
229 -if not exist $(OBJS) mkdir $(OBJS)
233 all: $(OBJS)\widgets.exe
236 -if exist $(OBJS)\*.o del $(OBJS)\*.o
237 -if exist $(OBJS)\*.d del $(OBJS)\*.d
238 -if exist $(OBJS)\widgets.exe del $(OBJS)\widgets.exe
240 $(OBJS)\widgets.exe: $(WIDGETS_OBJECTS) $(OBJS)\widgets_sample_rc.o
241 $(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
243 $(OBJS)\widgets_button.o: ./button.cpp
244 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
246 $(OBJS)\widgets_checkbox.o: ./checkbox.cpp
247 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
249 $(OBJS)\widgets_combobox.o: ./combobox.cpp
250 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
252 $(OBJS)\widgets_datepick.o: ./datepick.cpp
253 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
255 $(OBJS)\widgets_gauge.o: ./gauge.cpp
256 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
258 $(OBJS)\widgets_hyperlnk.o: ./hyperlnk.cpp
259 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
261 $(OBJS)\widgets_listbox.o: ./listbox.cpp
262 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
264 $(OBJS)\widgets_notebook.o: ./notebook.cpp
265 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
267 $(OBJS)\widgets_clrpicker.o: ./clrpicker.cpp
268 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
270 $(OBJS)\widgets_fontpicker.o: ./fontpicker.cpp
271 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
273 $(OBJS)\widgets_filepicker.o: ./filepicker.cpp
274 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
276 $(OBJS)\widgets_dirpicker.o: ./dirpicker.cpp
277 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
279 $(OBJS)\widgets_radiobox.o: ./radiobox.cpp
280 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
282 $(OBJS)\widgets_slider.o: ./slider.cpp
283 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
285 $(OBJS)\widgets_spinbtn.o: ./spinbtn.cpp
286 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
288 $(OBJS)\widgets_static.o: ./static.cpp
289 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
291 $(OBJS)\widgets_textctrl.o: ./textctrl.cpp
292 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
294 $(OBJS)\widgets_toggle.o: ./toggle.cpp
295 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
297 $(OBJS)\widgets_widgets.o: ./widgets.cpp
298 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
300 $(OBJS)\widgets_sample_rc.o: ./../sample.rc
301 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
306 # Dependencies tracking: