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