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