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