]> git.saurik.com Git - wxWidgets.git/blame - samples/widgets/makefile.gcc
Include wx/containr.h according to precompiled headers of wx/wx.h (with other minor...
[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
VS
29WIDGETS_OBJECTS = \
30 $(OBJS)\widgets_button.o \
8941fa88 31 $(OBJS)\widgets_checkbox.o \
25a73439 32 $(OBJS)\widgets_combobox.o \
f2fdc4d5 33 $(OBJS)\widgets_datepick.o \
25a73439 34 $(OBJS)\widgets_gauge.o \
f9300d42 35 $(OBJS)\widgets_hyperlnk.o \
25a73439
VS
36 $(OBJS)\widgets_listbox.o \
37 $(OBJS)\widgets_notebook.o \
ec376c8f 38 $(OBJS)\widgets_picker.o \
25a73439
VS
39 $(OBJS)\widgets_radiobox.o \
40 $(OBJS)\widgets_slider.o \
41 $(OBJS)\widgets_spinbtn.o \
42 $(OBJS)\widgets_static.o \
43 $(OBJS)\widgets_textctrl.o \
32816f9a 44 $(OBJS)\widgets_toggle.o \
25a73439 45 $(OBJS)\widgets_widgets.o \
f2fdc4d5 46 $(OBJS)\widgets_sample_rc.o
3b20263d
VS
47
48### Conditionally set variables: ###
49
250700e4
RD
50ifeq ($(GCC_VERSION),2.95)
51GCCFLAGS = -fvtable-thunks
52endif
3b20263d
VS
53ifeq ($(USE_GUI),0)
54PORTNAME = base
55endif
56ifeq ($(USE_GUI),1)
57PORTNAME = msw
58endif
59ifeq ($(BUILD),debug)
25a73439
VS
60ifeq ($(DEBUG_FLAG),default)
61WXDEBUGFLAG = d
62endif
63endif
64ifeq ($(DEBUG_FLAG),1)
3b20263d
VS
65WXDEBUGFLAG = d
66endif
3b20263d
VS
67ifeq ($(UNICODE),1)
68WXUNICODEFLAG = u
69endif
70ifeq ($(WXUNIV),1)
71WXUNIVNAME = univ
72endif
b17c1746
DE
73ifeq ($(SHARED),1)
74WXDLLFLAG = dll
25a73439 75endif
b14abf14
JS
76ifeq ($(SHARED),0)
77LIBTYPE_SUFFIX = lib
78endif
79ifeq ($(SHARED),1)
80LIBTYPE_SUFFIX = dll
81endif
dd65d8c8
RN
82ifeq ($(MONOLITHIC),0)
83EXTRALIBS_FOR_BASE =
84endif
85ifeq ($(MONOLITHIC),1)
86EXTRALIBS_FOR_BASE =
87endif
b17c1746
DE
88ifeq ($(BUILD),debug)
89__OPTIMIZEFLAG_2 = -O0
250700e4
RD
90endif
91ifeq ($(BUILD),release)
b17c1746 92__OPTIMIZEFLAG_2 = -O2
25a73439 93endif
8c9f8f91
JS
94ifeq ($(USE_RTTI),0)
95__RTTIFLAG_5 = -fno-rtti
25a73439 96endif
8c9f8f91
JS
97ifeq ($(USE_RTTI),1)
98__RTTIFLAG_5 =
25a73439 99endif
b17c1746 100ifeq ($(USE_EXCEPTIONS),0)
8c9f8f91 101__EXCEPTIONSFLAG_6 = -fno-exceptions
b17c1746
DE
102endif
103ifeq ($(USE_EXCEPTIONS),1)
8c9f8f91 104__EXCEPTIONSFLAG_6 =
b17c1746
DE
105endif
106ifeq ($(WXUNIV),1)
107__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
108endif
109ifeq ($(WXUNIV),1)
110__WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__
250700e4
RD
111endif
112ifeq ($(BUILD),debug)
25a73439
VS
113ifeq ($(DEBUG_FLAG),default)
114__DEBUG_DEFINE_p = -D__WXDEBUG__
115endif
116endif
117ifeq ($(DEBUG_FLAG),1)
3b20263d
VS
118__DEBUG_DEFINE_p = -D__WXDEBUG__
119endif
120ifeq ($(BUILD),debug)
25a73439
VS
121ifeq ($(DEBUG_FLAG),default)
122__DEBUG_DEFINE_p_1 = --define __WXDEBUG__
123endif
124endif
125ifeq ($(DEBUG_FLAG),1)
3b20263d
VS
126__DEBUG_DEFINE_p_1 = --define __WXDEBUG__
127endif
8c9f8f91
JS
128ifeq ($(USE_EXCEPTIONS),0)
129__EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
130endif
131ifeq ($(USE_EXCEPTIONS),0)
132__EXCEPTIONS_DEFINE_p_1 = --define wxNO_EXCEPTIONS
133endif
134ifeq ($(USE_RTTI),0)
135__RTTI_DEFINE_p = -DwxNO_RTTI
136endif
137ifeq ($(USE_RTTI),0)
138__RTTI_DEFINE_p_1 = --define wxNO_RTTI
139endif
140ifeq ($(USE_THREADS),0)
141__THREAD_DEFINE_p = -DwxNO_THREADS
142endif
143ifeq ($(USE_THREADS),0)
144__THREAD_DEFINE_p_1 = --define wxNO_THREADS
145endif
b17c1746
DE
146ifeq ($(UNICODE),1)
147__UNICODE_DEFINE_p = -D_UNICODE
148endif
149ifeq ($(UNICODE),1)
150__UNICODE_DEFINE_p_1 = --define _UNICODE
151endif
2113bc77
MW
152ifeq ($(MSLU),1)
153__MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
154endif
155ifeq ($(MSLU),1)
156__MSLU_DEFINE_p_1 = --define wxUSE_UNICODE_MSLU=1
157endif
3b20263d
VS
158ifeq ($(SHARED),1)
159__DLLFLAG_p = -DWXUSINGDLL
160endif
161ifeq ($(SHARED),1)
162__DLLFLAG_p_1 = --define WXUSINGDLL
163endif
b17c1746 164ifeq ($(MONOLITHIC),0)
f2fdc4d5
WS
165__WXLIB_ADV_p = \
166 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_adv
167endif
168ifeq ($(MONOLITHIC),0)
169__WXLIB_HTML_p = \
170 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_html
171endif
172ifeq ($(MONOLITHIC),0)
b17c1746 173__WXLIB_CORE_p = \
c33fae85 174 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
b71531ad 175endif
b17c1746 176ifeq ($(MONOLITHIC),0)
c33fae85
RN
177__WXLIB_BASE_p = \
178 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
b71531ad 179endif
b17c1746
DE
180ifeq ($(MONOLITHIC),1)
181__WXLIB_MONO_p = \
c33fae85 182 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
b71531ad 183endif
b17c1746 184ifeq ($(USE_GUI),1)
9c2d002b 185__LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
b71531ad 186endif
25a73439 187ifeq ($(USE_GUI),1)
9c2d002b 188__LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
25a73439
VS
189endif
190ifeq ($(USE_GUI),1)
9c2d002b 191__LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
25a73439 192endif
b17c1746
DE
193ifeq ($(MSLU),1)
194__UNICOWS_LIB_p = -lunicows
250700e4 195endif
b17c1746
DE
196ifeq ($(BUILD),debug)
197ifeq ($(DEBUG_INFO),default)
198__DEBUGINFO = -g
4e209a20 199endif
3b20263d 200endif
b17c1746
DE
201ifeq ($(BUILD),release)
202ifeq ($(DEBUG_INFO),default)
203__DEBUGINFO =
3b20263d 204endif
3b20263d 205endif
b17c1746
DE
206ifeq ($(DEBUG_INFO),0)
207__DEBUGINFO =
3b20263d 208endif
b17c1746
DE
209ifeq ($(DEBUG_INFO),1)
210__DEBUGINFO = -g
3b20263d 211endif
8c9f8f91
JS
212ifeq ($(USE_THREADS),0)
213__THREADSFLAG =
214endif
215ifeq ($(USE_THREADS),1)
216__THREADSFLAG = -mthreads
217endif
3b20263d
VS
218
219
220all: $(OBJS)
221$(OBJS):
222 -if not exist $(OBJS) mkdir $(OBJS)
223
224### Targets: ###
225
226all: $(OBJS)\widgets.exe
227
b17c1746
DE
228clean:
229 -if exist $(OBJS)\*.o del $(OBJS)\*.o
0d90d6ea 230 -if exist $(OBJS)\*.d del $(OBJS)\*.d
b17c1746
DE
231 -if exist $(OBJS)\widgets.exe del $(OBJS)\widgets.exe
232
f2fdc4d5
WS
233$(OBJS)\widgets.exe: $(WIDGETS_OBJECTS) $(OBJS)\widgets_sample_rc.o
234 $(CXX) -o $@ $(WIDGETS_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) $(__THREADSFLAG) -L$(LIBDIRNAME) -Wl,--subsystem,windows -mwindows $(__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 235
1c3a6972 236$(OBJS)\widgets_button.o: ./button.cpp
0d90d6ea 237 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
3b20263d 238
8941fa88 239$(OBJS)\widgets_checkbox.o: ./checkbox.cpp
0d90d6ea 240 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
8941fa88 241
1c3a6972 242$(OBJS)\widgets_combobox.o: ./combobox.cpp
0d90d6ea 243 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
3b20263d 244
f2fdc4d5
WS
245$(OBJS)\widgets_datepick.o: ./datepick.cpp
246 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
247
1c3a6972 248$(OBJS)\widgets_gauge.o: ./gauge.cpp
0d90d6ea 249 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
3b20263d 250
f9300d42
WS
251$(OBJS)\widgets_hyperlnk.o: ./hyperlnk.cpp
252 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
253
1c3a6972 254$(OBJS)\widgets_listbox.o: ./listbox.cpp
0d90d6ea 255 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
3b20263d 256
1c3a6972 257$(OBJS)\widgets_notebook.o: ./notebook.cpp
0d90d6ea 258 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
3b20263d 259
ec376c8f
VZ
260$(OBJS)\widgets_picker.o: ./picker.cpp
261 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
262
1c3a6972 263$(OBJS)\widgets_radiobox.o: ./radiobox.cpp
0d90d6ea 264 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
3b20263d 265
1c3a6972 266$(OBJS)\widgets_slider.o: ./slider.cpp
0d90d6ea 267 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
3b20263d 268
1c3a6972 269$(OBJS)\widgets_spinbtn.o: ./spinbtn.cpp
0d90d6ea 270 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
3b20263d 271
1c3a6972 272$(OBJS)\widgets_static.o: ./static.cpp
0d90d6ea 273 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
3b20263d 274
1c3a6972 275$(OBJS)\widgets_textctrl.o: ./textctrl.cpp
0d90d6ea 276 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
3b20263d 277
32816f9a
WS
278$(OBJS)\widgets_toggle.o: ./toggle.cpp
279 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
280
1c3a6972 281$(OBJS)\widgets_widgets.o: ./widgets.cpp
0d90d6ea 282 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
3b20263d 283
f2fdc4d5 284$(OBJS)\widgets_sample_rc.o: ./../sample.rc
77a7dfc1 285 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 286
250700e4 287.PHONY: all clean
b14abf14 288
8c9f8f91 289
0d90d6ea
JS
290# Dependencies tracking:
291-include $(OBJS)/*.d