1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.2.2 (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
19 $(COMPILER_PREFIX)_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
20 LIBDIRNAME = .\..\..\lib\$(COMPILER_PREFIX)_$(LIBTYPE_SUFFIX)$(CFG)
22 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
23 WIDGETS_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG_2) $(__THREADSFLAG) \
24 $(GCCFLAGS) -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
25 $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
26 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \
27 $(__GFXCTX_DEFINE_p) -I$(SETUPHDIR) -I.\..\..\include -W -Wall -I. \
28 $(__DLLFLAG_p) -I.\..\..\samples -DNOPCH $(__RTTIFLAG_5) \
29 $(__EXCEPTIONSFLAG_6) -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)
31 $(OBJS)\widgets_bmpcombobox.o \
32 $(OBJS)\widgets_button.o \
33 $(OBJS)\widgets_checkbox.o \
34 $(OBJS)\widgets_choice.o \
35 $(OBJS)\widgets_clrpicker.o \
36 $(OBJS)\widgets_combobox.o \
37 $(OBJS)\widgets_datepick.o \
38 $(OBJS)\widgets_dirctrl.o \
39 $(OBJS)\widgets_dirpicker.o \
40 $(OBJS)\widgets_filepicker.o \
41 $(OBJS)\widgets_fontpicker.o \
42 $(OBJS)\widgets_gauge.o \
43 $(OBJS)\widgets_hyperlnk.o \
44 $(OBJS)\widgets_itemcontainer.o \
45 $(OBJS)\widgets_listbox.o \
46 $(OBJS)\widgets_notebook.o \
47 $(OBJS)\widgets_odcombobox.o \
48 $(OBJS)\widgets_radiobox.o \
49 $(OBJS)\widgets_searchctrl.o \
50 $(OBJS)\widgets_slider.o \
51 $(OBJS)\widgets_spinbtn.o \
52 $(OBJS)\widgets_static.o \
53 $(OBJS)\widgets_textctrl.o \
54 $(OBJS)\widgets_toggle.o \
55 $(OBJS)\widgets_widgets.o \
56 $(OBJS)\widgets_sample_rc.o
58 ### Conditionally set variables: ###
60 ifeq ($(GCC_VERSION),2.95)
61 GCCFLAGS = -fvtable-thunks
70 ifeq ($(DEBUG_FLAG),default)
74 ifeq ($(DEBUG_FLAG),1)
92 ifeq ($(MONOLITHIC),0)
95 ifeq ($(MONOLITHIC),1)
99 __OPTIMIZEFLAG_2 = -O0
101 ifeq ($(BUILD),release)
102 __OPTIMIZEFLAG_2 = -O2
105 __RTTIFLAG_5 = -fno-rtti
110 ifeq ($(USE_EXCEPTIONS),0)
111 __EXCEPTIONSFLAG_6 = -fno-exceptions
113 ifeq ($(USE_EXCEPTIONS),1)
117 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
120 __WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__
122 ifeq ($(BUILD),debug)
123 ifeq ($(DEBUG_FLAG),default)
124 __DEBUG_DEFINE_p = -D__WXDEBUG__
127 ifeq ($(DEBUG_FLAG),1)
128 __DEBUG_DEFINE_p = -D__WXDEBUG__
130 ifeq ($(BUILD),debug)
131 ifeq ($(DEBUG_FLAG),default)
132 __DEBUG_DEFINE_p_1 = --define __WXDEBUG__
135 ifeq ($(DEBUG_FLAG),1)
136 __DEBUG_DEFINE_p_1 = --define __WXDEBUG__
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 = -D_UNICODE
160 __UNICODE_DEFINE_p_1 = --define _UNICODE
163 __MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
166 __MSLU_DEFINE_p_1 = --define wxUSE_UNICODE_MSLU=1
168 ifeq ($(USE_GDIPLUS),1)
169 __GFXCTX_DEFINE_p = -DwxUSE_GRAPHICS_CONTEXT=1
171 ifeq ($(USE_GDIPLUS),1)
172 __GFXCTX_DEFINE_p_1 = --define wxUSE_GRAPHICS_CONTEXT=1
175 __DLLFLAG_p = -DWXUSINGDLL
178 __DLLFLAG_p_1 = --define WXUSINGDLL
180 ifeq ($(MONOLITHIC),0)
182 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_xml
184 ifeq ($(MONOLITHIC),0)
186 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_adv
188 ifeq ($(MONOLITHIC),0)
190 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_html
192 ifeq ($(MONOLITHIC),0)
194 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
196 ifeq ($(MONOLITHIC),0)
198 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
200 ifeq ($(MONOLITHIC),1)
202 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
205 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
208 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
211 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
214 __UNICOWS_LIB_p = -lunicows
216 ifeq ($(USE_GDIPLUS),1)
217 __GDIPLUS_LIB_p = -lgdiplus
219 ifeq ($(BUILD),debug)
220 ifeq ($(DEBUG_INFO),default)
224 ifeq ($(BUILD),release)
225 ifeq ($(DEBUG_INFO),default)
229 ifeq ($(DEBUG_INFO),0)
232 ifeq ($(DEBUG_INFO),1)
235 ifeq ($(USE_THREADS),0)
238 ifeq ($(USE_THREADS),1)
239 __THREADSFLAG = -mthreads
245 -if not exist $(OBJS) mkdir $(OBJS)
249 all: $(OBJS)\widgets.exe
252 -if exist $(OBJS)\*.o del $(OBJS)\*.o
253 -if exist $(OBJS)\*.d del $(OBJS)\*.d
254 -if exist $(OBJS)\widgets.exe del $(OBJS)\widgets.exe
256 $(OBJS)\widgets.exe: $(WIDGETS_OBJECTS) $(OBJS)\widgets_sample_rc.o
257 $(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
259 $(OBJS)\widgets_bmpcombobox.o: ./bmpcombobox.cpp
260 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
262 $(OBJS)\widgets_button.o: ./button.cpp
263 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
265 $(OBJS)\widgets_checkbox.o: ./checkbox.cpp
266 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
268 $(OBJS)\widgets_choice.o: ./choice.cpp
269 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
271 $(OBJS)\widgets_clrpicker.o: ./clrpicker.cpp
272 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
274 $(OBJS)\widgets_combobox.o: ./combobox.cpp
275 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
277 $(OBJS)\widgets_datepick.o: ./datepick.cpp
278 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
280 $(OBJS)\widgets_dirctrl.o: ./dirctrl.cpp
281 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
283 $(OBJS)\widgets_dirpicker.o: ./dirpicker.cpp
284 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
286 $(OBJS)\widgets_filepicker.o: ./filepicker.cpp
287 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
289 $(OBJS)\widgets_fontpicker.o: ./fontpicker.cpp
290 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
292 $(OBJS)\widgets_gauge.o: ./gauge.cpp
293 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
295 $(OBJS)\widgets_hyperlnk.o: ./hyperlnk.cpp
296 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
298 $(OBJS)\widgets_itemcontainer.o: ./itemcontainer.cpp
299 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
301 $(OBJS)\widgets_listbox.o: ./listbox.cpp
302 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
304 $(OBJS)\widgets_notebook.o: ./notebook.cpp
305 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
307 $(OBJS)\widgets_odcombobox.o: ./odcombobox.cpp
308 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
310 $(OBJS)\widgets_radiobox.o: ./radiobox.cpp
311 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
313 $(OBJS)\widgets_searchctrl.o: ./searchctrl.cpp
314 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
316 $(OBJS)\widgets_slider.o: ./slider.cpp
317 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
319 $(OBJS)\widgets_spinbtn.o: ./spinbtn.cpp
320 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
322 $(OBJS)\widgets_static.o: ./static.cpp
323 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
325 $(OBJS)\widgets_textctrl.o: ./textctrl.cpp
326 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
328 $(OBJS)\widgets_toggle.o: ./toggle.cpp
329 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
331 $(OBJS)\widgets_widgets.o: ./widgets.cpp
332 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
334 $(OBJS)\widgets_sample_rc.o: ./../sample.rc
335 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
340 # Dependencies tracking: