]> git.saurik.com Git - wxWidgets.git/blob - samples/widgets/makefile.gcc
more wxFD_XXX renamings (patch 1488371)
[wxWidgets.git] / samples / widgets / makefile.gcc
1 # =========================================================================
2 # This makefile was generated by
3 # Bakefile 0.2.0 (http://bakefile.sourceforge.net)
4 # Do not modify, all changes will be overwritten!
5 # =========================================================================
6
7 include ../../build/msw/config.gcc
8
9 # -------------------------------------------------------------------------
10 # Do not modify the rest of this file!
11 # -------------------------------------------------------------------------
12
13 ### Variables: ###
14
15 CPPDEPS = -MT$@ -MF$@.d -MD
16 WX_RELEASE_NODOT = 27
17 OBJS = \
18 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
19 LIBDIRNAME = .\..\..\lib\gcc_$(LIBTYPE_SUFFIX)$(CFG)
20 SETUPHDIR = \
21 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
22 WIDGETS_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) \
25 $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \
26 -I$(SETUPHDIR) -I.\..\..\include -W -Wall -I. $(__DLLFLAG_p) -I.\..\..\samples \
27 -DNOPCH $(__RTTIFLAG_5) $(__EXCEPTIONSFLAG_6) -Wno-ctor-dtor-privacy \
28 $(CPPFLAGS) $(CXXFLAGS)
29 WIDGETS_OBJECTS = \
30 $(OBJS)\widgets_button.o \
31 $(OBJS)\widgets_checkbox.o \
32 $(OBJS)\widgets_combobox.o \
33 $(OBJS)\widgets_datepick.o \
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 \
42 $(OBJS)\widgets_toggle.o \
43 $(OBJS)\widgets_widgets.o \
44 $(OBJS)\widgets_sample_rc.o
45
46 ### Conditionally set variables: ###
47
48 ifeq ($(GCC_VERSION),2.95)
49 GCCFLAGS = -fvtable-thunks
50 endif
51 ifeq ($(USE_GUI),0)
52 PORTNAME = base
53 endif
54 ifeq ($(USE_GUI),1)
55 PORTNAME = msw
56 endif
57 ifeq ($(BUILD),debug)
58 ifeq ($(DEBUG_FLAG),default)
59 WXDEBUGFLAG = d
60 endif
61 endif
62 ifeq ($(DEBUG_FLAG),1)
63 WXDEBUGFLAG = d
64 endif
65 ifeq ($(UNICODE),1)
66 WXUNICODEFLAG = u
67 endif
68 ifeq ($(WXUNIV),1)
69 WXUNIVNAME = univ
70 endif
71 ifeq ($(SHARED),1)
72 WXDLLFLAG = dll
73 endif
74 ifeq ($(SHARED),0)
75 LIBTYPE_SUFFIX = lib
76 endif
77 ifeq ($(SHARED),1)
78 LIBTYPE_SUFFIX = dll
79 endif
80 ifeq ($(MONOLITHIC),0)
81 EXTRALIBS_FOR_BASE =
82 endif
83 ifeq ($(MONOLITHIC),1)
84 EXTRALIBS_FOR_BASE =
85 endif
86 ifeq ($(BUILD),debug)
87 __OPTIMIZEFLAG_2 = -O0
88 endif
89 ifeq ($(BUILD),release)
90 __OPTIMIZEFLAG_2 = -O2
91 endif
92 ifeq ($(USE_RTTI),0)
93 __RTTIFLAG_5 = -fno-rtti
94 endif
95 ifeq ($(USE_RTTI),1)
96 __RTTIFLAG_5 =
97 endif
98 ifeq ($(USE_EXCEPTIONS),0)
99 __EXCEPTIONSFLAG_6 = -fno-exceptions
100 endif
101 ifeq ($(USE_EXCEPTIONS),1)
102 __EXCEPTIONSFLAG_6 =
103 endif
104 ifeq ($(WXUNIV),1)
105 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
106 endif
107 ifeq ($(WXUNIV),1)
108 __WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__
109 endif
110 ifeq ($(BUILD),debug)
111 ifeq ($(DEBUG_FLAG),default)
112 __DEBUG_DEFINE_p = -D__WXDEBUG__
113 endif
114 endif
115 ifeq ($(DEBUG_FLAG),1)
116 __DEBUG_DEFINE_p = -D__WXDEBUG__
117 endif
118 ifeq ($(BUILD),debug)
119 ifeq ($(DEBUG_FLAG),default)
120 __DEBUG_DEFINE_p_1 = --define __WXDEBUG__
121 endif
122 endif
123 ifeq ($(DEBUG_FLAG),1)
124 __DEBUG_DEFINE_p_1 = --define __WXDEBUG__
125 endif
126 ifeq ($(USE_EXCEPTIONS),0)
127 __EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
128 endif
129 ifeq ($(USE_EXCEPTIONS),0)
130 __EXCEPTIONS_DEFINE_p_1 = --define wxNO_EXCEPTIONS
131 endif
132 ifeq ($(USE_RTTI),0)
133 __RTTI_DEFINE_p = -DwxNO_RTTI
134 endif
135 ifeq ($(USE_RTTI),0)
136 __RTTI_DEFINE_p_1 = --define wxNO_RTTI
137 endif
138 ifeq ($(USE_THREADS),0)
139 __THREAD_DEFINE_p = -DwxNO_THREADS
140 endif
141 ifeq ($(USE_THREADS),0)
142 __THREAD_DEFINE_p_1 = --define wxNO_THREADS
143 endif
144 ifeq ($(UNICODE),1)
145 __UNICODE_DEFINE_p = -D_UNICODE
146 endif
147 ifeq ($(UNICODE),1)
148 __UNICODE_DEFINE_p_1 = --define _UNICODE
149 endif
150 ifeq ($(MSLU),1)
151 __MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
152 endif
153 ifeq ($(MSLU),1)
154 __MSLU_DEFINE_p_1 = --define wxUSE_UNICODE_MSLU=1
155 endif
156 ifeq ($(SHARED),1)
157 __DLLFLAG_p = -DWXUSINGDLL
158 endif
159 ifeq ($(SHARED),1)
160 __DLLFLAG_p_1 = --define WXUSINGDLL
161 endif
162 ifeq ($(MONOLITHIC),0)
163 __WXLIB_ADV_p = \
164 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_adv
165 endif
166 ifeq ($(MONOLITHIC),0)
167 __WXLIB_HTML_p = \
168 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_html
169 endif
170 ifeq ($(MONOLITHIC),0)
171 __WXLIB_CORE_p = \
172 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
173 endif
174 ifeq ($(MONOLITHIC),0)
175 __WXLIB_BASE_p = \
176 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
177 endif
178 ifeq ($(MONOLITHIC),1)
179 __WXLIB_MONO_p = \
180 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
181 endif
182 ifeq ($(USE_GUI),1)
183 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
184 endif
185 ifeq ($(USE_GUI),1)
186 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
187 endif
188 ifeq ($(USE_GUI),1)
189 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
190 endif
191 ifeq ($(MSLU),1)
192 __UNICOWS_LIB_p = -lunicows
193 endif
194 ifeq ($(BUILD),debug)
195 ifeq ($(DEBUG_INFO),default)
196 __DEBUGINFO = -g
197 endif
198 endif
199 ifeq ($(BUILD),release)
200 ifeq ($(DEBUG_INFO),default)
201 __DEBUGINFO =
202 endif
203 endif
204 ifeq ($(DEBUG_INFO),0)
205 __DEBUGINFO =
206 endif
207 ifeq ($(DEBUG_INFO),1)
208 __DEBUGINFO = -g
209 endif
210 ifeq ($(USE_THREADS),0)
211 __THREADSFLAG =
212 endif
213 ifeq ($(USE_THREADS),1)
214 __THREADSFLAG = -mthreads
215 endif
216
217
218 all: $(OBJS)
219 $(OBJS):
220 -if not exist $(OBJS) mkdir $(OBJS)
221
222 ### Targets: ###
223
224 all: $(OBJS)\widgets.exe
225
226 clean:
227 -if exist $(OBJS)\*.o del $(OBJS)\*.o
228 -if exist $(OBJS)\*.d del $(OBJS)\*.d
229 -if exist $(OBJS)\widgets.exe del $(OBJS)\widgets.exe
230
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
233
234 $(OBJS)\widgets_button.o: ./button.cpp
235 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
236
237 $(OBJS)\widgets_checkbox.o: ./checkbox.cpp
238 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
239
240 $(OBJS)\widgets_combobox.o: ./combobox.cpp
241 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
242
243 $(OBJS)\widgets_datepick.o: ./datepick.cpp
244 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
245
246 $(OBJS)\widgets_gauge.o: ./gauge.cpp
247 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
248
249 $(OBJS)\widgets_listbox.o: ./listbox.cpp
250 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
251
252 $(OBJS)\widgets_notebook.o: ./notebook.cpp
253 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
254
255 $(OBJS)\widgets_radiobox.o: ./radiobox.cpp
256 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
257
258 $(OBJS)\widgets_slider.o: ./slider.cpp
259 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
260
261 $(OBJS)\widgets_spinbtn.o: ./spinbtn.cpp
262 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
263
264 $(OBJS)\widgets_static.o: ./static.cpp
265 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
266
267 $(OBJS)\widgets_textctrl.o: ./textctrl.cpp
268 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
269
270 $(OBJS)\widgets_toggle.o: ./toggle.cpp
271 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
272
273 $(OBJS)\widgets_widgets.o: ./widgets.cpp
274 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
275
276 $(OBJS)\widgets_sample_rc.o: ./../sample.rc
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
278
279 .PHONY: all clean
280
281
282 # Dependencies tracking:
283 -include $(OBJS)/*.d