]> git.saurik.com Git - wxWidgets.git/blame - samples/widgets/makefile.gcc
extending docs according #9713
[wxWidgets.git] / samples / widgets / makefile.gcc
CommitLineData
3b20263d
VS
1# =========================================================================
2# This makefile was generated by
6e0fbb3d 3# Bakefile 0.2.3 (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
0d90d6ea 15CPPDEPS = -MT$@ -MF$@.d -MD
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 \
0cf3e587 40 $(OBJS)\widgets_filectrl.o \
b2b98dfd
WS
41 $(OBJS)\widgets_filepicker.o \
42 $(OBJS)\widgets_fontpicker.o \
25a73439 43 $(OBJS)\widgets_gauge.o \
f9300d42 44 $(OBJS)\widgets_hyperlnk.o \
a236aa20 45 $(OBJS)\widgets_itemcontainer.o \
25a73439
VS
46 $(OBJS)\widgets_listbox.o \
47 $(OBJS)\widgets_notebook.o \
53a0475d 48 $(OBJS)\widgets_odcombobox.o \
25a73439 49 $(OBJS)\widgets_radiobox.o \
3f7f284d 50 $(OBJS)\widgets_searchctrl.o \
25a73439
VS
51 $(OBJS)\widgets_slider.o \
52 $(OBJS)\widgets_spinbtn.o \
53 $(OBJS)\widgets_static.o \
a30e7029 54 $(OBJS)\widgets_statbmp.o \
25a73439 55 $(OBJS)\widgets_textctrl.o \
32816f9a 56 $(OBJS)\widgets_toggle.o \
25a73439 57 $(OBJS)\widgets_widgets.o \
f2fdc4d5 58 $(OBJS)\widgets_sample_rc.o
3b20263d
VS
59
60### Conditionally set variables: ###
61
250700e4
RD
62ifeq ($(GCC_VERSION),2.95)
63GCCFLAGS = -fvtable-thunks
64endif
3b20263d
VS
65ifeq ($(USE_GUI),0)
66PORTNAME = base
67endif
68ifeq ($(USE_GUI),1)
69PORTNAME = msw
70endif
71ifeq ($(BUILD),debug)
25a73439
VS
72ifeq ($(DEBUG_FLAG),default)
73WXDEBUGFLAG = d
74endif
75endif
76ifeq ($(DEBUG_FLAG),1)
3b20263d
VS
77WXDEBUGFLAG = d
78endif
3b20263d
VS
79ifeq ($(UNICODE),1)
80WXUNICODEFLAG = u
81endif
82ifeq ($(WXUNIV),1)
83WXUNIVNAME = univ
84endif
b17c1746
DE
85ifeq ($(SHARED),1)
86WXDLLFLAG = dll
25a73439 87endif
b14abf14
JS
88ifeq ($(SHARED),0)
89LIBTYPE_SUFFIX = lib
90endif
91ifeq ($(SHARED),1)
92LIBTYPE_SUFFIX = dll
93endif
dd65d8c8
RN
94ifeq ($(MONOLITHIC),0)
95EXTRALIBS_FOR_BASE =
96endif
97ifeq ($(MONOLITHIC),1)
98EXTRALIBS_FOR_BASE =
99endif
b17c1746
DE
100ifeq ($(BUILD),debug)
101__OPTIMIZEFLAG_2 = -O0
250700e4
RD
102endif
103ifeq ($(BUILD),release)
b17c1746 104__OPTIMIZEFLAG_2 = -O2
25a73439 105endif
8c9f8f91
JS
106ifeq ($(USE_RTTI),0)
107__RTTIFLAG_5 = -fno-rtti
25a73439 108endif
8c9f8f91
JS
109ifeq ($(USE_RTTI),1)
110__RTTIFLAG_5 =
25a73439 111endif
b17c1746 112ifeq ($(USE_EXCEPTIONS),0)
8c9f8f91 113__EXCEPTIONSFLAG_6 = -fno-exceptions
b17c1746
DE
114endif
115ifeq ($(USE_EXCEPTIONS),1)
8c9f8f91 116__EXCEPTIONSFLAG_6 =
b17c1746
DE
117endif
118ifeq ($(WXUNIV),1)
119__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
120endif
121ifeq ($(WXUNIV),1)
122__WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__
250700e4
RD
123endif
124ifeq ($(BUILD),debug)
25a73439
VS
125ifeq ($(DEBUG_FLAG),default)
126__DEBUG_DEFINE_p = -D__WXDEBUG__
127endif
128endif
129ifeq ($(DEBUG_FLAG),1)
3b20263d
VS
130__DEBUG_DEFINE_p = -D__WXDEBUG__
131endif
132ifeq ($(BUILD),debug)
25a73439
VS
133ifeq ($(DEBUG_FLAG),default)
134__DEBUG_DEFINE_p_1 = --define __WXDEBUG__
135endif
136endif
137ifeq ($(DEBUG_FLAG),1)
3b20263d
VS
138__DEBUG_DEFINE_p_1 = --define __WXDEBUG__
139endif
8c9f8f91
JS
140ifeq ($(USE_EXCEPTIONS),0)
141__EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
142endif
143ifeq ($(USE_EXCEPTIONS),0)
144__EXCEPTIONS_DEFINE_p_1 = --define wxNO_EXCEPTIONS
145endif
146ifeq ($(USE_RTTI),0)
147__RTTI_DEFINE_p = -DwxNO_RTTI
148endif
149ifeq ($(USE_RTTI),0)
150__RTTI_DEFINE_p_1 = --define wxNO_RTTI
151endif
152ifeq ($(USE_THREADS),0)
153__THREAD_DEFINE_p = -DwxNO_THREADS
154endif
155ifeq ($(USE_THREADS),0)
156__THREAD_DEFINE_p_1 = --define wxNO_THREADS
157endif
7379e476
VZ
158ifeq ($(UNICODE),0)
159__UNICODE_DEFINE_p = -DwxUSE_UNICODE=0
160endif
b17c1746
DE
161ifeq ($(UNICODE),1)
162__UNICODE_DEFINE_p = -D_UNICODE
163endif
7379e476
VZ
164ifeq ($(UNICODE),0)
165__UNICODE_DEFINE_p_1 = --define wxUSE_UNICODE=0
166endif
b17c1746
DE
167ifeq ($(UNICODE),1)
168__UNICODE_DEFINE_p_1 = --define _UNICODE
169endif
2113bc77
MW
170ifeq ($(MSLU),1)
171__MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
172endif
173ifeq ($(MSLU),1)
174__MSLU_DEFINE_p_1 = --define wxUSE_UNICODE_MSLU=1
175endif
3abcf424
RD
176ifeq ($(USE_GDIPLUS),1)
177__GFXCTX_DEFINE_p = -DwxUSE_GRAPHICS_CONTEXT=1
178endif
179ifeq ($(USE_GDIPLUS),1)
180__GFXCTX_DEFINE_p_1 = --define wxUSE_GRAPHICS_CONTEXT=1
181endif
3b20263d
VS
182ifeq ($(SHARED),1)
183__DLLFLAG_p = -DWXUSINGDLL
184endif
185ifeq ($(SHARED),1)
186__DLLFLAG_p_1 = --define WXUSINGDLL
187endif
b17c1746 188ifeq ($(MONOLITHIC),0)
137c8bde
WS
189__WXLIB_XML_p = \
190 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_xml
191endif
192ifeq ($(MONOLITHIC),0)
f2fdc4d5
WS
193__WXLIB_ADV_p = \
194 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_adv
195endif
196ifeq ($(MONOLITHIC),0)
197__WXLIB_HTML_p = \
198 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_html
199endif
200ifeq ($(MONOLITHIC),0)
b17c1746 201__WXLIB_CORE_p = \
c33fae85 202 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
b71531ad 203endif
b17c1746 204ifeq ($(MONOLITHIC),0)
c33fae85
RN
205__WXLIB_BASE_p = \
206 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
b71531ad 207endif
b17c1746
DE
208ifeq ($(MONOLITHIC),1)
209__WXLIB_MONO_p = \
c33fae85 210 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
b71531ad 211endif
b17c1746 212ifeq ($(USE_GUI),1)
9c2d002b 213__LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
b71531ad 214endif
25a73439 215ifeq ($(USE_GUI),1)
9c2d002b 216__LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
25a73439
VS
217endif
218ifeq ($(USE_GUI),1)
9c2d002b 219__LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
25a73439 220endif
b17c1746
DE
221ifeq ($(MSLU),1)
222__UNICOWS_LIB_p = -lunicows
250700e4 223endif
3abcf424
RD
224ifeq ($(USE_GDIPLUS),1)
225__GDIPLUS_LIB_p = -lgdiplus
226endif
b17c1746
DE
227ifeq ($(BUILD),debug)
228ifeq ($(DEBUG_INFO),default)
229__DEBUGINFO = -g
4e209a20 230endif
3b20263d 231endif
b17c1746
DE
232ifeq ($(BUILD),release)
233ifeq ($(DEBUG_INFO),default)
234__DEBUGINFO =
3b20263d 235endif
3b20263d 236endif
b17c1746
DE
237ifeq ($(DEBUG_INFO),0)
238__DEBUGINFO =
3b20263d 239endif
b17c1746
DE
240ifeq ($(DEBUG_INFO),1)
241__DEBUGINFO = -g
3b20263d 242endif
8c9f8f91
JS
243ifeq ($(USE_THREADS),0)
244__THREADSFLAG =
245endif
246ifeq ($(USE_THREADS),1)
247__THREADSFLAG = -mthreads
248endif
3b20263d
VS
249
250
251all: $(OBJS)
252$(OBJS):
253 -if not exist $(OBJS) mkdir $(OBJS)
254
255### Targets: ###
256
257all: $(OBJS)\widgets.exe
258
b17c1746
DE
259clean:
260 -if exist $(OBJS)\*.o del $(OBJS)\*.o
0d90d6ea 261 -if exist $(OBJS)\*.d del $(OBJS)\*.d
b17c1746
DE
262 -if exist $(OBJS)\widgets.exe del $(OBJS)\widgets.exe
263
f2fdc4d5 264$(OBJS)\widgets.exe: $(WIDGETS_OBJECTS) $(OBJS)\widgets_sample_rc.o
7379e476 265 $(CXX) -o $@ $(WIDGETS_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) $(__THREADSFLAG) -L$(LIBDIRNAME) -Wl,--subsystem,windows -mwindows $(__WXLIB_XML_p) $(__WXLIB_ADV_p) $(__WXLIB_HTML_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
b17c1746 266
b2b98dfd
WS
267$(OBJS)\widgets_bmpcombobox.o: ./bmpcombobox.cpp
268 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
269
1c3a6972 270$(OBJS)\widgets_button.o: ./button.cpp
0d90d6ea 271 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
3b20263d 272
8941fa88 273$(OBJS)\widgets_checkbox.o: ./checkbox.cpp
0d90d6ea 274 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
8941fa88 275
a236aa20
VZ
276$(OBJS)\widgets_choice.o: ./choice.cpp
277 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
278
b2b98dfd 279$(OBJS)\widgets_clrpicker.o: ./clrpicker.cpp
0d90d6ea 280 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
3b20263d 281
b2b98dfd 282$(OBJS)\widgets_combobox.o: ./combobox.cpp
f2fdc4d5
WS
283 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
284
b2b98dfd 285$(OBJS)\widgets_datepick.o: ./datepick.cpp
0d90d6ea 286 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
3b20263d 287
c4f6d998
WS
288$(OBJS)\widgets_dirctrl.o: ./dirctrl.cpp
289 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
290
b2b98dfd 291$(OBJS)\widgets_dirpicker.o: ./dirpicker.cpp
f9300d42 292 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
0cf3e587
VZ
293
294$(OBJS)\widgets_filectrl.o: ./filectrl.cpp
295 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
f9300d42 296
b2b98dfd 297$(OBJS)\widgets_filepicker.o: ./filepicker.cpp
0d90d6ea 298 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
3b20263d 299
b2b98dfd 300$(OBJS)\widgets_fontpicker.o: ./fontpicker.cpp
0d90d6ea 301 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
3b20263d 302
b2b98dfd 303$(OBJS)\widgets_gauge.o: ./gauge.cpp
137c8bde
WS
304 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
305
b2b98dfd 306$(OBJS)\widgets_hyperlnk.o: ./hyperlnk.cpp
137c8bde
WS
307 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
308
a236aa20
VZ
309$(OBJS)\widgets_itemcontainer.o: ./itemcontainer.cpp
310 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
311
b2b98dfd 312$(OBJS)\widgets_listbox.o: ./listbox.cpp
137c8bde
WS
313 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
314
b2b98dfd 315$(OBJS)\widgets_notebook.o: ./notebook.cpp
ec376c8f
VZ
316 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
317
53a0475d
WS
318$(OBJS)\widgets_odcombobox.o: ./odcombobox.cpp
319 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
320
1c3a6972 321$(OBJS)\widgets_radiobox.o: ./radiobox.cpp
0d90d6ea 322 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
3b20263d 323
3f7f284d
RD
324$(OBJS)\widgets_searchctrl.o: ./searchctrl.cpp
325 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
326
1c3a6972 327$(OBJS)\widgets_slider.o: ./slider.cpp
0d90d6ea 328 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
3b20263d 329
1c3a6972 330$(OBJS)\widgets_spinbtn.o: ./spinbtn.cpp
0d90d6ea 331 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
3b20263d 332
1c3a6972 333$(OBJS)\widgets_static.o: ./static.cpp
0d90d6ea 334 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
3b20263d 335
a30e7029
VZ
336$(OBJS)\widgets_statbmp.o: ./statbmp.cpp
337 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
338
1c3a6972 339$(OBJS)\widgets_textctrl.o: ./textctrl.cpp
0d90d6ea 340 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
3b20263d 341
32816f9a
WS
342$(OBJS)\widgets_toggle.o: ./toggle.cpp
343 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
344
1c3a6972 345$(OBJS)\widgets_widgets.o: ./widgets.cpp
0d90d6ea 346 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
3b20263d 347
f2fdc4d5 348$(OBJS)\widgets_sample_rc.o: ./../sample.rc
a236aa20 349 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 350
250700e4 351.PHONY: all clean
b14abf14 352
8c9f8f91 353
6e0fbb3d
VS
354SHELL := $(COMSPEC)
355
0d90d6ea
JS
356# Dependencies tracking:
357-include $(OBJS)/*.d