]> git.saurik.com Git - wxWidgets.git/blame - samples/widgets/makefile.gcc
wxStreamToTextRedirector test
[wxWidgets.git] / samples / widgets / makefile.gcc
CommitLineData
3b20263d
VS
1# =========================================================================
2# This makefile was generated by
8c9f8f91 3# Bakefile 0.1.8 (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
4818141b 15WX_RELEASE_NODOT = 26
25a73439
VS
16OBJS = \
17 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
b14abf14 18LIBDIRNAME = .\..\..\lib\gcc_$(LIBTYPE_SUFFIX)$(CFG)
75a0a7b7
VS
19SETUPHDIR = \
20 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
8c9f8f91
JS
21WIDGETS_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG_2) $(__THREADSFLAG) \
22 $(GCCFLAGS) -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) \
23 $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \
24 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) -I.\..\..\include -I$(SETUPHDIR) \
25 -W -Wall -I. $(__DLLFLAG_p) -I.\..\..\samples -DNOPCH $(__RTTIFLAG_5) \
26 $(__EXCEPTIONSFLAG_6) -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS)
25a73439
VS
27WIDGETS_OBJECTS = \
28 $(OBJS)\widgets_button.o \
8941fa88 29 $(OBJS)\widgets_checkbox.o \
25a73439
VS
30 $(OBJS)\widgets_combobox.o \
31 $(OBJS)\widgets_gauge.o \
32 $(OBJS)\widgets_listbox.o \
33 $(OBJS)\widgets_notebook.o \
34 $(OBJS)\widgets_radiobox.o \
35 $(OBJS)\widgets_slider.o \
36 $(OBJS)\widgets_spinbtn.o \
37 $(OBJS)\widgets_static.o \
38 $(OBJS)\widgets_textctrl.o \
39 $(OBJS)\widgets_widgets.o \
40 $(OBJS)\widgets_widgets_rc.o
3b20263d
VS
41
42### Conditionally set variables: ###
43
250700e4
RD
44ifeq ($(GCC_VERSION),2.95)
45GCCFLAGS = -fvtable-thunks
46endif
3b20263d
VS
47ifeq ($(USE_GUI),0)
48PORTNAME = base
49endif
50ifeq ($(USE_GUI),1)
51PORTNAME = msw
52endif
53ifeq ($(BUILD),debug)
25a73439
VS
54ifeq ($(DEBUG_FLAG),default)
55WXDEBUGFLAG = d
56endif
57endif
58ifeq ($(DEBUG_FLAG),1)
3b20263d
VS
59WXDEBUGFLAG = d
60endif
3b20263d
VS
61ifeq ($(UNICODE),1)
62WXUNICODEFLAG = u
63endif
64ifeq ($(WXUNIV),1)
65WXUNIVNAME = univ
66endif
b17c1746
DE
67ifeq ($(SHARED),1)
68WXDLLFLAG = dll
25a73439 69endif
b14abf14
JS
70ifeq ($(SHARED),0)
71LIBTYPE_SUFFIX = lib
72endif
73ifeq ($(SHARED),1)
74LIBTYPE_SUFFIX = dll
75endif
dd65d8c8
RN
76ifeq ($(MONOLITHIC),0)
77EXTRALIBS_FOR_BASE =
78endif
79ifeq ($(MONOLITHIC),1)
80EXTRALIBS_FOR_BASE =
81endif
b17c1746
DE
82ifeq ($(BUILD),debug)
83__OPTIMIZEFLAG_2 = -O0
250700e4
RD
84endif
85ifeq ($(BUILD),release)
b17c1746 86__OPTIMIZEFLAG_2 = -O2
25a73439 87endif
8c9f8f91
JS
88ifeq ($(USE_RTTI),0)
89__RTTIFLAG_5 = -fno-rtti
25a73439 90endif
8c9f8f91
JS
91ifeq ($(USE_RTTI),1)
92__RTTIFLAG_5 =
25a73439 93endif
b17c1746 94ifeq ($(USE_EXCEPTIONS),0)
8c9f8f91 95__EXCEPTIONSFLAG_6 = -fno-exceptions
b17c1746
DE
96endif
97ifeq ($(USE_EXCEPTIONS),1)
8c9f8f91 98__EXCEPTIONSFLAG_6 =
b17c1746
DE
99endif
100ifeq ($(WXUNIV),1)
101__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
102endif
103ifeq ($(WXUNIV),1)
104__WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__
250700e4
RD
105endif
106ifeq ($(BUILD),debug)
25a73439
VS
107ifeq ($(DEBUG_FLAG),default)
108__DEBUG_DEFINE_p = -D__WXDEBUG__
109endif
110endif
111ifeq ($(DEBUG_FLAG),1)
3b20263d
VS
112__DEBUG_DEFINE_p = -D__WXDEBUG__
113endif
114ifeq ($(BUILD),debug)
25a73439
VS
115ifeq ($(DEBUG_FLAG),default)
116__DEBUG_DEFINE_p_1 = --define __WXDEBUG__
117endif
118endif
119ifeq ($(DEBUG_FLAG),1)
3b20263d
VS
120__DEBUG_DEFINE_p_1 = --define __WXDEBUG__
121endif
8c9f8f91
JS
122ifeq ($(USE_EXCEPTIONS),0)
123__EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
124endif
125ifeq ($(USE_EXCEPTIONS),0)
126__EXCEPTIONS_DEFINE_p_1 = --define wxNO_EXCEPTIONS
127endif
128ifeq ($(USE_RTTI),0)
129__RTTI_DEFINE_p = -DwxNO_RTTI
130endif
131ifeq ($(USE_RTTI),0)
132__RTTI_DEFINE_p_1 = --define wxNO_RTTI
133endif
134ifeq ($(USE_THREADS),0)
135__THREAD_DEFINE_p = -DwxNO_THREADS
136endif
137ifeq ($(USE_THREADS),0)
138__THREAD_DEFINE_p_1 = --define wxNO_THREADS
139endif
b17c1746
DE
140ifeq ($(UNICODE),1)
141__UNICODE_DEFINE_p = -D_UNICODE
142endif
143ifeq ($(UNICODE),1)
144__UNICODE_DEFINE_p_1 = --define _UNICODE
145endif
3b20263d
VS
146ifeq ($(SHARED),1)
147__DLLFLAG_p = -DWXUSINGDLL
148endif
149ifeq ($(SHARED),1)
150__DLLFLAG_p_1 = --define WXUSINGDLL
151endif
b17c1746
DE
152ifeq ($(MONOLITHIC),0)
153__WXLIB_CORE_p = \
c33fae85 154 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
b71531ad 155endif
b17c1746 156ifeq ($(MONOLITHIC),0)
c33fae85
RN
157__WXLIB_BASE_p = \
158 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
b71531ad 159endif
b17c1746
DE
160ifeq ($(MONOLITHIC),1)
161__WXLIB_MONO_p = \
c33fae85 162 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
b71531ad 163endif
b17c1746 164ifeq ($(USE_GUI),1)
9c2d002b 165__LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
b71531ad 166endif
25a73439 167ifeq ($(USE_GUI),1)
9c2d002b 168__LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
25a73439
VS
169endif
170ifeq ($(USE_GUI),1)
9c2d002b 171__LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
25a73439 172endif
b17c1746
DE
173ifeq ($(MSLU),1)
174__UNICOWS_LIB_p = -lunicows
250700e4 175endif
b17c1746
DE
176ifeq ($(BUILD),debug)
177ifeq ($(DEBUG_INFO),default)
178__DEBUGINFO = -g
4e209a20 179endif
3b20263d 180endif
b17c1746
DE
181ifeq ($(BUILD),release)
182ifeq ($(DEBUG_INFO),default)
183__DEBUGINFO =
3b20263d 184endif
3b20263d 185endif
b17c1746
DE
186ifeq ($(DEBUG_INFO),0)
187__DEBUGINFO =
3b20263d 188endif
b17c1746
DE
189ifeq ($(DEBUG_INFO),1)
190__DEBUGINFO = -g
3b20263d 191endif
8c9f8f91
JS
192ifeq ($(USE_THREADS),0)
193__THREADSFLAG =
194endif
195ifeq ($(USE_THREADS),1)
196__THREADSFLAG = -mthreads
197endif
3b20263d
VS
198
199
200all: $(OBJS)
201$(OBJS):
202 -if not exist $(OBJS) mkdir $(OBJS)
203
204### Targets: ###
205
206all: $(OBJS)\widgets.exe
207
b17c1746
DE
208clean:
209 -if exist $(OBJS)\*.o del $(OBJS)\*.o
210 -if exist $(OBJS)\widgets.exe del $(OBJS)\widgets.exe
211
212$(OBJS)\widgets.exe: $(WIDGETS_OBJECTS) $(OBJS)\widgets_widgets_rc.o
8c9f8f91 213 $(CXX) -o $@ $(WIDGETS_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) $(__THREADSFLAG) -L$(LIBDIRNAME) -Wl,--subsystem,windows -mwindows $(__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 214
1c3a6972 215$(OBJS)\widgets_button.o: ./button.cpp
3b20263d
VS
216 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $<
217
8941fa88
VZ
218$(OBJS)\widgets_checkbox.o: ./checkbox.cpp
219 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $<
220
1c3a6972 221$(OBJS)\widgets_combobox.o: ./combobox.cpp
3b20263d
VS
222 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $<
223
1c3a6972 224$(OBJS)\widgets_gauge.o: ./gauge.cpp
3b20263d
VS
225 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $<
226
1c3a6972 227$(OBJS)\widgets_listbox.o: ./listbox.cpp
3b20263d
VS
228 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $<
229
1c3a6972 230$(OBJS)\widgets_notebook.o: ./notebook.cpp
3b20263d
VS
231 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $<
232
1c3a6972 233$(OBJS)\widgets_radiobox.o: ./radiobox.cpp
3b20263d
VS
234 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $<
235
1c3a6972 236$(OBJS)\widgets_slider.o: ./slider.cpp
3b20263d
VS
237 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $<
238
1c3a6972 239$(OBJS)\widgets_spinbtn.o: ./spinbtn.cpp
3b20263d
VS
240 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $<
241
1c3a6972 242$(OBJS)\widgets_static.o: ./static.cpp
3b20263d
VS
243 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $<
244
1c3a6972 245$(OBJS)\widgets_textctrl.o: ./textctrl.cpp
3b20263d
VS
246 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $<
247
1c3a6972 248$(OBJS)\widgets_widgets.o: ./widgets.cpp
3b20263d
VS
249 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $<
250
1c3a6972 251$(OBJS)\widgets_widgets_rc.o: ./widgets.rc
8c9f8f91 252 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) --include-dir ./../../include --include-dir $(SETUPHDIR) --include-dir . $(__DLLFLAG_p_1) --include-dir ./../../samples --define NOPCH
3b20263d 253
250700e4 254.PHONY: all clean
b14abf14 255
8c9f8f91 256