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