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