]> git.saurik.com Git - wxWidgets.git/blame_incremental - samples/widgets/makefile.gcc
Connect changed page event after subpages are created so book->SetSelection does...
[wxWidgets.git] / samples / widgets / makefile.gcc
... / ...
CommitLineData
1# =========================================================================
2# This makefile was generated by
3# Bakefile 0.2.0 (http://bakefile.sourceforge.net)
4# Do not modify, all changes will be overwritten!
5# =========================================================================
6
7include ../../build/msw/config.gcc
8
9# -------------------------------------------------------------------------
10# Do not modify the rest of this file!
11# -------------------------------------------------------------------------
12
13### Variables: ###
14
15CPPDEPS = -MT$@ -MF$@.d -MD
16WX_RELEASE_NODOT = 27
17OBJS = \
18 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
19LIBDIRNAME = .\..\..\lib\gcc_$(LIBTYPE_SUFFIX)$(CFG)
20SETUPHDIR = \
21 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
22WIDGETS_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG_2) $(__THREADSFLAG) \
23 $(GCCFLAGS) -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
24 $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
25 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \
26 -I$(SETUPHDIR) -I.\..\..\include -W -Wall -I. $(__DLLFLAG_p) -I.\..\..\samples \
27 -DNOPCH $(__RTTIFLAG_5) $(__EXCEPTIONSFLAG_6) -Wno-ctor-dtor-privacy \
28 $(CPPFLAGS) $(CXXFLAGS)
29WIDGETS_OBJECTS = \
30 $(OBJS)\widgets_button.o \
31 $(OBJS)\widgets_checkbox.o \
32 $(OBJS)\widgets_combobox.o \
33 $(OBJS)\widgets_datepick.o \
34 $(OBJS)\widgets_gauge.o \
35 $(OBJS)\widgets_hyperlnk.o \
36 $(OBJS)\widgets_listbox.o \
37 $(OBJS)\widgets_notebook.o \
38 $(OBJS)\widgets_clrpicker.o \
39 $(OBJS)\widgets_fontpicker.o \
40 $(OBJS)\widgets_filepicker.o \
41 $(OBJS)\widgets_dirpicker.o \
42 $(OBJS)\widgets_odcombobox.o \
43 $(OBJS)\widgets_radiobox.o \
44 $(OBJS)\widgets_slider.o \
45 $(OBJS)\widgets_spinbtn.o \
46 $(OBJS)\widgets_static.o \
47 $(OBJS)\widgets_textctrl.o \
48 $(OBJS)\widgets_toggle.o \
49 $(OBJS)\widgets_widgets.o \
50 $(OBJS)\widgets_sample_rc.o
51
52### Conditionally set variables: ###
53
54ifeq ($(GCC_VERSION),2.95)
55GCCFLAGS = -fvtable-thunks
56endif
57ifeq ($(USE_GUI),0)
58PORTNAME = base
59endif
60ifeq ($(USE_GUI),1)
61PORTNAME = msw
62endif
63ifeq ($(BUILD),debug)
64ifeq ($(DEBUG_FLAG),default)
65WXDEBUGFLAG = d
66endif
67endif
68ifeq ($(DEBUG_FLAG),1)
69WXDEBUGFLAG = d
70endif
71ifeq ($(UNICODE),1)
72WXUNICODEFLAG = u
73endif
74ifeq ($(WXUNIV),1)
75WXUNIVNAME = univ
76endif
77ifeq ($(SHARED),1)
78WXDLLFLAG = dll
79endif
80ifeq ($(SHARED),0)
81LIBTYPE_SUFFIX = lib
82endif
83ifeq ($(SHARED),1)
84LIBTYPE_SUFFIX = dll
85endif
86ifeq ($(MONOLITHIC),0)
87EXTRALIBS_FOR_BASE =
88endif
89ifeq ($(MONOLITHIC),1)
90EXTRALIBS_FOR_BASE =
91endif
92ifeq ($(BUILD),debug)
93__OPTIMIZEFLAG_2 = -O0
94endif
95ifeq ($(BUILD),release)
96__OPTIMIZEFLAG_2 = -O2
97endif
98ifeq ($(USE_RTTI),0)
99__RTTIFLAG_5 = -fno-rtti
100endif
101ifeq ($(USE_RTTI),1)
102__RTTIFLAG_5 =
103endif
104ifeq ($(USE_EXCEPTIONS),0)
105__EXCEPTIONSFLAG_6 = -fno-exceptions
106endif
107ifeq ($(USE_EXCEPTIONS),1)
108__EXCEPTIONSFLAG_6 =
109endif
110ifeq ($(WXUNIV),1)
111__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
112endif
113ifeq ($(WXUNIV),1)
114__WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__
115endif
116ifeq ($(BUILD),debug)
117ifeq ($(DEBUG_FLAG),default)
118__DEBUG_DEFINE_p = -D__WXDEBUG__
119endif
120endif
121ifeq ($(DEBUG_FLAG),1)
122__DEBUG_DEFINE_p = -D__WXDEBUG__
123endif
124ifeq ($(BUILD),debug)
125ifeq ($(DEBUG_FLAG),default)
126__DEBUG_DEFINE_p_1 = --define __WXDEBUG__
127endif
128endif
129ifeq ($(DEBUG_FLAG),1)
130__DEBUG_DEFINE_p_1 = --define __WXDEBUG__
131endif
132ifeq ($(USE_EXCEPTIONS),0)
133__EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
134endif
135ifeq ($(USE_EXCEPTIONS),0)
136__EXCEPTIONS_DEFINE_p_1 = --define wxNO_EXCEPTIONS
137endif
138ifeq ($(USE_RTTI),0)
139__RTTI_DEFINE_p = -DwxNO_RTTI
140endif
141ifeq ($(USE_RTTI),0)
142__RTTI_DEFINE_p_1 = --define wxNO_RTTI
143endif
144ifeq ($(USE_THREADS),0)
145__THREAD_DEFINE_p = -DwxNO_THREADS
146endif
147ifeq ($(USE_THREADS),0)
148__THREAD_DEFINE_p_1 = --define wxNO_THREADS
149endif
150ifeq ($(UNICODE),1)
151__UNICODE_DEFINE_p = -D_UNICODE
152endif
153ifeq ($(UNICODE),1)
154__UNICODE_DEFINE_p_1 = --define _UNICODE
155endif
156ifeq ($(MSLU),1)
157__MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
158endif
159ifeq ($(MSLU),1)
160__MSLU_DEFINE_p_1 = --define wxUSE_UNICODE_MSLU=1
161endif
162ifeq ($(SHARED),1)
163__DLLFLAG_p = -DWXUSINGDLL
164endif
165ifeq ($(SHARED),1)
166__DLLFLAG_p_1 = --define WXUSINGDLL
167endif
168ifeq ($(MONOLITHIC),0)
169__WXLIB_XML_p = \
170 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_xml
171endif
172ifeq ($(MONOLITHIC),0)
173__WXLIB_ADV_p = \
174 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_adv
175endif
176ifeq ($(MONOLITHIC),0)
177__WXLIB_HTML_p = \
178 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_html
179endif
180ifeq ($(MONOLITHIC),0)
181__WXLIB_CORE_p = \
182 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
183endif
184ifeq ($(MONOLITHIC),0)
185__WXLIB_BASE_p = \
186 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
187endif
188ifeq ($(MONOLITHIC),1)
189__WXLIB_MONO_p = \
190 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
191endif
192ifeq ($(USE_GUI),1)
193__LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
194endif
195ifeq ($(USE_GUI),1)
196__LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
197endif
198ifeq ($(USE_GUI),1)
199__LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
200endif
201ifeq ($(MSLU),1)
202__UNICOWS_LIB_p = -lunicows
203endif
204ifeq ($(BUILD),debug)
205ifeq ($(DEBUG_INFO),default)
206__DEBUGINFO = -g
207endif
208endif
209ifeq ($(BUILD),release)
210ifeq ($(DEBUG_INFO),default)
211__DEBUGINFO =
212endif
213endif
214ifeq ($(DEBUG_INFO),0)
215__DEBUGINFO =
216endif
217ifeq ($(DEBUG_INFO),1)
218__DEBUGINFO = -g
219endif
220ifeq ($(USE_THREADS),0)
221__THREADSFLAG =
222endif
223ifeq ($(USE_THREADS),1)
224__THREADSFLAG = -mthreads
225endif
226
227
228all: $(OBJS)
229$(OBJS):
230 -if not exist $(OBJS) mkdir $(OBJS)
231
232### Targets: ###
233
234all: $(OBJS)\widgets.exe
235
236clean:
237 -if exist $(OBJS)\*.o del $(OBJS)\*.o
238 -if exist $(OBJS)\*.d del $(OBJS)\*.d
239 -if exist $(OBJS)\widgets.exe del $(OBJS)\widgets.exe
240
241$(OBJS)\widgets.exe: $(WIDGETS_OBJECTS) $(OBJS)\widgets_sample_rc.o
242 $(CXX) -o $@ $(WIDGETS_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) $(__THREADSFLAG) -L$(LIBDIRNAME) -Wl,--subsystem,windows -mwindows $(__WXLIB_XML_p) $(__WXLIB_ADV_p) $(__WXLIB_HTML_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) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lodbc32
243
244$(OBJS)\widgets_button.o: ./button.cpp
245 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
246
247$(OBJS)\widgets_checkbox.o: ./checkbox.cpp
248 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
249
250$(OBJS)\widgets_combobox.o: ./combobox.cpp
251 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
252
253$(OBJS)\widgets_datepick.o: ./datepick.cpp
254 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
255
256$(OBJS)\widgets_gauge.o: ./gauge.cpp
257 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
258
259$(OBJS)\widgets_hyperlnk.o: ./hyperlnk.cpp
260 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
261
262$(OBJS)\widgets_listbox.o: ./listbox.cpp
263 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
264
265$(OBJS)\widgets_notebook.o: ./notebook.cpp
266 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
267
268$(OBJS)\widgets_clrpicker.o: ./clrpicker.cpp
269 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
270
271$(OBJS)\widgets_fontpicker.o: ./fontpicker.cpp
272 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
273
274$(OBJS)\widgets_filepicker.o: ./filepicker.cpp
275 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
276
277$(OBJS)\widgets_dirpicker.o: ./dirpicker.cpp
278 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
279
280$(OBJS)\widgets_odcombobox.o: ./odcombobox.cpp
281 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
282
283$(OBJS)\widgets_radiobox.o: ./radiobox.cpp
284 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
285
286$(OBJS)\widgets_slider.o: ./slider.cpp
287 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
288
289$(OBJS)\widgets_spinbtn.o: ./spinbtn.cpp
290 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
291
292$(OBJS)\widgets_static.o: ./static.cpp
293 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
294
295$(OBJS)\widgets_textctrl.o: ./textctrl.cpp
296 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
297
298$(OBJS)\widgets_toggle.o: ./toggle.cpp
299 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
300
301$(OBJS)\widgets_widgets.o: ./widgets.cpp
302 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
303
304$(OBJS)\widgets_sample_rc.o: ./../sample.rc
305 windres --use-temp-file -i$< -o$@ --define __WXMSW__ $(__WXUNIV_DEFINE_p_1) $(__DEBUG_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 --include-dir . $(__DLLFLAG_p_1) --include-dir ./../../samples --define NOPCH
306
307.PHONY: all clean
308
309
310# Dependencies tracking:
311-include $(OBJS)/*.d