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