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