]>
Commit | Line | Data |
---|---|---|
3b20263d VS |
1 | # ========================================================================= |
2 | # This makefile was generated by | |
25bb1412 | 3 | # Bakefile 0.2.1 (http://bakefile.sourceforge.net) |
3b20263d VS |
4 | # Do not modify, all changes will be overwritten! |
5 | # ========================================================================= | |
6 | ||
fd9f42b6 | 7 | include ../../build/msw/config.gcc |
3b20263d VS |
8 | |
9 | # ------------------------------------------------------------------------- | |
10 | # Do not modify the rest of this file! | |
11 | # ------------------------------------------------------------------------- | |
12 | ||
13 | ### Variables: ### | |
14 | ||
0d90d6ea | 15 | CPPDEPS = -MT$@ -MF$@.d -MD |
ae4ccf12 | 16 | WX_RELEASE_NODOT = 29 |
25a73439 VS |
17 | OBJS = \ |
18 | gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) | |
b14abf14 | 19 | LIBDIRNAME = .\..\..\lib\gcc_$(LIBTYPE_SUFFIX)$(CFG) |
75a0a7b7 VS |
20 | SETUPHDIR = \ |
21 | $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG) | |
8c9f8f91 JS |
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) \ | |
2113bc77 | 25 | $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) $(__MSLU_DEFINE_p) \ |
3abcf424 RD |
26 | $(__GFXCTX_DEFINE_p) -I$(SETUPHDIR) -I.\..\..\include -W -Wall -I. \ |
27 | $(__DLLFLAG_p) -I.\..\..\samples -DNOPCH $(__RTTIFLAG_5) \ | |
28 | $(__EXCEPTIONSFLAG_6) -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS) | |
25a73439 | 29 | WIDGETS_OBJECTS = \ |
b2b98dfd | 30 | $(OBJS)\widgets_bmpcombobox.o \ |
25a73439 | 31 | $(OBJS)\widgets_button.o \ |
8941fa88 | 32 | $(OBJS)\widgets_checkbox.o \ |
b2b98dfd | 33 | $(OBJS)\widgets_clrpicker.o \ |
25a73439 | 34 | $(OBJS)\widgets_combobox.o \ |
f2fdc4d5 | 35 | $(OBJS)\widgets_datepick.o \ |
c4f6d998 | 36 | $(OBJS)\widgets_dirctrl.o \ |
b2b98dfd WS |
37 | $(OBJS)\widgets_dirpicker.o \ |
38 | $(OBJS)\widgets_filepicker.o \ | |
39 | $(OBJS)\widgets_fontpicker.o \ | |
25a73439 | 40 | $(OBJS)\widgets_gauge.o \ |
f9300d42 | 41 | $(OBJS)\widgets_hyperlnk.o \ |
25a73439 VS |
42 | $(OBJS)\widgets_listbox.o \ |
43 | $(OBJS)\widgets_notebook.o \ | |
53a0475d | 44 | $(OBJS)\widgets_odcombobox.o \ |
25a73439 | 45 | $(OBJS)\widgets_radiobox.o \ |
3f7f284d | 46 | $(OBJS)\widgets_searchctrl.o \ |
25a73439 VS |
47 | $(OBJS)\widgets_slider.o \ |
48 | $(OBJS)\widgets_spinbtn.o \ | |
49 | $(OBJS)\widgets_static.o \ | |
50 | $(OBJS)\widgets_textctrl.o \ | |
32816f9a | 51 | $(OBJS)\widgets_toggle.o \ |
25a73439 | 52 | $(OBJS)\widgets_widgets.o \ |
f2fdc4d5 | 53 | $(OBJS)\widgets_sample_rc.o |
3b20263d VS |
54 | |
55 | ### Conditionally set variables: ### | |
56 | ||
250700e4 RD |
57 | ifeq ($(GCC_VERSION),2.95) |
58 | GCCFLAGS = -fvtable-thunks | |
59 | endif | |
3b20263d VS |
60 | ifeq ($(USE_GUI),0) |
61 | PORTNAME = base | |
62 | endif | |
63 | ifeq ($(USE_GUI),1) | |
64 | PORTNAME = msw | |
65 | endif | |
66 | ifeq ($(BUILD),debug) | |
25a73439 VS |
67 | ifeq ($(DEBUG_FLAG),default) |
68 | WXDEBUGFLAG = d | |
69 | endif | |
70 | endif | |
71 | ifeq ($(DEBUG_FLAG),1) | |
3b20263d VS |
72 | WXDEBUGFLAG = d |
73 | endif | |
3b20263d VS |
74 | ifeq ($(UNICODE),1) |
75 | WXUNICODEFLAG = u | |
76 | endif | |
77 | ifeq ($(WXUNIV),1) | |
78 | WXUNIVNAME = univ | |
79 | endif | |
b17c1746 DE |
80 | ifeq ($(SHARED),1) |
81 | WXDLLFLAG = dll | |
25a73439 | 82 | endif |
b14abf14 JS |
83 | ifeq ($(SHARED),0) |
84 | LIBTYPE_SUFFIX = lib | |
85 | endif | |
86 | ifeq ($(SHARED),1) | |
87 | LIBTYPE_SUFFIX = dll | |
88 | endif | |
dd65d8c8 RN |
89 | ifeq ($(MONOLITHIC),0) |
90 | EXTRALIBS_FOR_BASE = | |
91 | endif | |
92 | ifeq ($(MONOLITHIC),1) | |
93 | EXTRALIBS_FOR_BASE = | |
94 | endif | |
b17c1746 DE |
95 | ifeq ($(BUILD),debug) |
96 | __OPTIMIZEFLAG_2 = -O0 | |
250700e4 RD |
97 | endif |
98 | ifeq ($(BUILD),release) | |
b17c1746 | 99 | __OPTIMIZEFLAG_2 = -O2 |
25a73439 | 100 | endif |
8c9f8f91 JS |
101 | ifeq ($(USE_RTTI),0) |
102 | __RTTIFLAG_5 = -fno-rtti | |
25a73439 | 103 | endif |
8c9f8f91 JS |
104 | ifeq ($(USE_RTTI),1) |
105 | __RTTIFLAG_5 = | |
25a73439 | 106 | endif |
b17c1746 | 107 | ifeq ($(USE_EXCEPTIONS),0) |
8c9f8f91 | 108 | __EXCEPTIONSFLAG_6 = -fno-exceptions |
b17c1746 DE |
109 | endif |
110 | ifeq ($(USE_EXCEPTIONS),1) | |
8c9f8f91 | 111 | __EXCEPTIONSFLAG_6 = |
b17c1746 DE |
112 | endif |
113 | ifeq ($(WXUNIV),1) | |
114 | __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__ | |
115 | endif | |
116 | ifeq ($(WXUNIV),1) | |
117 | __WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__ | |
250700e4 RD |
118 | endif |
119 | ifeq ($(BUILD),debug) | |
25a73439 VS |
120 | ifeq ($(DEBUG_FLAG),default) |
121 | __DEBUG_DEFINE_p = -D__WXDEBUG__ | |
122 | endif | |
123 | endif | |
124 | ifeq ($(DEBUG_FLAG),1) | |
3b20263d VS |
125 | __DEBUG_DEFINE_p = -D__WXDEBUG__ |
126 | endif | |
127 | ifeq ($(BUILD),debug) | |
25a73439 VS |
128 | ifeq ($(DEBUG_FLAG),default) |
129 | __DEBUG_DEFINE_p_1 = --define __WXDEBUG__ | |
130 | endif | |
131 | endif | |
132 | ifeq ($(DEBUG_FLAG),1) | |
3b20263d VS |
133 | __DEBUG_DEFINE_p_1 = --define __WXDEBUG__ |
134 | endif | |
8c9f8f91 JS |
135 | ifeq ($(USE_EXCEPTIONS),0) |
136 | __EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS | |
137 | endif | |
138 | ifeq ($(USE_EXCEPTIONS),0) | |
139 | __EXCEPTIONS_DEFINE_p_1 = --define wxNO_EXCEPTIONS | |
140 | endif | |
141 | ifeq ($(USE_RTTI),0) | |
142 | __RTTI_DEFINE_p = -DwxNO_RTTI | |
143 | endif | |
144 | ifeq ($(USE_RTTI),0) | |
145 | __RTTI_DEFINE_p_1 = --define wxNO_RTTI | |
146 | endif | |
147 | ifeq ($(USE_THREADS),0) | |
148 | __THREAD_DEFINE_p = -DwxNO_THREADS | |
149 | endif | |
150 | ifeq ($(USE_THREADS),0) | |
151 | __THREAD_DEFINE_p_1 = --define wxNO_THREADS | |
152 | endif | |
b17c1746 DE |
153 | ifeq ($(UNICODE),1) |
154 | __UNICODE_DEFINE_p = -D_UNICODE | |
155 | endif | |
156 | ifeq ($(UNICODE),1) | |
157 | __UNICODE_DEFINE_p_1 = --define _UNICODE | |
158 | endif | |
2113bc77 MW |
159 | ifeq ($(MSLU),1) |
160 | __MSLU_DEFINE_p = -DwxUSE_UNICODE_MSLU=1 | |
161 | endif | |
162 | ifeq ($(MSLU),1) | |
163 | __MSLU_DEFINE_p_1 = --define wxUSE_UNICODE_MSLU=1 | |
164 | endif | |
3abcf424 RD |
165 | ifeq ($(USE_GDIPLUS),1) |
166 | __GFXCTX_DEFINE_p = -DwxUSE_GRAPHICS_CONTEXT=1 | |
167 | endif | |
168 | ifeq ($(USE_GDIPLUS),1) | |
169 | __GFXCTX_DEFINE_p_1 = --define wxUSE_GRAPHICS_CONTEXT=1 | |
170 | endif | |
3b20263d VS |
171 | ifeq ($(SHARED),1) |
172 | __DLLFLAG_p = -DWXUSINGDLL | |
173 | endif | |
174 | ifeq ($(SHARED),1) | |
175 | __DLLFLAG_p_1 = --define WXUSINGDLL | |
176 | endif | |
b17c1746 | 177 | ifeq ($(MONOLITHIC),0) |
137c8bde WS |
178 | __WXLIB_XML_p = \ |
179 | -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_xml | |
180 | endif | |
181 | ifeq ($(MONOLITHIC),0) | |
f2fdc4d5 WS |
182 | __WXLIB_ADV_p = \ |
183 | -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_adv | |
184 | endif | |
185 | ifeq ($(MONOLITHIC),0) | |
186 | __WXLIB_HTML_p = \ | |
187 | -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_html | |
188 | endif | |
189 | ifeq ($(MONOLITHIC),0) | |
b17c1746 | 190 | __WXLIB_CORE_p = \ |
c33fae85 | 191 | -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core |
b71531ad | 192 | endif |
b17c1746 | 193 | ifeq ($(MONOLITHIC),0) |
c33fae85 RN |
194 | __WXLIB_BASE_p = \ |
195 | -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR) | |
b71531ad | 196 | endif |
b17c1746 DE |
197 | ifeq ($(MONOLITHIC),1) |
198 | __WXLIB_MONO_p = \ | |
c33fae85 | 199 | -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR) |
b71531ad | 200 | endif |
b17c1746 | 201 | ifeq ($(USE_GUI),1) |
9c2d002b | 202 | __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG) |
b71531ad | 203 | endif |
25a73439 | 204 | ifeq ($(USE_GUI),1) |
9c2d002b | 205 | __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG) |
25a73439 VS |
206 | endif |
207 | ifeq ($(USE_GUI),1) | |
9c2d002b | 208 | __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG) |
25a73439 | 209 | endif |
b17c1746 DE |
210 | ifeq ($(MSLU),1) |
211 | __UNICOWS_LIB_p = -lunicows | |
250700e4 | 212 | endif |
3abcf424 RD |
213 | ifeq ($(USE_GDIPLUS),1) |
214 | __GDIPLUS_LIB_p = -lgdiplus | |
215 | endif | |
b17c1746 DE |
216 | ifeq ($(BUILD),debug) |
217 | ifeq ($(DEBUG_INFO),default) | |
218 | __DEBUGINFO = -g | |
4e209a20 | 219 | endif |
3b20263d | 220 | endif |
b17c1746 DE |
221 | ifeq ($(BUILD),release) |
222 | ifeq ($(DEBUG_INFO),default) | |
223 | __DEBUGINFO = | |
3b20263d | 224 | endif |
3b20263d | 225 | endif |
b17c1746 DE |
226 | ifeq ($(DEBUG_INFO),0) |
227 | __DEBUGINFO = | |
3b20263d | 228 | endif |
b17c1746 DE |
229 | ifeq ($(DEBUG_INFO),1) |
230 | __DEBUGINFO = -g | |
3b20263d | 231 | endif |
8c9f8f91 JS |
232 | ifeq ($(USE_THREADS),0) |
233 | __THREADSFLAG = | |
234 | endif | |
235 | ifeq ($(USE_THREADS),1) | |
236 | __THREADSFLAG = -mthreads | |
237 | endif | |
3b20263d VS |
238 | |
239 | ||
240 | all: $(OBJS) | |
241 | $(OBJS): | |
242 | -if not exist $(OBJS) mkdir $(OBJS) | |
243 | ||
244 | ### Targets: ### | |
245 | ||
246 | all: $(OBJS)\widgets.exe | |
247 | ||
b17c1746 DE |
248 | clean: |
249 | -if exist $(OBJS)\*.o del $(OBJS)\*.o | |
0d90d6ea | 250 | -if exist $(OBJS)\*.d del $(OBJS)\*.d |
b17c1746 DE |
251 | -if exist $(OBJS)\widgets.exe del $(OBJS)\widgets.exe |
252 | ||
f2fdc4d5 | 253 | $(OBJS)\widgets.exe: $(WIDGETS_OBJECTS) $(OBJS)\widgets_sample_rc.o |
3abcf424 | 254 | $(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) $(__GDIPLUS_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lodbc32 |
b17c1746 | 255 | |
b2b98dfd WS |
256 | $(OBJS)\widgets_bmpcombobox.o: ./bmpcombobox.cpp |
257 | $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $< | |
258 | ||
1c3a6972 | 259 | $(OBJS)\widgets_button.o: ./button.cpp |
0d90d6ea | 260 | $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $< |
3b20263d | 261 | |
8941fa88 | 262 | $(OBJS)\widgets_checkbox.o: ./checkbox.cpp |
0d90d6ea | 263 | $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $< |
8941fa88 | 264 | |
b2b98dfd | 265 | $(OBJS)\widgets_clrpicker.o: ./clrpicker.cpp |
0d90d6ea | 266 | $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $< |
3b20263d | 267 | |
b2b98dfd | 268 | $(OBJS)\widgets_combobox.o: ./combobox.cpp |
f2fdc4d5 WS |
269 | $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $< |
270 | ||
b2b98dfd | 271 | $(OBJS)\widgets_datepick.o: ./datepick.cpp |
0d90d6ea | 272 | $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $< |
3b20263d | 273 | |
c4f6d998 WS |
274 | $(OBJS)\widgets_dirctrl.o: ./dirctrl.cpp |
275 | $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $< | |
276 | ||
b2b98dfd | 277 | $(OBJS)\widgets_dirpicker.o: ./dirpicker.cpp |
f9300d42 WS |
278 | $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $< |
279 | ||
b2b98dfd | 280 | $(OBJS)\widgets_filepicker.o: ./filepicker.cpp |
0d90d6ea | 281 | $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $< |
3b20263d | 282 | |
b2b98dfd | 283 | $(OBJS)\widgets_fontpicker.o: ./fontpicker.cpp |
0d90d6ea | 284 | $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $< |
3b20263d | 285 | |
b2b98dfd | 286 | $(OBJS)\widgets_gauge.o: ./gauge.cpp |
137c8bde WS |
287 | $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $< |
288 | ||
b2b98dfd | 289 | $(OBJS)\widgets_hyperlnk.o: ./hyperlnk.cpp |
137c8bde WS |
290 | $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $< |
291 | ||
b2b98dfd | 292 | $(OBJS)\widgets_listbox.o: ./listbox.cpp |
137c8bde WS |
293 | $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $< |
294 | ||
b2b98dfd | 295 | $(OBJS)\widgets_notebook.o: ./notebook.cpp |
ec376c8f VZ |
296 | $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $< |
297 | ||
53a0475d WS |
298 | $(OBJS)\widgets_odcombobox.o: ./odcombobox.cpp |
299 | $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $< | |
300 | ||
1c3a6972 | 301 | $(OBJS)\widgets_radiobox.o: ./radiobox.cpp |
0d90d6ea | 302 | $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $< |
3b20263d | 303 | |
3f7f284d RD |
304 | $(OBJS)\widgets_searchctrl.o: ./searchctrl.cpp |
305 | $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $< | |
306 | ||
1c3a6972 | 307 | $(OBJS)\widgets_slider.o: ./slider.cpp |
0d90d6ea | 308 | $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $< |
3b20263d | 309 | |
1c3a6972 | 310 | $(OBJS)\widgets_spinbtn.o: ./spinbtn.cpp |
0d90d6ea | 311 | $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $< |
3b20263d | 312 | |
1c3a6972 | 313 | $(OBJS)\widgets_static.o: ./static.cpp |
0d90d6ea | 314 | $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $< |
3b20263d | 315 | |
1c3a6972 | 316 | $(OBJS)\widgets_textctrl.o: ./textctrl.cpp |
0d90d6ea | 317 | $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $< |
3b20263d | 318 | |
32816f9a WS |
319 | $(OBJS)\widgets_toggle.o: ./toggle.cpp |
320 | $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $< | |
321 | ||
1c3a6972 | 322 | $(OBJS)\widgets_widgets.o: ./widgets.cpp |
0d90d6ea | 323 | $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $< |
3b20263d | 324 | |
f2fdc4d5 | 325 | $(OBJS)\widgets_sample_rc.o: ./../sample.rc |
3abcf424 | 326 | 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) $(__GFXCTX_DEFINE_p_1) --include-dir $(SETUPHDIR) --include-dir ./../../include --include-dir . $(__DLLFLAG_p_1) --include-dir ./../../samples --define NOPCH |
3b20263d | 327 | |
250700e4 | 328 | .PHONY: all clean |
b14abf14 | 329 | |
8c9f8f91 | 330 | |
0d90d6ea JS |
331 | # Dependencies tracking: |
332 | -include $(OBJS)/*.d |