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