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