]> git.saurik.com Git - wxWidgets.git/blame - samples/widgets/makefile.gcc
added a period at the end of a sentence (test commit, really)
[wxWidgets.git] / samples / widgets / makefile.gcc
CommitLineData
3b20263d
VS
1# =========================================================================
2# This makefile was generated by
506e9b7e 3# Bakefile 0.2.5 (http://www.bakefile.org)
3b20263d
VS
4# Do not modify, all changes will be overwritten!
5# =========================================================================
6
fd9f42b6 7include ../../build/msw/config.gcc
3b20263d
VS
8
9# -------------------------------------------------------------------------
10# Do not modify the rest of this file!
11# -------------------------------------------------------------------------
12
13### Variables: ###
14
8ece421c 15CPPDEPS = -MT$@ -MF$@.d -MD -MP
ae4ccf12 16WX_RELEASE_NODOT = 29
a236aa20 17COMPILER_PREFIX = gcc
25a73439 18OBJS = \
a236aa20
VZ
19 $(COMPILER_PREFIX)_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
20LIBDIRNAME = .\..\..\lib\$(COMPILER_PREFIX)_$(LIBTYPE_SUFFIX)$(CFG)
75a0a7b7
VS
21SETUPHDIR = \
22 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
8c9f8f91
JS
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) \
2113bc77 26 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \
3abcf424
RD
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)
25a73439 30WIDGETS_OBJECTS = \
b2b98dfd 31 $(OBJS)\widgets_bmpcombobox.o \
25a73439 32 $(OBJS)\widgets_button.o \
8941fa88 33 $(OBJS)\widgets_checkbox.o \
a236aa20 34 $(OBJS)\widgets_choice.o \
b2b98dfd 35 $(OBJS)\widgets_clrpicker.o \
25a73439 36 $(OBJS)\widgets_combobox.o \
f2fdc4d5 37 $(OBJS)\widgets_datepick.o \
c4f6d998 38 $(OBJS)\widgets_dirctrl.o \
b2b98dfd 39 $(OBJS)\widgets_dirpicker.o \
27721528 40 $(OBJS)\widgets_editlbox.o \
0cf3e587 41 $(OBJS)\widgets_filectrl.o \
b2b98dfd
WS
42 $(OBJS)\widgets_filepicker.o \
43 $(OBJS)\widgets_fontpicker.o \
25a73439 44 $(OBJS)\widgets_gauge.o \
f9300d42 45 $(OBJS)\widgets_hyperlnk.o \
a236aa20 46 $(OBJS)\widgets_itemcontainer.o \
25a73439
VS
47 $(OBJS)\widgets_listbox.o \
48 $(OBJS)\widgets_notebook.o \
53a0475d 49 $(OBJS)\widgets_odcombobox.o \
25a73439 50 $(OBJS)\widgets_radiobox.o \
3f7f284d 51 $(OBJS)\widgets_searchctrl.o \
25a73439
VS
52 $(OBJS)\widgets_slider.o \
53 $(OBJS)\widgets_spinbtn.o \
54 $(OBJS)\widgets_static.o \
a30e7029 55 $(OBJS)\widgets_statbmp.o \
25a73439 56 $(OBJS)\widgets_textctrl.o \
32816f9a 57 $(OBJS)\widgets_toggle.o \
25a73439 58 $(OBJS)\widgets_widgets.o \
f2fdc4d5 59 $(OBJS)\widgets_sample_rc.o
3b20263d
VS
60
61### Conditionally set variables: ###
62
250700e4
RD
63ifeq ($(GCC_VERSION),2.95)
64GCCFLAGS = -fvtable-thunks
65endif
3b20263d
VS
66ifeq ($(USE_GUI),0)
67PORTNAME = base
68endif
69ifeq ($(USE_GUI),1)
70PORTNAME = msw
71endif
72ifeq ($(BUILD),debug)
25a73439
VS
73ifeq ($(DEBUG_FLAG),default)
74WXDEBUGFLAG = d
75endif
76endif
77ifeq ($(DEBUG_FLAG),1)
3b20263d
VS
78WXDEBUGFLAG = d
79endif
3b20263d
VS
80ifeq ($(UNICODE),1)
81WXUNICODEFLAG = u
82endif
83ifeq ($(WXUNIV),1)
84WXUNIVNAME = univ
85endif
b17c1746
DE
86ifeq ($(SHARED),1)
87WXDLLFLAG = dll
25a73439 88endif
b14abf14
JS
89ifeq ($(SHARED),0)
90LIBTYPE_SUFFIX = lib
91endif
92ifeq ($(SHARED),1)
93LIBTYPE_SUFFIX = dll
94endif
dd65d8c8
RN
95ifeq ($(MONOLITHIC),0)
96EXTRALIBS_FOR_BASE =
97endif
98ifeq ($(MONOLITHIC),1)
99EXTRALIBS_FOR_BASE =
100endif
b17c1746
DE
101ifeq ($(BUILD),debug)
102__OPTIMIZEFLAG_2 = -O0
250700e4
RD
103endif
104ifeq ($(BUILD),release)
b17c1746 105__OPTIMIZEFLAG_2 = -O2
25a73439 106endif
8c9f8f91
JS
107ifeq ($(USE_RTTI),0)
108__RTTIFLAG_5 = -fno-rtti
25a73439 109endif
8c9f8f91
JS
110ifeq ($(USE_RTTI),1)
111__RTTIFLAG_5 =
25a73439 112endif
b17c1746 113ifeq ($(USE_EXCEPTIONS),0)
8c9f8f91 114__EXCEPTIONSFLAG_6 = -fno-exceptions
b17c1746
DE
115endif
116ifeq ($(USE_EXCEPTIONS),1)
8c9f8f91 117__EXCEPTIONSFLAG_6 =
b17c1746
DE
118endif
119ifeq ($(WXUNIV),1)
120__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
121endif
122ifeq ($(WXUNIV),1)
123__WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__
250700e4
RD
124endif
125ifeq ($(BUILD),debug)
25a73439
VS
126ifeq ($(DEBUG_FLAG),default)
127__DEBUG_DEFINE_p = -D__WXDEBUG__
128endif
129endif
130ifeq ($(DEBUG_FLAG),1)
3b20263d
VS
131__DEBUG_DEFINE_p = -D__WXDEBUG__
132endif
133ifeq ($(BUILD),debug)
25a73439
VS
134ifeq ($(DEBUG_FLAG),default)
135__DEBUG_DEFINE_p_1 = --define __WXDEBUG__
136endif
137endif
138ifeq ($(DEBUG_FLAG),1)
3b20263d
VS
139__DEBUG_DEFINE_p_1 = --define __WXDEBUG__
140endif
8c9f8f91
JS
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
7379e476
VZ
159ifeq ($(UNICODE),0)
160__UNICODE_DEFINE_p = -DwxUSE_UNICODE=0
161endif
b17c1746
DE
162ifeq ($(UNICODE),1)
163__UNICODE_DEFINE_p = -D_UNICODE
164endif
7379e476
VZ
165ifeq ($(UNICODE),0)
166__UNICODE_DEFINE_p_1 = --define wxUSE_UNICODE=0
167endif
b17c1746
DE
168ifeq ($(UNICODE),1)
169__UNICODE_DEFINE_p_1 = --define _UNICODE
170endif
2113bc77
MW
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
3abcf424
RD
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
3b20263d
VS
183ifeq ($(SHARED),1)
184__DLLFLAG_p = -DWXUSINGDLL
185endif
186ifeq ($(SHARED),1)
187__DLLFLAG_p_1 = --define WXUSINGDLL
188endif
b17c1746 189ifeq ($(MONOLITHIC),0)
f2fdc4d5
WS
190__WXLIB_ADV_p = \
191 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_adv
192endif
193ifeq ($(MONOLITHIC),0)
b17c1746 194__WXLIB_CORE_p = \
c33fae85 195 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
b71531ad 196endif
b17c1746 197ifeq ($(MONOLITHIC),0)
c33fae85
RN
198__WXLIB_BASE_p = \
199 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
b71531ad 200endif
b17c1746
DE
201ifeq ($(MONOLITHIC),1)
202__WXLIB_MONO_p = \
c33fae85 203 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
b71531ad 204endif
b17c1746 205ifeq ($(USE_GUI),1)
9c2d002b 206__LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
b71531ad 207endif
25a73439 208ifeq ($(USE_GUI),1)
9c2d002b 209__LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
25a73439
VS
210endif
211ifeq ($(USE_GUI),1)
9c2d002b 212__LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
25a73439 213endif
b17c1746
DE
214ifeq ($(MSLU),1)
215__UNICOWS_LIB_p = -lunicows
250700e4 216endif
3abcf424
RD
217ifeq ($(USE_GDIPLUS),1)
218__GDIPLUS_LIB_p = -lgdiplus
219endif
b17c1746
DE
220ifeq ($(BUILD),debug)
221ifeq ($(DEBUG_INFO),default)
222__DEBUGINFO = -g
4e209a20 223endif
3b20263d 224endif
b17c1746
DE
225ifeq ($(BUILD),release)
226ifeq ($(DEBUG_INFO),default)
227__DEBUGINFO =
3b20263d 228endif
3b20263d 229endif
b17c1746
DE
230ifeq ($(DEBUG_INFO),0)
231__DEBUGINFO =
3b20263d 232endif
b17c1746
DE
233ifeq ($(DEBUG_INFO),1)
234__DEBUGINFO = -g
3b20263d 235endif
8c9f8f91
JS
236ifeq ($(USE_THREADS),0)
237__THREADSFLAG =
238endif
239ifeq ($(USE_THREADS),1)
240__THREADSFLAG = -mthreads
241endif
3b20263d
VS
242
243
244all: $(OBJS)
245$(OBJS):
246 -if not exist $(OBJS) mkdir $(OBJS)
247
248### Targets: ###
249
250all: $(OBJS)\widgets.exe
251
b17c1746
DE
252clean:
253 -if exist $(OBJS)\*.o del $(OBJS)\*.o
0d90d6ea 254 -if exist $(OBJS)\*.d del $(OBJS)\*.d
b17c1746
DE
255 -if exist $(OBJS)\widgets.exe del $(OBJS)\widgets.exe
256
f2fdc4d5 257$(OBJS)\widgets.exe: $(WIDGETS_OBJECTS) $(OBJS)\widgets_sample_rc.o
b44f5137 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
b17c1746 259
b2b98dfd
WS
260$(OBJS)\widgets_bmpcombobox.o: ./bmpcombobox.cpp
261 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
262
1c3a6972 263$(OBJS)\widgets_button.o: ./button.cpp
0d90d6ea 264 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
3b20263d 265
8941fa88 266$(OBJS)\widgets_checkbox.o: ./checkbox.cpp
0d90d6ea 267 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
8941fa88 268
a236aa20
VZ
269$(OBJS)\widgets_choice.o: ./choice.cpp
270 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
271
b2b98dfd 272$(OBJS)\widgets_clrpicker.o: ./clrpicker.cpp
0d90d6ea 273 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
3b20263d 274
b2b98dfd 275$(OBJS)\widgets_combobox.o: ./combobox.cpp
f2fdc4d5
WS
276 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
277
b2b98dfd 278$(OBJS)\widgets_datepick.o: ./datepick.cpp
0d90d6ea 279 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
3b20263d 280
c4f6d998
WS
281$(OBJS)\widgets_dirctrl.o: ./dirctrl.cpp
282 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
283
b2b98dfd 284$(OBJS)\widgets_dirpicker.o: ./dirpicker.cpp
f9300d42 285 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
0cf3e587 286
27721528
FM
287$(OBJS)\widgets_editlbox.o: ./editlbox.cpp
288 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
289
0cf3e587
VZ
290$(OBJS)\widgets_filectrl.o: ./filectrl.cpp
291 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
f9300d42 292
b2b98dfd 293$(OBJS)\widgets_filepicker.o: ./filepicker.cpp
0d90d6ea 294 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
3b20263d 295
b2b98dfd 296$(OBJS)\widgets_fontpicker.o: ./fontpicker.cpp
0d90d6ea 297 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
3b20263d 298
b2b98dfd 299$(OBJS)\widgets_gauge.o: ./gauge.cpp
137c8bde
WS
300 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
301
b2b98dfd 302$(OBJS)\widgets_hyperlnk.o: ./hyperlnk.cpp
137c8bde
WS
303 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
304
a236aa20
VZ
305$(OBJS)\widgets_itemcontainer.o: ./itemcontainer.cpp
306 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
307
b2b98dfd 308$(OBJS)\widgets_listbox.o: ./listbox.cpp
137c8bde
WS
309 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
310
b2b98dfd 311$(OBJS)\widgets_notebook.o: ./notebook.cpp
ec376c8f
VZ
312 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
313
53a0475d
WS
314$(OBJS)\widgets_odcombobox.o: ./odcombobox.cpp
315 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
316
1c3a6972 317$(OBJS)\widgets_radiobox.o: ./radiobox.cpp
0d90d6ea 318 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
3b20263d 319
3f7f284d
RD
320$(OBJS)\widgets_searchctrl.o: ./searchctrl.cpp
321 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
322
1c3a6972 323$(OBJS)\widgets_slider.o: ./slider.cpp
0d90d6ea 324 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
3b20263d 325
1c3a6972 326$(OBJS)\widgets_spinbtn.o: ./spinbtn.cpp
0d90d6ea 327 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
3b20263d 328
1c3a6972 329$(OBJS)\widgets_static.o: ./static.cpp
0d90d6ea 330 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
3b20263d 331
a30e7029
VZ
332$(OBJS)\widgets_statbmp.o: ./statbmp.cpp
333 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
334
1c3a6972 335$(OBJS)\widgets_textctrl.o: ./textctrl.cpp
0d90d6ea 336 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
3b20263d 337
32816f9a
WS
338$(OBJS)\widgets_toggle.o: ./toggle.cpp
339 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
340
1c3a6972 341$(OBJS)\widgets_widgets.o: ./widgets.cpp
0d90d6ea 342 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
3b20263d 343
f2fdc4d5 344$(OBJS)\widgets_sample_rc.o: ./../sample.rc
a236aa20 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
3b20263d 346
250700e4 347.PHONY: all clean
b14abf14 348
8c9f8f91 349
6e0fbb3d
VS
350SHELL := $(COMSPEC)
351
0d90d6ea
JS
352# Dependencies tracking:
353-include $(OBJS)/*.d