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