]> git.saurik.com Git - wxWidgets.git/blob - samples/widgets/makefile.gcc
Test for NULL associated frame in doc/view event handling code.
[wxWidgets.git] / samples / widgets / makefile.gcc
1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.2.9 (http://www.bakefile.org)
4 # Do not modify, all changes will be overwritten!
5 # =========================================================================
6
7 include ../../build/msw/config.gcc
8
9 # -------------------------------------------------------------------------
10 # Do not modify the rest of this file!
11 # -------------------------------------------------------------------------
12
13 ### Variables: ###
14
15 CPPDEPS = -MT$@ -MF$@.d -MD -MP
16 WX_RELEASE_NODOT = 29
17 COMPILER_PREFIX = gcc
18 OBJS = \
19 $(COMPILER_PREFIX)$(COMPILER_VERSION)_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
20 LIBDIRNAME = \
21 .\..\..\lib\$(COMPILER_PREFIX)$(COMPILER_VERSION)_$(LIBTYPE_SUFFIX)$(CFG)
22 SETUPHDIR = \
23 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
24 WIDGETS_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG_2) $(__THREADSFLAG) \
25 $(GCCFLAGS) -DHAVE_W32API_H -D__WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p) \
26 $(__DEBUG_DEFINE_p) $(__NDEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) \
27 $(__RTTI_DEFINE_p) $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) \
28 $(__MSLU_DEFINE_p) -I$(SETUPHDIR) -I.\..\..\include \
29 $(____CAIRO_INCLUDEDIR_FILENAMES_p) -W -Wall -I. $(__DLLFLAG_p) \
30 -I.\..\..\samples -DNOPCH $(__RTTIFLAG_5) $(__EXCEPTIONSFLAG_6) \
31 -Wno-ctor-dtor-privacy $(CXXFLAGS_GTK_WINDOWS_GCC) $(CPPFLAGS) $(CXXFLAGS)
32 WIDGETS_OBJECTS = \
33 $(OBJS)\widgets_bmpcombobox.o \
34 $(OBJS)\widgets_button.o \
35 $(OBJS)\widgets_checkbox.o \
36 $(OBJS)\widgets_choice.o \
37 $(OBJS)\widgets_clrpicker.o \
38 $(OBJS)\widgets_combobox.o \
39 $(OBJS)\widgets_datepick.o \
40 $(OBJS)\widgets_dirctrl.o \
41 $(OBJS)\widgets_dirpicker.o \
42 $(OBJS)\widgets_editlbox.o \
43 $(OBJS)\widgets_filectrl.o \
44 $(OBJS)\widgets_filepicker.o \
45 $(OBJS)\widgets_fontpicker.o \
46 $(OBJS)\widgets_gauge.o \
47 $(OBJS)\widgets_hyperlnk.o \
48 $(OBJS)\widgets_itemcontainer.o \
49 $(OBJS)\widgets_listbox.o \
50 $(OBJS)\widgets_notebook.o \
51 $(OBJS)\widgets_odcombobox.o \
52 $(OBJS)\widgets_radiobox.o \
53 $(OBJS)\widgets_searchctrl.o \
54 $(OBJS)\widgets_slider.o \
55 $(OBJS)\widgets_spinbtn.o \
56 $(OBJS)\widgets_static.o \
57 $(OBJS)\widgets_statbmp.o \
58 $(OBJS)\widgets_textctrl.o \
59 $(OBJS)\widgets_timepick.o \
60 $(OBJS)\widgets_toggle.o \
61 $(OBJS)\widgets_widgets.o \
62 $(OBJS)\widgets_sample_rc.o
63
64 ### Conditionally set variables: ###
65
66 ifeq ($(TOOLKIT),GTK)
67 WIN32_TOOLKIT_LOWERCASE = gtk
68 endif
69 ifeq ($(TOOLKIT),MSW)
70 WIN32_TOOLKIT_LOWERCASE = msw
71 endif
72 ifeq ($(GCC_VERSION),2.95)
73 GCCFLAGS = -fvtable-thunks
74 endif
75 ifeq ($(USE_GUI),0)
76 PORTNAME = base
77 endif
78 ifeq ($(USE_GUI),1)
79 PORTNAME = $(WIN32_TOOLKIT_LOWERCASE)$(TOOLKIT_VERSION)
80 endif
81 ifeq ($(TOOLKIT),MAC)
82 WXBASEPORT = _carbon
83 endif
84 ifeq ($(OFFICIAL_BUILD),1)
85 COMPILER_VERSION = ERROR-COMPILER-VERSION-MUST-BE-SET-FOR-OFFICIAL-BUILD
86 endif
87 ifeq ($(BUILD),debug)
88 WXDEBUGFLAG = d
89 endif
90 ifeq ($(UNICODE),1)
91 WXUNICODEFLAG = u
92 endif
93 ifeq ($(WXUNIV),1)
94 WXUNIVNAME = univ
95 endif
96 ifeq ($(SHARED),1)
97 WXDLLFLAG = dll
98 endif
99 ifeq ($(SHARED),0)
100 LIBTYPE_SUFFIX = lib
101 endif
102 ifeq ($(SHARED),1)
103 LIBTYPE_SUFFIX = dll
104 endif
105 ifeq ($(MONOLITHIC),0)
106 EXTRALIBS_FOR_BASE =
107 endif
108 ifeq ($(MONOLITHIC),1)
109 EXTRALIBS_FOR_BASE =
110 endif
111 ifeq ($(TOOLKIT),GTK)
112 CXXFLAGS_GTK_WINDOWS_GCC = -mms-bitfields
113 endif
114 ifeq ($(TOOLKIT),GTK)
115 ifeq ($(TOOLKIT_VERSION),2)
116 LIB_GTK = gtk-win32-2.0.lib gdk-win32-2.0.lib pangocairo-1.0.lib \
117 gdk_pixbuf-2.0.lib cairo.lib pango-1.0.lib gobject-2.0.lib gthread-2.0.lib \
118 glib-2.0.lib
119 endif
120 endif
121 ifeq ($(BUILD),debug)
122 __OPTIMIZEFLAG_2 = -O0
123 endif
124 ifeq ($(BUILD),release)
125 __OPTIMIZEFLAG_2 = -O2
126 endif
127 ifeq ($(USE_RTTI),0)
128 __RTTIFLAG_5 = -fno-rtti
129 endif
130 ifeq ($(USE_RTTI),1)
131 __RTTIFLAG_5 =
132 endif
133 ifeq ($(USE_EXCEPTIONS),0)
134 __EXCEPTIONSFLAG_6 = -fno-exceptions
135 endif
136 ifeq ($(USE_EXCEPTIONS),1)
137 __EXCEPTIONSFLAG_6 =
138 endif
139 ifeq ($(WXUNIV),1)
140 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
141 endif
142 ifeq ($(WXUNIV),1)
143 __WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__
144 endif
145 ifeq ($(DEBUG_FLAG),0)
146 __DEBUG_DEFINE_p = -DwxDEBUG_LEVEL=0
147 endif
148 ifeq ($(DEBUG_FLAG),0)
149 __DEBUG_DEFINE_p_1 = --define wxDEBUG_LEVEL=0
150 endif
151 ifeq ($(BUILD),release)
152 __NDEBUG_DEFINE_p = -DNDEBUG
153 endif
154 ifeq ($(BUILD),release)
155 __NDEBUG_DEFINE_p_1 = --define NDEBUG
156 endif
157 ifeq ($(USE_EXCEPTIONS),0)
158 __EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
159 endif
160 ifeq ($(USE_EXCEPTIONS),0)
161 __EXCEPTIONS_DEFINE_p_1 = --define wxNO_EXCEPTIONS
162 endif
163 ifeq ($(USE_RTTI),0)
164 __RTTI_DEFINE_p = -DwxNO_RTTI
165 endif
166 ifeq ($(USE_RTTI),0)
167 __RTTI_DEFINE_p_1 = --define wxNO_RTTI
168 endif
169 ifeq ($(USE_THREADS),0)
170 __THREAD_DEFINE_p = -DwxNO_THREADS
171 endif
172 ifeq ($(USE_THREADS),0)
173 __THREAD_DEFINE_p_1 = --define wxNO_THREADS
174 endif
175 ifeq ($(UNICODE),0)
176 __UNICODE_DEFINE_p = -DwxUSE_UNICODE=0
177 endif
178 ifeq ($(UNICODE),1)
179 __UNICODE_DEFINE_p = -D_UNICODE
180 endif
181 ifeq ($(UNICODE),0)
182 __UNICODE_DEFINE_p_1 = --define wxUSE_UNICODE=0
183 endif
184 ifeq ($(UNICODE),1)
185 __UNICODE_DEFINE_p_1 = --define _UNICODE
186 endif
187 ifeq ($(MSLU),1)
188 __MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
189 endif
190 ifeq ($(MSLU),1)
191 __MSLU_DEFINE_p_1 = --define wxUSE_UNICODE_MSLU=1
192 endif
193 ifeq ($(USE_CAIRO),1)
194 ____CAIRO_INCLUDEDIR_FILENAMES_p = -I$(CAIRO_ROOT)\include\cairo
195 endif
196 ifeq ($(USE_CAIRO),1)
197 __CAIRO_INCLUDEDIR_p = --include-dir $(CAIRO_ROOT)/include/cairo
198 endif
199 ifeq ($(SHARED),1)
200 __DLLFLAG_p = -DWXUSINGDLL
201 endif
202 ifeq ($(SHARED),1)
203 __DLLFLAG_p_1 = --define WXUSINGDLL
204 endif
205 ifeq ($(MONOLITHIC),0)
206 __WXLIB_ADV_p = \
207 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_adv
208 endif
209 ifeq ($(MONOLITHIC),0)
210 __WXLIB_CORE_p = \
211 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
212 endif
213 ifeq ($(MONOLITHIC),0)
214 __WXLIB_BASE_p = \
215 -lwxbase$(WXBASEPORT)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
216 endif
217 ifeq ($(MONOLITHIC),1)
218 __WXLIB_MONO_p = \
219 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
220 endif
221 ifeq ($(USE_GUI),1)
222 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
223 endif
224 ifeq ($(USE_GUI),1)
225 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
226 endif
227 ifeq ($(USE_GUI),1)
228 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
229 endif
230 ifeq ($(MSLU),1)
231 __UNICOWS_LIB_p = -lunicows
232 endif
233 ifeq ($(USE_CAIRO),1)
234 __CAIRO_LIB_p = -lcairo
235 endif
236 ifeq ($(USE_CAIRO),1)
237 ____CAIRO_LIBDIR_FILENAMES_p = -L$(CAIRO_ROOT)\lib
238 endif
239 ifeq ($(BUILD),debug)
240 ifeq ($(DEBUG_INFO),default)
241 __DEBUGINFO = -g
242 endif
243 endif
244 ifeq ($(BUILD),release)
245 ifeq ($(DEBUG_INFO),default)
246 __DEBUGINFO =
247 endif
248 endif
249 ifeq ($(DEBUG_INFO),0)
250 __DEBUGINFO =
251 endif
252 ifeq ($(DEBUG_INFO),1)
253 __DEBUGINFO = -g
254 endif
255 ifeq ($(USE_THREADS),0)
256 __THREADSFLAG =
257 endif
258 ifeq ($(USE_THREADS),1)
259 __THREADSFLAG = -mthreads
260 endif
261
262
263 all: $(OBJS)
264 $(OBJS):
265 -if not exist $(OBJS) mkdir $(OBJS)
266
267 ### Targets: ###
268
269 all: $(OBJS)\widgets.exe
270
271 clean:
272 -if exist $(OBJS)\*.o del $(OBJS)\*.o
273 -if exist $(OBJS)\*.d del $(OBJS)\*.d
274 -if exist $(OBJS)\widgets.exe del $(OBJS)\widgets.exe
275
276 $(OBJS)\widgets.exe: $(WIDGETS_OBJECTS) $(OBJS)\widgets_sample_rc.o
277 $(CXX) -o $@ $(WIDGETS_OBJECTS) $(__DEBUGINFO) $(__THREADSFLAG) -L$(LIBDIRNAME) -Wl,--subsystem,windows -mwindows $(____CAIRO_LIBDIR_FILENAMES_p) $(LDFLAGS) $(__WXLIB_ADV_p) $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) $(LIB_GTK) -lwxzlib$(WXDEBUGFLAG) -lwxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG) -lwxexpat$(WXDEBUGFLAG) $(EXTRALIBS_FOR_BASE) $(__UNICOWS_LIB_p) $(__CAIRO_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lwininet
278
279 $(OBJS)\widgets_bmpcombobox.o: ./bmpcombobox.cpp
280 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
281
282 $(OBJS)\widgets_button.o: ./button.cpp
283 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
284
285 $(OBJS)\widgets_checkbox.o: ./checkbox.cpp
286 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
287
288 $(OBJS)\widgets_choice.o: ./choice.cpp
289 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
290
291 $(OBJS)\widgets_clrpicker.o: ./clrpicker.cpp
292 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
293
294 $(OBJS)\widgets_combobox.o: ./combobox.cpp
295 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
296
297 $(OBJS)\widgets_datepick.o: ./datepick.cpp
298 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
299
300 $(OBJS)\widgets_dirctrl.o: ./dirctrl.cpp
301 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
302
303 $(OBJS)\widgets_dirpicker.o: ./dirpicker.cpp
304 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
305
306 $(OBJS)\widgets_editlbox.o: ./editlbox.cpp
307 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
308
309 $(OBJS)\widgets_filectrl.o: ./filectrl.cpp
310 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
311
312 $(OBJS)\widgets_filepicker.o: ./filepicker.cpp
313 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
314
315 $(OBJS)\widgets_fontpicker.o: ./fontpicker.cpp
316 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
317
318 $(OBJS)\widgets_gauge.o: ./gauge.cpp
319 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
320
321 $(OBJS)\widgets_hyperlnk.o: ./hyperlnk.cpp
322 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
323
324 $(OBJS)\widgets_itemcontainer.o: ./itemcontainer.cpp
325 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
326
327 $(OBJS)\widgets_listbox.o: ./listbox.cpp
328 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
329
330 $(OBJS)\widgets_notebook.o: ./notebook.cpp
331 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
332
333 $(OBJS)\widgets_odcombobox.o: ./odcombobox.cpp
334 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
335
336 $(OBJS)\widgets_radiobox.o: ./radiobox.cpp
337 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
338
339 $(OBJS)\widgets_searchctrl.o: ./searchctrl.cpp
340 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
341
342 $(OBJS)\widgets_slider.o: ./slider.cpp
343 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
344
345 $(OBJS)\widgets_spinbtn.o: ./spinbtn.cpp
346 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
347
348 $(OBJS)\widgets_static.o: ./static.cpp
349 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
350
351 $(OBJS)\widgets_statbmp.o: ./statbmp.cpp
352 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
353
354 $(OBJS)\widgets_textctrl.o: ./textctrl.cpp
355 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
356
357 $(OBJS)\widgets_timepick.o: ./timepick.cpp
358 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
359
360 $(OBJS)\widgets_toggle.o: ./toggle.cpp
361 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
362
363 $(OBJS)\widgets_widgets.o: ./widgets.cpp
364 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
365
366 $(OBJS)\widgets_sample_rc.o: ./../sample.rc
367 windres --use-temp-file -i$< -o$@ --define __WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p_1) $(__DEBUG_DEFINE_p_1) $(__NDEBUG_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 $(__CAIRO_INCLUDEDIR_p) --include-dir . $(__DLLFLAG_p_1) --include-dir ./../../samples --define NOPCH
368
369 .PHONY: all clean
370
371
372 SHELL := $(COMSPEC)
373
374 # Dependencies tracking:
375 -include $(OBJS)/*.d