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