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