]> git.saurik.com Git - wxWidgets.git/blob - samples/widgets/makefile.gcc
00a0b01b6ccb503d742ea4d19543d41154f2f124
[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_bmpcombobox.o \
31 $(OBJS)\widgets_button.o \
32 $(OBJS)\widgets_checkbox.o \
33 $(OBJS)\widgets_clrpicker.o \
34 $(OBJS)\widgets_combobox.o \
35 $(OBJS)\widgets_datepick.o \
36 $(OBJS)\widgets_dirctrl.o \
37 $(OBJS)\widgets_dirpicker.o \
38 $(OBJS)\widgets_filepicker.o \
39 $(OBJS)\widgets_fontpicker.o \
40 $(OBJS)\widgets_gauge.o \
41 $(OBJS)\widgets_hyperlnk.o \
42 $(OBJS)\widgets_listbox.o \
43 $(OBJS)\widgets_notebook.o \
44 $(OBJS)\widgets_odcombobox.o \
45 $(OBJS)\widgets_radiobox.o \
46 $(OBJS)\widgets_slider.o \
47 $(OBJS)\widgets_spinbtn.o \
48 $(OBJS)\widgets_static.o \
49 $(OBJS)\widgets_textctrl.o \
50 $(OBJS)\widgets_toggle.o \
51 $(OBJS)\widgets_widgets.o \
52 $(OBJS)\widgets_sample_rc.o
53
54 ### Conditionally set variables: ###
55
56 ifeq ($(GCC_VERSION),2.95)
57 GCCFLAGS = -fvtable-thunks
58 endif
59 ifeq ($(USE_GUI),0)
60 PORTNAME = base
61 endif
62 ifeq ($(USE_GUI),1)
63 PORTNAME = msw
64 endif
65 ifeq ($(BUILD),debug)
66 ifeq ($(DEBUG_FLAG),default)
67 WXDEBUGFLAG = d
68 endif
69 endif
70 ifeq ($(DEBUG_FLAG),1)
71 WXDEBUGFLAG = d
72 endif
73 ifeq ($(UNICODE),1)
74 WXUNICODEFLAG = u
75 endif
76 ifeq ($(WXUNIV),1)
77 WXUNIVNAME = univ
78 endif
79 ifeq ($(SHARED),1)
80 WXDLLFLAG = dll
81 endif
82 ifeq ($(SHARED),0)
83 LIBTYPE_SUFFIX = lib
84 endif
85 ifeq ($(SHARED),1)
86 LIBTYPE_SUFFIX = dll
87 endif
88 ifeq ($(MONOLITHIC),0)
89 EXTRALIBS_FOR_BASE =
90 endif
91 ifeq ($(MONOLITHIC),1)
92 EXTRALIBS_FOR_BASE =
93 endif
94 ifeq ($(BUILD),debug)
95 __OPTIMIZEFLAG_2 = -O0
96 endif
97 ifeq ($(BUILD),release)
98 __OPTIMIZEFLAG_2 = -O2
99 endif
100 ifeq ($(USE_RTTI),0)
101 __RTTIFLAG_5 = -fno-rtti
102 endif
103 ifeq ($(USE_RTTI),1)
104 __RTTIFLAG_5 =
105 endif
106 ifeq ($(USE_EXCEPTIONS),0)
107 __EXCEPTIONSFLAG_6 = -fno-exceptions
108 endif
109 ifeq ($(USE_EXCEPTIONS),1)
110 __EXCEPTIONSFLAG_6 =
111 endif
112 ifeq ($(WXUNIV),1)
113 __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
114 endif
115 ifeq ($(WXUNIV),1)
116 __WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__
117 endif
118 ifeq ($(BUILD),debug)
119 ifeq ($(DEBUG_FLAG),default)
120 __DEBUG_DEFINE_p = -D__WXDEBUG__
121 endif
122 endif
123 ifeq ($(DEBUG_FLAG),1)
124 __DEBUG_DEFINE_p = -D__WXDEBUG__
125 endif
126 ifeq ($(BUILD),debug)
127 ifeq ($(DEBUG_FLAG),default)
128 __DEBUG_DEFINE_p_1 = --define __WXDEBUG__
129 endif
130 endif
131 ifeq ($(DEBUG_FLAG),1)
132 __DEBUG_DEFINE_p_1 = --define __WXDEBUG__
133 endif
134 ifeq ($(USE_EXCEPTIONS),0)
135 __EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
136 endif
137 ifeq ($(USE_EXCEPTIONS),0)
138 __EXCEPTIONS_DEFINE_p_1 = --define wxNO_EXCEPTIONS
139 endif
140 ifeq ($(USE_RTTI),0)
141 __RTTI_DEFINE_p = -DwxNO_RTTI
142 endif
143 ifeq ($(USE_RTTI),0)
144 __RTTI_DEFINE_p_1 = --define wxNO_RTTI
145 endif
146 ifeq ($(USE_THREADS),0)
147 __THREAD_DEFINE_p = -DwxNO_THREADS
148 endif
149 ifeq ($(USE_THREADS),0)
150 __THREAD_DEFINE_p_1 = --define wxNO_THREADS
151 endif
152 ifeq ($(UNICODE),1)
153 __UNICODE_DEFINE_p = -D_UNICODE
154 endif
155 ifeq ($(UNICODE),1)
156 __UNICODE_DEFINE_p_1 = --define _UNICODE
157 endif
158 ifeq ($(MSLU),1)
159 __MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1
160 endif
161 ifeq ($(MSLU),1)
162 __MSLU_DEFINE_p_1 = --define wxUSE_UNICODE_MSLU=1
163 endif
164 ifeq ($(SHARED),1)
165 __DLLFLAG_p = -DWXUSINGDLL
166 endif
167 ifeq ($(SHARED),1)
168 __DLLFLAG_p_1 = --define WXUSINGDLL
169 endif
170 ifeq ($(MONOLITHIC),0)
171 __WXLIB_XML_p = \
172 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_xml
173 endif
174 ifeq ($(MONOLITHIC),0)
175 __WXLIB_ADV_p = \
176 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_adv
177 endif
178 ifeq ($(MONOLITHIC),0)
179 __WXLIB_HTML_p = \
180 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_html
181 endif
182 ifeq ($(MONOLITHIC),0)
183 __WXLIB_CORE_p = \
184 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
185 endif
186 ifeq ($(MONOLITHIC),0)
187 __WXLIB_BASE_p = \
188 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
189 endif
190 ifeq ($(MONOLITHIC),1)
191 __WXLIB_MONO_p = \
192 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
193 endif
194 ifeq ($(USE_GUI),1)
195 __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
196 endif
197 ifeq ($(USE_GUI),1)
198 __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
199 endif
200 ifeq ($(USE_GUI),1)
201 __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
202 endif
203 ifeq ($(MSLU),1)
204 __UNICOWS_LIB_p = -lunicows
205 endif
206 ifeq ($(BUILD),debug)
207 ifeq ($(DEBUG_INFO),default)
208 __DEBUGINFO = -g
209 endif
210 endif
211 ifeq ($(BUILD),release)
212 ifeq ($(DEBUG_INFO),default)
213 __DEBUGINFO =
214 endif
215 endif
216 ifeq ($(DEBUG_INFO),0)
217 __DEBUGINFO =
218 endif
219 ifeq ($(DEBUG_INFO),1)
220 __DEBUGINFO = -g
221 endif
222 ifeq ($(USE_THREADS),0)
223 __THREADSFLAG =
224 endif
225 ifeq ($(USE_THREADS),1)
226 __THREADSFLAG = -mthreads
227 endif
228
229
230 all: $(OBJS)
231 $(OBJS):
232 -if not exist $(OBJS) mkdir $(OBJS)
233
234 ### Targets: ###
235
236 all: $(OBJS)\widgets.exe
237
238 clean:
239 -if exist $(OBJS)\*.o del $(OBJS)\*.o
240 -if exist $(OBJS)\*.d del $(OBJS)\*.d
241 -if exist $(OBJS)\widgets.exe del $(OBJS)\widgets.exe
242
243 $(OBJS)\widgets.exe: $(WIDGETS_OBJECTS) $(OBJS)\widgets_sample_rc.o
244 $(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) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lodbc32
245
246 $(OBJS)\widgets_bmpcombobox.o: ./bmpcombobox.cpp
247 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
248
249 $(OBJS)\widgets_button.o: ./button.cpp
250 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
251
252 $(OBJS)\widgets_checkbox.o: ./checkbox.cpp
253 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
254
255 $(OBJS)\widgets_clrpicker.o: ./clrpicker.cpp
256 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
257
258 $(OBJS)\widgets_combobox.o: ./combobox.cpp
259 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
260
261 $(OBJS)\widgets_datepick.o: ./datepick.cpp
262 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
263
264 $(OBJS)\widgets_dirctrl.o: ./dirctrl.cpp
265 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
266
267 $(OBJS)\widgets_dirpicker.o: ./dirpicker.cpp
268 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
269
270 $(OBJS)\widgets_filepicker.o: ./filepicker.cpp
271 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
272
273 $(OBJS)\widgets_fontpicker.o: ./fontpicker.cpp
274 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
275
276 $(OBJS)\widgets_gauge.o: ./gauge.cpp
277 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
278
279 $(OBJS)\widgets_hyperlnk.o: ./hyperlnk.cpp
280 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
281
282 $(OBJS)\widgets_listbox.o: ./listbox.cpp
283 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
284
285 $(OBJS)\widgets_notebook.o: ./notebook.cpp
286 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
287
288 $(OBJS)\widgets_odcombobox.o: ./odcombobox.cpp
289 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
290
291 $(OBJS)\widgets_radiobox.o: ./radiobox.cpp
292 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
293
294 $(OBJS)\widgets_slider.o: ./slider.cpp
295 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
296
297 $(OBJS)\widgets_spinbtn.o: ./spinbtn.cpp
298 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
299
300 $(OBJS)\widgets_static.o: ./static.cpp
301 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
302
303 $(OBJS)\widgets_textctrl.o: ./textctrl.cpp
304 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
305
306 $(OBJS)\widgets_toggle.o: ./toggle.cpp
307 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
308
309 $(OBJS)\widgets_widgets.o: ./widgets.cpp
310 $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $<
311
312 $(OBJS)\widgets_sample_rc.o: ./../sample.rc
313 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
314
315 .PHONY: all clean
316
317
318 # Dependencies tracking:
319 -include $(OBJS)/*.d