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