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 $(__GFXCTX_DEFINE_p) -I$(SETUPHDIR) -I.\..\..\include -W -Wall -I. \
27 $(__DLLFLAG_p) -I.\..\..\samples -DNOPCH $(__RTTIFLAG_5) \
28 $(__EXCEPTIONSFLAG_6) -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)
30 $(OBJS)\widgets_bmpcombobox.o \
31 $(OBJS)\widgets_button.o \
32 $(OBJS)\widgets_checkbox.o \
33 $(OBJS)\widgets_clrpicker.o \
34 $(OBJS)\widgets_combobox.o \
35 $(OBJS)\widgets_datepick.o \
36 $(OBJS)\widgets_dirctrl.o \
37 $(OBJS)\widgets_dirpicker.o \
38 $(OBJS)\widgets_filepicker.o \
39 $(OBJS)\widgets_fontpicker.o \
40 $(OBJS)\widgets_gauge.o \
41 $(OBJS)\widgets_hyperlnk.o \
42 $(OBJS)\widgets_listbox.o \
43 $(OBJS)\widgets_notebook.o \
44 $(OBJS)\widgets_odcombobox.o \
45 $(OBJS)\widgets_radiobox.o \
46 $(OBJS)\widgets_slider.o \
47 $(OBJS)\widgets_spinbtn.o \
48 $(OBJS)\widgets_static.o \
49 $(OBJS)\widgets_textctrl.o \
50 $(OBJS)\widgets_toggle.o \
51 $(OBJS)\widgets_widgets.o \
52 $(OBJS)\widgets_sample_rc.o
54 ### Conditionally set variables: ###
56 ifeq ($(GCC_VERSION),2.95)
57 GCCFLAGS = -fvtable-thunks
66 ifeq ($(DEBUG_FLAG),default)
70 ifeq ($(DEBUG_FLAG),1)
88 ifeq ($(MONOLITHIC),0)
91 ifeq ($(MONOLITHIC),1)
95 __OPTIMIZEFLAG_2 = -O0
97 ifeq ($(BUILD),release)
98 __OPTIMIZEFLAG_2 = -O2
101 __RTTIFLAG_5 = -fno-rtti
106 ifeq ($(USE_EXCEPTIONS),0)
107 __EXCEPTIONSFLAG_6 = -fno-exceptions
109 ifeq ($(USE_EXCEPTIONS),1)
113 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
116 __WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__
118 ifeq ($(BUILD),debug)
119 ifeq ($(DEBUG_FLAG),default)
120 __DEBUG_DEFINE_p = -D__WXDEBUG__
123 ifeq ($(DEBUG_FLAG),1)
124 __DEBUG_DEFINE_p = -D__WXDEBUG__
126 ifeq ($(BUILD),debug)
127 ifeq ($(DEBUG_FLAG),default)
128 __DEBUG_DEFINE_p_1 = --define __WXDEBUG__
131 ifeq ($(DEBUG_FLAG),1)
132 __DEBUG_DEFINE_p_1 = --define __WXDEBUG__
134 ifeq ($(USE_EXCEPTIONS),0)
135 __EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
137 ifeq ($(USE_EXCEPTIONS),0)
138 __EXCEPTIONS_DEFINE_p_1 = --define wxNO_EXCEPTIONS
141 __RTTI_DEFINE_p = -DwxNO_RTTI
144 __RTTI_DEFINE_p_1 = --define wxNO_RTTI
146 ifeq ($(USE_THREADS),0)
147 __THREAD_DEFINE_p = -DwxNO_THREADS
149 ifeq ($(USE_THREADS),0)
150 __THREAD_DEFINE_p_1 = --define wxNO_THREADS
153 __UNICODE_DEFINE_p = -D_UNICODE
156 __UNICODE_DEFINE_p_1 = --define _UNICODE
159 __MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
162 __MSLU_DEFINE_p_1 = --define wxUSE_UNICODE_MSLU=1
164 ifeq ($(USE_GDIPLUS),1)
165 __GFXCTX_DEFINE_p = -DwxUSE_GRAPHICS_CONTEXT=1
167 ifeq ($(USE_GDIPLUS),1)
168 __GFXCTX_DEFINE_p_1 = --define wxUSE_GRAPHICS_CONTEXT=1
171 __DLLFLAG_p = -DWXUSINGDLL
174 __DLLFLAG_p_1 = --define WXUSINGDLL
176 ifeq ($(MONOLITHIC),0)
178 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_xml
180 ifeq ($(MONOLITHIC),0)
182 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_adv
184 ifeq ($(MONOLITHIC),0)
186 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_html
188 ifeq ($(MONOLITHIC),0)
190 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
192 ifeq ($(MONOLITHIC),0)
194 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
196 ifeq ($(MONOLITHIC),1)
198 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
201 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
204 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
207 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
210 __UNICOWS_LIB_p = -lunicows
212 ifeq ($(USE_GDIPLUS),1)
213 __GDIPLUS_LIB_p = -lgdiplus
215 ifeq ($(BUILD),debug)
216 ifeq ($(DEBUG_INFO),default)
220 ifeq ($(BUILD),release)
221 ifeq ($(DEBUG_INFO),default)
225 ifeq ($(DEBUG_INFO),0)
228 ifeq ($(DEBUG_INFO),1)
231 ifeq ($(USE_THREADS),0)
234 ifeq ($(USE_THREADS),1)
235 __THREADSFLAG = -mthreads
241 -if not exist $(OBJS) mkdir $(OBJS)
245 all: $(OBJS)\widgets.exe
248 -if exist $(OBJS)\*.o del $(OBJS)\*.o
249 -if exist $(OBJS)\*.d del $(OBJS)\*.d
250 -if exist $(OBJS)\widgets.exe del $(OBJS)\widgets.exe
252 $(OBJS)\widgets.exe: $(WIDGETS_OBJECTS) $(OBJS)\widgets_sample_rc.o
253 $(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) $(__GDIPLUS_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lodbc32
255 $(OBJS)\widgets_bmpcombobox.o: ./bmpcombobox.cpp
256 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
258 $(OBJS)\widgets_button.o: ./button.cpp
259 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
261 $(OBJS)\widgets_checkbox.o: ./checkbox.cpp
262 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
264 $(OBJS)\widgets_clrpicker.o: ./clrpicker.cpp
265 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
267 $(OBJS)\widgets_combobox.o: ./combobox.cpp
268 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
270 $(OBJS)\widgets_datepick.o: ./datepick.cpp
271 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
273 $(OBJS)\widgets_dirctrl.o: ./dirctrl.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_filepicker.o: ./filepicker.cpp
280 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
282 $(OBJS)\widgets_fontpicker.o: ./fontpicker.cpp
283 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
285 $(OBJS)\widgets_gauge.o: ./gauge.cpp
286 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
288 $(OBJS)\widgets_hyperlnk.o: ./hyperlnk.cpp
289 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
291 $(OBJS)\widgets_listbox.o: ./listbox.cpp
292 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
294 $(OBJS)\widgets_notebook.o: ./notebook.cpp
295 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
297 $(OBJS)\widgets_odcombobox.o: ./odcombobox.cpp
298 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
300 $(OBJS)\widgets_radiobox.o: ./radiobox.cpp
301 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
303 $(OBJS)\widgets_slider.o: ./slider.cpp
304 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
306 $(OBJS)\widgets_spinbtn.o: ./spinbtn.cpp
307 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
309 $(OBJS)\widgets_static.o: ./static.cpp
310 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
312 $(OBJS)\widgets_textctrl.o: ./textctrl.cpp
313 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
315 $(OBJS)\widgets_toggle.o: ./toggle.cpp
316 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
318 $(OBJS)\widgets_widgets.o: ./widgets.cpp
319 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
321 $(OBJS)\widgets_sample_rc.o: ./../sample.rc
322 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 --include-dir . $(__DLLFLAG_p_1) --include-dir ./../../samples --define NOPCH
327 # Dependencies tracking: