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