]> git.saurik.com Git - wxWidgets.git/blob - samples/widgets/makefile.gcc
Deleted makefile.mgl.
[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_timepick.o \
59 $(OBJS)\widgets_toggle.o \
60 $(OBJS)\widgets_widgets.o \
61 $(OBJS)\widgets_sample_rc.o
62
63 ### Conditionally set variables: ###
64
65 ifeq ($(GCC_VERSION),2.95)
66 GCCFLAGS = -fvtable-thunks
67 endif
68 ifeq ($(USE_GUI),0)
69 PORTNAME = base
70 endif
71 ifeq ($(USE_GUI),1)
72 PORTNAME = msw
73 endif
74 ifeq ($(BUILD),debug)
75 WXDEBUGFLAG = d
76 endif
77 ifeq ($(UNICODE),1)
78 WXUNICODEFLAG = u
79 endif
80 ifeq ($(WXUNIV),1)
81 WXUNIVNAME = univ
82 endif
83 ifeq ($(SHARED),1)
84 WXDLLFLAG = dll
85 endif
86 ifeq ($(SHARED),0)
87 LIBTYPE_SUFFIX = lib
88 endif
89 ifeq ($(SHARED),1)
90 LIBTYPE_SUFFIX = dll
91 endif
92 ifeq ($(MONOLITHIC),0)
93 EXTRALIBS_FOR_BASE =
94 endif
95 ifeq ($(MONOLITHIC),1)
96 EXTRALIBS_FOR_BASE =
97 endif
98 ifeq ($(BUILD),debug)
99 __OPTIMIZEFLAG_2 = -O0
100 endif
101 ifeq ($(BUILD),release)
102 __OPTIMIZEFLAG_2 = -O2
103 endif
104 ifeq ($(USE_RTTI),0)
105 __RTTIFLAG_5 = -fno-rtti
106 endif
107 ifeq ($(USE_RTTI),1)
108 __RTTIFLAG_5 =
109 endif
110 ifeq ($(USE_EXCEPTIONS),0)
111 __EXCEPTIONSFLAG_6 = -fno-exceptions
112 endif
113 ifeq ($(USE_EXCEPTIONS),1)
114 __EXCEPTIONSFLAG_6 =
115 endif
116 ifeq ($(WXUNIV),1)
117 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
118 endif
119 ifeq ($(WXUNIV),1)
120 __WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__
121 endif
122 ifeq ($(DEBUG_FLAG),0)
123 __DEBUG_DEFINE_p = -DwxDEBUG_LEVEL=0
124 endif
125 ifeq ($(DEBUG_FLAG),0)
126 __DEBUG_DEFINE_p_1 = --define wxDEBUG_LEVEL=0
127 endif
128 ifeq ($(BUILD),release)
129 __NDEBUG_DEFINE_p = -DNDEBUG
130 endif
131 ifeq ($(BUILD),release)
132 __NDEBUG_DEFINE_p_1 = --define NDEBUG
133 endif
134 ifeq ($(USE_EXCEPTIONS),0)
135 __EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
136 endif
137 ifeq ($(USE_EXCEPTIONS),0)
138 __EXCEPTIONS_DEFINE_p_1 = --define wxNO_EXCEPTIONS
139 endif
140 ifeq ($(USE_RTTI),0)
141 __RTTI_DEFINE_p = -DwxNO_RTTI
142 endif
143 ifeq ($(USE_RTTI),0)
144 __RTTI_DEFINE_p_1 = --define wxNO_RTTI
145 endif
146 ifeq ($(USE_THREADS),0)
147 __THREAD_DEFINE_p = -DwxNO_THREADS
148 endif
149 ifeq ($(USE_THREADS),0)
150 __THREAD_DEFINE_p_1 = --define wxNO_THREADS
151 endif
152 ifeq ($(UNICODE),0)
153 __UNICODE_DEFINE_p = -DwxUSE_UNICODE=0
154 endif
155 ifeq ($(UNICODE),1)
156 __UNICODE_DEFINE_p = -D_UNICODE
157 endif
158 ifeq ($(UNICODE),0)
159 __UNICODE_DEFINE_p_1 = --define wxUSE_UNICODE=0
160 endif
161 ifeq ($(UNICODE),1)
162 __UNICODE_DEFINE_p_1 = --define _UNICODE
163 endif
164 ifeq ($(MSLU),1)
165 __MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
166 endif
167 ifeq ($(MSLU),1)
168 __MSLU_DEFINE_p_1 = --define wxUSE_UNICODE_MSLU=1
169 endif
170 ifeq ($(USE_CAIRO),1)
171 ____CAIRO_INCLUDEDIR_FILENAMES_p = -I$(CAIRO_ROOT)\include\cairo
172 endif
173 ifeq ($(USE_CAIRO),1)
174 __CAIRO_INCLUDEDIR_p = --include-dir $(CAIRO_ROOT)/include/cairo
175 endif
176 ifeq ($(SHARED),1)
177 __DLLFLAG_p = -DWXUSINGDLL
178 endif
179 ifeq ($(SHARED),1)
180 __DLLFLAG_p_1 = --define WXUSINGDLL
181 endif
182 ifeq ($(MONOLITHIC),0)
183 __WXLIB_ADV_p = \
184 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_adv
185 endif
186 ifeq ($(MONOLITHIC),0)
187 __WXLIB_CORE_p = \
188 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
189 endif
190 ifeq ($(MONOLITHIC),0)
191 __WXLIB_BASE_p = \
192 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
193 endif
194 ifeq ($(MONOLITHIC),1)
195 __WXLIB_MONO_p = \
196 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
197 endif
198 ifeq ($(USE_GUI),1)
199 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
200 endif
201 ifeq ($(USE_GUI),1)
202 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
203 endif
204 ifeq ($(USE_GUI),1)
205 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
206 endif
207 ifeq ($(MSLU),1)
208 __UNICOWS_LIB_p = -lunicows
209 endif
210 ifeq ($(USE_CAIRO),1)
211 __CAIRO_LIB_p = -lcairo
212 endif
213 ifeq ($(USE_CAIRO),1)
214 ____CAIRO_LIBDIR_FILENAMES_p = -L$(CAIRO_ROOT)\lib
215 endif
216 ifeq ($(BUILD),debug)
217 ifeq ($(DEBUG_INFO),default)
218 __DEBUGINFO = -g
219 endif
220 endif
221 ifeq ($(BUILD),release)
222 ifeq ($(DEBUG_INFO),default)
223 __DEBUGINFO =
224 endif
225 endif
226 ifeq ($(DEBUG_INFO),0)
227 __DEBUGINFO =
228 endif
229 ifeq ($(DEBUG_INFO),1)
230 __DEBUGINFO = -g
231 endif
232 ifeq ($(USE_THREADS),0)
233 __THREADSFLAG =
234 endif
235 ifeq ($(USE_THREADS),1)
236 __THREADSFLAG = -mthreads
237 endif
238
239
240 all: $(OBJS)
241 $(OBJS):
242 -if not exist $(OBJS) mkdir $(OBJS)
243
244 ### Targets: ###
245
246 all: $(OBJS)\widgets.exe
247
248 clean:
249 -if exist $(OBJS)\*.o del $(OBJS)\*.o
250 -if exist $(OBJS)\*.d del $(OBJS)\*.d
251 -if exist $(OBJS)\widgets.exe del $(OBJS)\widgets.exe
252
253 $(OBJS)\widgets.exe: $(WIDGETS_OBJECTS) $(OBJS)\widgets_sample_rc.o
254 $(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
255
256 $(OBJS)\widgets_bmpcombobox.o: ./bmpcombobox.cpp
257 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
258
259 $(OBJS)\widgets_button.o: ./button.cpp
260 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
261
262 $(OBJS)\widgets_checkbox.o: ./checkbox.cpp
263 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
264
265 $(OBJS)\widgets_choice.o: ./choice.cpp
266 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
267
268 $(OBJS)\widgets_clrpicker.o: ./clrpicker.cpp
269 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
270
271 $(OBJS)\widgets_combobox.o: ./combobox.cpp
272 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
273
274 $(OBJS)\widgets_datepick.o: ./datepick.cpp
275 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
276
277 $(OBJS)\widgets_dirctrl.o: ./dirctrl.cpp
278 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
279
280 $(OBJS)\widgets_dirpicker.o: ./dirpicker.cpp
281 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
282
283 $(OBJS)\widgets_editlbox.o: ./editlbox.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_timepick.o: ./timepick.cpp
335 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
336
337 $(OBJS)\widgets_toggle.o: ./toggle.cpp
338 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
339
340 $(OBJS)\widgets_widgets.o: ./widgets.cpp
341 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
342
343 $(OBJS)\widgets_sample_rc.o: ./../sample.rc
344 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
345
346 .PHONY: all clean
347
348
349 SHELL := $(COMSPEC)
350
351 # Dependencies tracking:
352 -include $(OBJS)/*.d