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