]> git.saurik.com Git - wxWidgets.git/blame - samples/widgets/makefile.gcc
Generate clipboard events for wxComboBox in wxGTK too.
[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
25 $(GCCFLAGS) -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) \\r
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
31 -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)\r
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
66ifeq ($(GCC_VERSION),2.95)\r
67GCCFLAGS = -fvtable-thunks\r
68endif\r
69ifeq ($(USE_GUI),0)\r
70PORTNAME = base\r
71endif\r
72ifeq ($(USE_GUI),1)\r
73PORTNAME = msw\r
74endif\r
14b682f7
VZ
75ifeq ($(OFFICIAL_BUILD),1)
76COMPILER_VERSION = ERROR-COMPILER-VERSION-MUST-BE-SET-FOR-OFFICIAL-BUILD
77endif
f82b7036
KO
78ifeq ($(BUILD),debug)\r
79WXDEBUGFLAG = d\r
80endif\r
81ifeq ($(UNICODE),1)\r
82WXUNICODEFLAG = u\r
83endif\r
84ifeq ($(WXUNIV),1)\r
85WXUNIVNAME = univ\r
86endif\r
87ifeq ($(SHARED),1)\r
88WXDLLFLAG = dll\r
89endif\r
90ifeq ($(SHARED),0)\r
91LIBTYPE_SUFFIX = lib\r
92endif\r
93ifeq ($(SHARED),1)\r
94LIBTYPE_SUFFIX = dll\r
95endif\r
96ifeq ($(MONOLITHIC),0)\r
97EXTRALIBS_FOR_BASE = \r
98endif\r
99ifeq ($(MONOLITHIC),1)\r
51ec29ea 100EXTRALIBS_FOR_BASE = \r
f82b7036
KO
101endif\r
102ifeq ($(BUILD),debug)\r
103__OPTIMIZEFLAG_2 = -O0\r
104endif\r
105ifeq ($(BUILD),release)\r
106__OPTIMIZEFLAG_2 = -O2\r
107endif\r
108ifeq ($(USE_RTTI),0)\r
109__RTTIFLAG_5 = -fno-rtti\r
110endif\r
111ifeq ($(USE_RTTI),1)\r
112__RTTIFLAG_5 = \r
113endif\r
114ifeq ($(USE_EXCEPTIONS),0)\r
115__EXCEPTIONSFLAG_6 = -fno-exceptions\r
116endif\r
117ifeq ($(USE_EXCEPTIONS),1)\r
118__EXCEPTIONSFLAG_6 = \r
119endif\r
120ifeq ($(WXUNIV),1)\r
121__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__\r
122endif\r
123ifeq ($(WXUNIV),1)\r
124__WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__\r
125endif\r
126ifeq ($(DEBUG_FLAG),0)\r
127__DEBUG_DEFINE_p = -DwxDEBUG_LEVEL=0\r
128endif\r
129ifeq ($(DEBUG_FLAG),0)\r
130__DEBUG_DEFINE_p_1 = --define wxDEBUG_LEVEL=0\r
131endif\r
00fb97de
KO
132ifeq ($(BUILD),release)\r
133__NDEBUG_DEFINE_p = -DNDEBUG\r
134endif\r
135ifeq ($(BUILD),release)\r
136__NDEBUG_DEFINE_p_1 = --define NDEBUG\r
137endif\r
f82b7036
KO
138ifeq ($(USE_EXCEPTIONS),0)\r
139__EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS\r
140endif\r
141ifeq ($(USE_EXCEPTIONS),0)\r
142__EXCEPTIONS_DEFINE_p_1 = --define wxNO_EXCEPTIONS\r
143endif\r
144ifeq ($(USE_RTTI),0)\r
145__RTTI_DEFINE_p = -DwxNO_RTTI\r
146endif\r
147ifeq ($(USE_RTTI),0)\r
148__RTTI_DEFINE_p_1 = --define wxNO_RTTI\r
149endif\r
150ifeq ($(USE_THREADS),0)\r
151__THREAD_DEFINE_p = -DwxNO_THREADS\r
152endif\r
153ifeq ($(USE_THREADS),0)\r
154__THREAD_DEFINE_p_1 = --define wxNO_THREADS\r
155endif\r
156ifeq ($(UNICODE),0)\r
157__UNICODE_DEFINE_p = -DwxUSE_UNICODE=0\r
158endif\r
159ifeq ($(UNICODE),1)\r
160__UNICODE_DEFINE_p = -D_UNICODE\r
161endif\r
162ifeq ($(UNICODE),0)\r
163__UNICODE_DEFINE_p_1 = --define wxUSE_UNICODE=0\r
164endif\r
165ifeq ($(UNICODE),1)\r
166__UNICODE_DEFINE_p_1 = --define _UNICODE\r
167endif\r
168ifeq ($(MSLU),1)\r
169__MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1\r
170endif\r
171ifeq ($(MSLU),1)\r
172__MSLU_DEFINE_p_1 = --define wxUSE_UNICODE_MSLU=1\r
173endif\r
f82b7036
KO
174ifeq ($(USE_CAIRO),1)\r
175____CAIRO_INCLUDEDIR_FILENAMES_p = -I$(CAIRO_ROOT)\include\cairo\r
176endif\r
177ifeq ($(USE_CAIRO),1)\r
178__CAIRO_INCLUDEDIR_p = --include-dir $(CAIRO_ROOT)/include/cairo\r
179endif\r
180ifeq ($(SHARED),1)\r
181__DLLFLAG_p = -DWXUSINGDLL\r
182endif\r
183ifeq ($(SHARED),1)\r
184__DLLFLAG_p_1 = --define WXUSINGDLL\r
185endif\r
186ifeq ($(MONOLITHIC),0)\r
187__WXLIB_ADV_p = \\r
188 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_adv\r
189endif\r
190ifeq ($(MONOLITHIC),0)\r
191__WXLIB_CORE_p = \\r
192 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core\r
193endif\r
194ifeq ($(MONOLITHIC),0)\r
195__WXLIB_BASE_p = \\r
196 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)\r
197endif\r
198ifeq ($(MONOLITHIC),1)\r
199__WXLIB_MONO_p = \\r
200 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)\r
201endif\r
202ifeq ($(USE_GUI),1)\r
203__LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)\r
204endif\r
205ifeq ($(USE_GUI),1)\r
206__LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)\r
207endif\r
208ifeq ($(USE_GUI),1)\r
209__LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)\r
210endif\r
211ifeq ($(MSLU),1)\r
212__UNICOWS_LIB_p = -lunicows\r
213endif\r
f82b7036
KO
214ifeq ($(USE_CAIRO),1)\r
215__CAIRO_LIB_p = -lcairo\r
216endif\r
217ifeq ($(USE_CAIRO),1)\r
218____CAIRO_LIBDIR_FILENAMES_p = -L$(CAIRO_ROOT)\lib\r
219endif\r
220ifeq ($(BUILD),debug)\r
221ifeq ($(DEBUG_INFO),default)\r
222__DEBUGINFO = -g\r
223endif\r
224endif\r
225ifeq ($(BUILD),release)\r
226ifeq ($(DEBUG_INFO),default)\r
227__DEBUGINFO = \r
228endif\r
229endif\r
230ifeq ($(DEBUG_INFO),0)\r
231__DEBUGINFO = \r
232endif\r
233ifeq ($(DEBUG_INFO),1)\r
234__DEBUGINFO = -g\r
235endif\r
236ifeq ($(USE_THREADS),0)\r
237__THREADSFLAG = \r
238endif\r
239ifeq ($(USE_THREADS),1)\r
240__THREADSFLAG = -mthreads\r
241endif\r
242\r
243\r
244all: $(OBJS)\r
245$(OBJS):\r
246 -if not exist $(OBJS) mkdir $(OBJS)\r
247\r
248### Targets: ###\r
249\r
250all: $(OBJS)\widgets.exe\r
251\r
252clean: \r
253 -if exist $(OBJS)\*.o del $(OBJS)\*.o\r
254 -if exist $(OBJS)\*.d del $(OBJS)\*.d\r
255 -if exist $(OBJS)\widgets.exe del $(OBJS)\widgets.exe\r
256\r
257$(OBJS)\widgets.exe: $(WIDGETS_OBJECTS) $(OBJS)\widgets_sample_rc.o\r
b796194b 258 $(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) -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\r
f82b7036
KO
259\r
260$(OBJS)\widgets_bmpcombobox.o: ./bmpcombobox.cpp\r
261 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<\r
262\r
263$(OBJS)\widgets_button.o: ./button.cpp\r
264 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<\r
265\r
266$(OBJS)\widgets_checkbox.o: ./checkbox.cpp\r
267 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<\r
268\r
269$(OBJS)\widgets_choice.o: ./choice.cpp\r
270 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<\r
271\r
272$(OBJS)\widgets_clrpicker.o: ./clrpicker.cpp\r
273 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<\r
274\r
275$(OBJS)\widgets_combobox.o: ./combobox.cpp\r
276 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<\r
277\r
278$(OBJS)\widgets_datepick.o: ./datepick.cpp\r
279 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<\r
280\r
281$(OBJS)\widgets_dirctrl.o: ./dirctrl.cpp\r
282 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<\r
283\r
284$(OBJS)\widgets_dirpicker.o: ./dirpicker.cpp\r
285 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<\r
286\r
287$(OBJS)\widgets_editlbox.o: ./editlbox.cpp\r
288 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<\r
289\r
290$(OBJS)\widgets_filectrl.o: ./filectrl.cpp\r
291 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<\r
292\r
293$(OBJS)\widgets_filepicker.o: ./filepicker.cpp\r
294 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<\r
295\r
296$(OBJS)\widgets_fontpicker.o: ./fontpicker.cpp\r
297 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<\r
298\r
299$(OBJS)\widgets_gauge.o: ./gauge.cpp\r
300 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<\r
301\r
302$(OBJS)\widgets_hyperlnk.o: ./hyperlnk.cpp\r
303 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<\r
304\r
305$(OBJS)\widgets_itemcontainer.o: ./itemcontainer.cpp\r
306 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<\r
307\r
308$(OBJS)\widgets_listbox.o: ./listbox.cpp\r
309 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<\r
310\r
311$(OBJS)\widgets_notebook.o: ./notebook.cpp\r
312 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<\r
313\r
314$(OBJS)\widgets_odcombobox.o: ./odcombobox.cpp\r
315 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<\r
316\r
317$(OBJS)\widgets_radiobox.o: ./radiobox.cpp\r
318 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<\r
319\r
320$(OBJS)\widgets_searchctrl.o: ./searchctrl.cpp\r
321 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<\r
322\r
323$(OBJS)\widgets_slider.o: ./slider.cpp\r
324 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<\r
325\r
326$(OBJS)\widgets_spinbtn.o: ./spinbtn.cpp\r
327 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<\r
328\r
329$(OBJS)\widgets_static.o: ./static.cpp\r
330 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<\r
331\r
332$(OBJS)\widgets_statbmp.o: ./statbmp.cpp\r
333 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<\r
334\r
335$(OBJS)\widgets_textctrl.o: ./textctrl.cpp\r
336 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<\r
337\r
51ec29ea
VZ
338$(OBJS)\widgets_timepick.o: ./timepick.cpp\r
339 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<\r
340\r
f82b7036
KO
341$(OBJS)\widgets_toggle.o: ./toggle.cpp\r
342 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<\r
343\r
344$(OBJS)\widgets_widgets.o: ./widgets.cpp\r
345 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<\r
346\r
347$(OBJS)\widgets_sample_rc.o: ./../sample.rc\r
b796194b 348 windres --use-temp-file -i$< -o$@ --define __WXMSW__ $(__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\r
f82b7036
KO
349\r
350.PHONY: all clean\r
351\r
352\r
353SHELL := $(COMSPEC)\r
354\r
355# Dependencies tracking:\r
356-include $(OBJS)/*.d\r