]> git.saurik.com Git - wxWidgets.git/blame - samples/widgets/makefile.gcc
fix problems with using incorrect vswprintf() for mingw32/VC6 when wxUSE_PRINTF_POS_P...
[wxWidgets.git] / samples / widgets / makefile.gcc
CommitLineData
3b20263d
VS
1# =========================================================================
2# This makefile was generated by
77a7dfc1 3# Bakefile 0.2.0 (http://bakefile.sourceforge.net)
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
4cbcfb73 16WX_RELEASE_NODOT = 27
25a73439
VS
17OBJS = \
18 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
b14abf14 19LIBDIRNAME = .\..\..\lib\gcc_$(LIBTYPE_SUFFIX)$(CFG)
75a0a7b7
VS
20SETUPHDIR = \
21 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
8c9f8f91
JS
22WIDGETS_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG_2) $(__THREADSFLAG) \
23 $(GCCFLAGS) -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
24 $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
2113bc77 25 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \
77a7dfc1 26 -I$(SETUPHDIR) -I.\..\..\include -W -Wall -I. $(__DLLFLAG_p) -I.\..\..\samples \
2113bc77
MW
27 -DNOPCH $(__RTTIFLAG_5) $(__EXCEPTIONSFLAG_6) -Wno-ctor-dtor-privacy \
28 $(CPPFLAGS) $(CXXFLAGS)
25a73439 29WIDGETS_OBJECTS = \
b2b98dfd 30 $(OBJS)\widgets_bmpcombobox.o \
25a73439 31 $(OBJS)\widgets_button.o \
8941fa88 32 $(OBJS)\widgets_checkbox.o \
b2b98dfd 33 $(OBJS)\widgets_clrpicker.o \
25a73439 34 $(OBJS)\widgets_combobox.o \
f2fdc4d5 35 $(OBJS)\widgets_datepick.o \
c4f6d998 36 $(OBJS)\widgets_dirctrl.o \
b2b98dfd
WS
37 $(OBJS)\widgets_dirpicker.o \
38 $(OBJS)\widgets_filepicker.o \
39 $(OBJS)\widgets_fontpicker.o \
25a73439 40 $(OBJS)\widgets_gauge.o \
f9300d42 41 $(OBJS)\widgets_hyperlnk.o \
25a73439
VS
42 $(OBJS)\widgets_listbox.o \
43 $(OBJS)\widgets_notebook.o \
53a0475d 44 $(OBJS)\widgets_odcombobox.o \
25a73439
VS
45 $(OBJS)\widgets_radiobox.o \
46 $(OBJS)\widgets_slider.o \
47 $(OBJS)\widgets_spinbtn.o \
48 $(OBJS)\widgets_static.o \
49 $(OBJS)\widgets_textctrl.o \
32816f9a 50 $(OBJS)\widgets_toggle.o \
25a73439 51 $(OBJS)\widgets_widgets.o \
f2fdc4d5 52 $(OBJS)\widgets_sample_rc.o
3b20263d
VS
53
54### Conditionally set variables: ###
55
250700e4
RD
56ifeq ($(GCC_VERSION),2.95)
57GCCFLAGS = -fvtable-thunks
58endif
3b20263d
VS
59ifeq ($(USE_GUI),0)
60PORTNAME = base
61endif
62ifeq ($(USE_GUI),1)
63PORTNAME = msw
64endif
65ifeq ($(BUILD),debug)
25a73439
VS
66ifeq ($(DEBUG_FLAG),default)
67WXDEBUGFLAG = d
68endif
69endif
70ifeq ($(DEBUG_FLAG),1)
3b20263d
VS
71WXDEBUGFLAG = d
72endif
3b20263d
VS
73ifeq ($(UNICODE),1)
74WXUNICODEFLAG = u
75endif
76ifeq ($(WXUNIV),1)
77WXUNIVNAME = univ
78endif
b17c1746
DE
79ifeq ($(SHARED),1)
80WXDLLFLAG = dll
25a73439 81endif
b14abf14
JS
82ifeq ($(SHARED),0)
83LIBTYPE_SUFFIX = lib
84endif
85ifeq ($(SHARED),1)
86LIBTYPE_SUFFIX = dll
87endif
dd65d8c8
RN
88ifeq ($(MONOLITHIC),0)
89EXTRALIBS_FOR_BASE =
90endif
91ifeq ($(MONOLITHIC),1)
92EXTRALIBS_FOR_BASE =
93endif
b17c1746
DE
94ifeq ($(BUILD),debug)
95__OPTIMIZEFLAG_2 = -O0
250700e4
RD
96endif
97ifeq ($(BUILD),release)
b17c1746 98__OPTIMIZEFLAG_2 = -O2
25a73439 99endif
8c9f8f91
JS
100ifeq ($(USE_RTTI),0)
101__RTTIFLAG_5 = -fno-rtti
25a73439 102endif
8c9f8f91
JS
103ifeq ($(USE_RTTI),1)
104__RTTIFLAG_5 =
25a73439 105endif
b17c1746 106ifeq ($(USE_EXCEPTIONS),0)
8c9f8f91 107__EXCEPTIONSFLAG_6 = -fno-exceptions
b17c1746
DE
108endif
109ifeq ($(USE_EXCEPTIONS),1)
8c9f8f91 110__EXCEPTIONSFLAG_6 =
b17c1746
DE
111endif
112ifeq ($(WXUNIV),1)
113__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
114endif
115ifeq ($(WXUNIV),1)
116__WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__
250700e4
RD
117endif
118ifeq ($(BUILD),debug)
25a73439
VS
119ifeq ($(DEBUG_FLAG),default)
120__DEBUG_DEFINE_p = -D__WXDEBUG__
121endif
122endif
123ifeq ($(DEBUG_FLAG),1)
3b20263d
VS
124__DEBUG_DEFINE_p = -D__WXDEBUG__
125endif
126ifeq ($(BUILD),debug)
25a73439
VS
127ifeq ($(DEBUG_FLAG),default)
128__DEBUG_DEFINE_p_1 = --define __WXDEBUG__
129endif
130endif
131ifeq ($(DEBUG_FLAG),1)
3b20263d
VS
132__DEBUG_DEFINE_p_1 = --define __WXDEBUG__
133endif
8c9f8f91
JS
134ifeq ($(USE_EXCEPTIONS),0)
135__EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
136endif
137ifeq ($(USE_EXCEPTIONS),0)
138__EXCEPTIONS_DEFINE_p_1 = --define wxNO_EXCEPTIONS
139endif
140ifeq ($(USE_RTTI),0)
141__RTTI_DEFINE_p = -DwxNO_RTTI
142endif
143ifeq ($(USE_RTTI),0)
144__RTTI_DEFINE_p_1 = --define wxNO_RTTI
145endif
146ifeq ($(USE_THREADS),0)
147__THREAD_DEFINE_p = -DwxNO_THREADS
148endif
149ifeq ($(USE_THREADS),0)
150__THREAD_DEFINE_p_1 = --define wxNO_THREADS
151endif
b17c1746
DE
152ifeq ($(UNICODE),1)
153__UNICODE_DEFINE_p = -D_UNICODE
154endif
155ifeq ($(UNICODE),1)
156__UNICODE_DEFINE_p_1 = --define _UNICODE
157endif
2113bc77
MW
158ifeq ($(MSLU),1)
159__MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
160endif
161ifeq ($(MSLU),1)
162__MSLU_DEFINE_p_1 = --define wxUSE_UNICODE_MSLU=1
163endif
3b20263d
VS
164ifeq ($(SHARED),1)
165__DLLFLAG_p = -DWXUSINGDLL
166endif
167ifeq ($(SHARED),1)
168__DLLFLAG_p_1 = --define WXUSINGDLL
169endif
b17c1746 170ifeq ($(MONOLITHIC),0)
137c8bde
WS
171__WXLIB_XML_p = \
172 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_xml
173endif
174ifeq ($(MONOLITHIC),0)
f2fdc4d5
WS
175__WXLIB_ADV_p = \
176 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_adv
177endif
178ifeq ($(MONOLITHIC),0)
179__WXLIB_HTML_p = \
180 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_html
181endif
182ifeq ($(MONOLITHIC),0)
b17c1746 183__WXLIB_CORE_p = \
c33fae85 184 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
b71531ad 185endif
b17c1746 186ifeq ($(MONOLITHIC),0)
c33fae85
RN
187__WXLIB_BASE_p = \
188 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
b71531ad 189endif
b17c1746
DE
190ifeq ($(MONOLITHIC),1)
191__WXLIB_MONO_p = \
c33fae85 192 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
b71531ad 193endif
b17c1746 194ifeq ($(USE_GUI),1)
9c2d002b 195__LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
b71531ad 196endif
25a73439 197ifeq ($(USE_GUI),1)
9c2d002b 198__LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
25a73439
VS
199endif
200ifeq ($(USE_GUI),1)
9c2d002b 201__LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
25a73439 202endif
b17c1746
DE
203ifeq ($(MSLU),1)
204__UNICOWS_LIB_p = -lunicows
250700e4 205endif
b17c1746
DE
206ifeq ($(BUILD),debug)
207ifeq ($(DEBUG_INFO),default)
208__DEBUGINFO = -g
4e209a20 209endif
3b20263d 210endif
b17c1746
DE
211ifeq ($(BUILD),release)
212ifeq ($(DEBUG_INFO),default)
213__DEBUGINFO =
3b20263d 214endif
3b20263d 215endif
b17c1746
DE
216ifeq ($(DEBUG_INFO),0)
217__DEBUGINFO =
3b20263d 218endif
b17c1746
DE
219ifeq ($(DEBUG_INFO),1)
220__DEBUGINFO = -g
3b20263d 221endif
8c9f8f91
JS
222ifeq ($(USE_THREADS),0)
223__THREADSFLAG =
224endif
225ifeq ($(USE_THREADS),1)
226__THREADSFLAG = -mthreads
227endif
3b20263d
VS
228
229
230all: $(OBJS)
231$(OBJS):
232 -if not exist $(OBJS) mkdir $(OBJS)
233
234### Targets: ###
235
236all: $(OBJS)\widgets.exe
237
b17c1746
DE
238clean:
239 -if exist $(OBJS)\*.o del $(OBJS)\*.o
0d90d6ea 240 -if exist $(OBJS)\*.d del $(OBJS)\*.d
b17c1746
DE
241 -if exist $(OBJS)\widgets.exe del $(OBJS)\widgets.exe
242
f2fdc4d5 243$(OBJS)\widgets.exe: $(WIDGETS_OBJECTS) $(OBJS)\widgets_sample_rc.o
137c8bde 244 $(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) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lodbc32
b17c1746 245
b2b98dfd
WS
246$(OBJS)\widgets_bmpcombobox.o: ./bmpcombobox.cpp
247 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
248
1c3a6972 249$(OBJS)\widgets_button.o: ./button.cpp
0d90d6ea 250 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
3b20263d 251
8941fa88 252$(OBJS)\widgets_checkbox.o: ./checkbox.cpp
0d90d6ea 253 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
8941fa88 254
b2b98dfd 255$(OBJS)\widgets_clrpicker.o: ./clrpicker.cpp
0d90d6ea 256 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
3b20263d 257
b2b98dfd 258$(OBJS)\widgets_combobox.o: ./combobox.cpp
f2fdc4d5
WS
259 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
260
b2b98dfd 261$(OBJS)\widgets_datepick.o: ./datepick.cpp
0d90d6ea 262 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
3b20263d 263
c4f6d998
WS
264$(OBJS)\widgets_dirctrl.o: ./dirctrl.cpp
265 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
266
b2b98dfd 267$(OBJS)\widgets_dirpicker.o: ./dirpicker.cpp
f9300d42
WS
268 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
269
b2b98dfd 270$(OBJS)\widgets_filepicker.o: ./filepicker.cpp
0d90d6ea 271 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
3b20263d 272
b2b98dfd 273$(OBJS)\widgets_fontpicker.o: ./fontpicker.cpp
0d90d6ea 274 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
3b20263d 275
b2b98dfd 276$(OBJS)\widgets_gauge.o: ./gauge.cpp
137c8bde
WS
277 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
278
b2b98dfd 279$(OBJS)\widgets_hyperlnk.o: ./hyperlnk.cpp
137c8bde
WS
280 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
281
b2b98dfd 282$(OBJS)\widgets_listbox.o: ./listbox.cpp
137c8bde
WS
283 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
284
b2b98dfd 285$(OBJS)\widgets_notebook.o: ./notebook.cpp
ec376c8f
VZ
286 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
287
53a0475d
WS
288$(OBJS)\widgets_odcombobox.o: ./odcombobox.cpp
289 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
290
1c3a6972 291$(OBJS)\widgets_radiobox.o: ./radiobox.cpp
0d90d6ea 292 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
3b20263d 293
1c3a6972 294$(OBJS)\widgets_slider.o: ./slider.cpp
0d90d6ea 295 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
3b20263d 296
1c3a6972 297$(OBJS)\widgets_spinbtn.o: ./spinbtn.cpp
0d90d6ea 298 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
3b20263d 299
1c3a6972 300$(OBJS)\widgets_static.o: ./static.cpp
0d90d6ea 301 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
3b20263d 302
1c3a6972 303$(OBJS)\widgets_textctrl.o: ./textctrl.cpp
0d90d6ea 304 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
3b20263d 305
32816f9a
WS
306$(OBJS)\widgets_toggle.o: ./toggle.cpp
307 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
308
1c3a6972 309$(OBJS)\widgets_widgets.o: ./widgets.cpp
0d90d6ea 310 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
3b20263d 311
f2fdc4d5 312$(OBJS)\widgets_sample_rc.o: ./../sample.rc
77a7dfc1 313 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) --include-dir $(SETUPHDIR) --include-dir ./../../include --include-dir . $(__DLLFLAG_p_1) --include-dir ./../../samples --define NOPCH
3b20263d 314
250700e4 315.PHONY: all clean
b14abf14 316
8c9f8f91 317
0d90d6ea
JS
318# Dependencies tracking:
319-include $(OBJS)/*.d