]>
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 |
25bb1412 | 16 | WX_RELEASE_NODOT = 28 |
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 VS |
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 \ | |
32816f9a | 50 | $(OBJS)\widgets_toggle.o \ |
25a73439 | 51 | $(OBJS)\widgets_widgets.o \ |
f2fdc4d5 | 52 | $(OBJS)\widgets_sample_rc.o |
3b20263d VS |
53 | |
54 | ### Conditionally set variables: ### | |
55 | ||
250700e4 RD |
56 | ifeq ($(GCC_VERSION),2.95) |
57 | GCCFLAGS = -fvtable-thunks | |
58 | endif | |
3b20263d VS |
59 | ifeq ($(USE_GUI),0) |
60 | PORTNAME = base | |
61 | endif | |
62 | ifeq ($(USE_GUI),1) | |
63 | PORTNAME = msw | |
64 | endif | |
65 | ifeq ($(BUILD),debug) | |
25a73439 VS |
66 | ifeq ($(DEBUG_FLAG),default) |
67 | WXDEBUGFLAG = d | |
68 | endif | |
69 | endif | |
70 | ifeq ($(DEBUG_FLAG),1) | |
3b20263d VS |
71 | WXDEBUGFLAG = d |
72 | endif | |
3b20263d VS |
73 | ifeq ($(UNICODE),1) |
74 | WXUNICODEFLAG = u | |
75 | endif | |
76 | ifeq ($(WXUNIV),1) | |
77 | WXUNIVNAME = univ | |
78 | endif | |
b17c1746 DE |
79 | ifeq ($(SHARED),1) |
80 | WXDLLFLAG = dll | |
25a73439 | 81 | endif |
b14abf14 JS |
82 | ifeq ($(SHARED),0) |
83 | LIBTYPE_SUFFIX = lib | |
84 | endif | |
85 | ifeq ($(SHARED),1) | |
86 | LIBTYPE_SUFFIX = dll | |
87 | endif | |
dd65d8c8 RN |
88 | ifeq ($(MONOLITHIC),0) |
89 | EXTRALIBS_FOR_BASE = | |
90 | endif | |
91 | ifeq ($(MONOLITHIC),1) | |
92 | EXTRALIBS_FOR_BASE = | |
93 | endif | |
b17c1746 DE |
94 | ifeq ($(BUILD),debug) |
95 | __OPTIMIZEFLAG_2 = -O0 | |
250700e4 RD |
96 | endif |
97 | ifeq ($(BUILD),release) | |
b17c1746 | 98 | __OPTIMIZEFLAG_2 = -O2 |
25a73439 | 99 | endif |
8c9f8f91 JS |
100 | ifeq ($(USE_RTTI),0) |
101 | __RTTIFLAG_5 = -fno-rtti | |
25a73439 | 102 | endif |
8c9f8f91 JS |
103 | ifeq ($(USE_RTTI),1) |
104 | __RTTIFLAG_5 = | |
25a73439 | 105 | endif |
b17c1746 | 106 | ifeq ($(USE_EXCEPTIONS),0) |
8c9f8f91 | 107 | __EXCEPTIONSFLAG_6 = -fno-exceptions |
b17c1746 DE |
108 | endif |
109 | ifeq ($(USE_EXCEPTIONS),1) | |
8c9f8f91 | 110 | __EXCEPTIONSFLAG_6 = |
b17c1746 DE |
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__ | |
250700e4 RD |
117 | endif |
118 | ifeq ($(BUILD),debug) | |
25a73439 VS |
119 | ifeq ($(DEBUG_FLAG),default) |
120 | __DEBUG_DEFINE_p = -D__WXDEBUG__ | |
121 | endif | |
122 | endif | |
123 | ifeq ($(DEBUG_FLAG),1) | |
3b20263d VS |
124 | __DEBUG_DEFINE_p = -D__WXDEBUG__ |
125 | endif | |
126 | ifeq ($(BUILD),debug) | |
25a73439 VS |
127 | ifeq ($(DEBUG_FLAG),default) |
128 | __DEBUG_DEFINE_p_1 = --define __WXDEBUG__ | |
129 | endif | |
130 | endif | |
131 | ifeq ($(DEBUG_FLAG),1) | |
3b20263d VS |
132 | __DEBUG_DEFINE_p_1 = --define __WXDEBUG__ |
133 | endif | |
8c9f8f91 JS |
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 | |
b17c1746 DE |
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 | |
2113bc77 MW |
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 | |
3abcf424 RD |
164 | ifeq ($(USE_GDIPLUS),1) |
165 | __GFXCTX_DEFINE_p = -DwxUSE_GRAPHICS_CONTEXT=1 | |
166 | endif | |
167 | ifeq ($(USE_GDIPLUS),1) | |
168 | __GFXCTX_DEFINE_p_1 = --define wxUSE_GRAPHICS_CONTEXT=1 | |
169 | endif | |
3b20263d VS |
170 | ifeq ($(SHARED),1) |
171 | __DLLFLAG_p = -DWXUSINGDLL | |
172 | endif | |
173 | ifeq ($(SHARED),1) | |
174 | __DLLFLAG_p_1 = --define WXUSINGDLL | |
175 | endif | |
b17c1746 | 176 | ifeq ($(MONOLITHIC),0) |
137c8bde WS |
177 | __WXLIB_XML_p = \ |
178 | -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_xml | |
179 | endif | |
180 | ifeq ($(MONOLITHIC),0) | |
f2fdc4d5 WS |
181 | __WXLIB_ADV_p = \ |
182 | -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_adv | |
183 | endif | |
184 | ifeq ($(MONOLITHIC),0) | |
185 | __WXLIB_HTML_p = \ | |
186 | -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_html | |
187 | endif | |
188 | ifeq ($(MONOLITHIC),0) | |
b17c1746 | 189 | __WXLIB_CORE_p = \ |
c33fae85 | 190 | -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core |
b71531ad | 191 | endif |
b17c1746 | 192 | ifeq ($(MONOLITHIC),0) |
c33fae85 RN |
193 | __WXLIB_BASE_p = \ |
194 | -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR) | |
b71531ad | 195 | endif |
b17c1746 DE |
196 | ifeq ($(MONOLITHIC),1) |
197 | __WXLIB_MONO_p = \ | |
c33fae85 | 198 | -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR) |
b71531ad | 199 | endif |
b17c1746 | 200 | ifeq ($(USE_GUI),1) |
9c2d002b | 201 | __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG) |
b71531ad | 202 | endif |
25a73439 | 203 | ifeq ($(USE_GUI),1) |
9c2d002b | 204 | __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG) |
25a73439 VS |
205 | endif |
206 | ifeq ($(USE_GUI),1) | |
9c2d002b | 207 | __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG) |
25a73439 | 208 | endif |
b17c1746 DE |
209 | ifeq ($(MSLU),1) |
210 | __UNICOWS_LIB_p = -lunicows | |
250700e4 | 211 | endif |
3abcf424 RD |
212 | ifeq ($(USE_GDIPLUS),1) |
213 | __GDIPLUS_LIB_p = -lgdiplus | |
214 | endif | |
b17c1746 DE |
215 | ifeq ($(BUILD),debug) |
216 | ifeq ($(DEBUG_INFO),default) | |
217 | __DEBUGINFO = -g | |
4e209a20 | 218 | endif |
3b20263d | 219 | endif |
b17c1746 DE |
220 | ifeq ($(BUILD),release) |
221 | ifeq ($(DEBUG_INFO),default) | |
222 | __DEBUGINFO = | |
3b20263d | 223 | endif |
3b20263d | 224 | endif |
b17c1746 DE |
225 | ifeq ($(DEBUG_INFO),0) |
226 | __DEBUGINFO = | |
3b20263d | 227 | endif |
b17c1746 DE |
228 | ifeq ($(DEBUG_INFO),1) |
229 | __DEBUGINFO = -g | |
3b20263d | 230 | endif |
8c9f8f91 JS |
231 | ifeq ($(USE_THREADS),0) |
232 | __THREADSFLAG = | |
233 | endif | |
234 | ifeq ($(USE_THREADS),1) | |
235 | __THREADSFLAG = -mthreads | |
236 | endif | |
3b20263d VS |
237 | |
238 | ||
239 | all: $(OBJS) | |
240 | $(OBJS): | |
241 | -if not exist $(OBJS) mkdir $(OBJS) | |
242 | ||
243 | ### Targets: ### | |
244 | ||
245 | all: $(OBJS)\widgets.exe | |
246 | ||
b17c1746 DE |
247 | clean: |
248 | -if exist $(OBJS)\*.o del $(OBJS)\*.o | |
0d90d6ea | 249 | -if exist $(OBJS)\*.d del $(OBJS)\*.d |
b17c1746 DE |
250 | -if exist $(OBJS)\widgets.exe del $(OBJS)\widgets.exe |
251 | ||
f2fdc4d5 | 252 | $(OBJS)\widgets.exe: $(WIDGETS_OBJECTS) $(OBJS)\widgets_sample_rc.o |
3abcf424 | 253 | $(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 | 254 | |
b2b98dfd WS |
255 | $(OBJS)\widgets_bmpcombobox.o: ./bmpcombobox.cpp |
256 | $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $< | |
257 | ||
1c3a6972 | 258 | $(OBJS)\widgets_button.o: ./button.cpp |
0d90d6ea | 259 | $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $< |
3b20263d | 260 | |
8941fa88 | 261 | $(OBJS)\widgets_checkbox.o: ./checkbox.cpp |
0d90d6ea | 262 | $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $< |
8941fa88 | 263 | |
b2b98dfd | 264 | $(OBJS)\widgets_clrpicker.o: ./clrpicker.cpp |
0d90d6ea | 265 | $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $< |
3b20263d | 266 | |
b2b98dfd | 267 | $(OBJS)\widgets_combobox.o: ./combobox.cpp |
f2fdc4d5 WS |
268 | $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $< |
269 | ||
b2b98dfd | 270 | $(OBJS)\widgets_datepick.o: ./datepick.cpp |
0d90d6ea | 271 | $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $< |
3b20263d | 272 | |
c4f6d998 WS |
273 | $(OBJS)\widgets_dirctrl.o: ./dirctrl.cpp |
274 | $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $< | |
275 | ||
b2b98dfd | 276 | $(OBJS)\widgets_dirpicker.o: ./dirpicker.cpp |
f9300d42 WS |
277 | $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $< |
278 | ||
b2b98dfd | 279 | $(OBJS)\widgets_filepicker.o: ./filepicker.cpp |
0d90d6ea | 280 | $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $< |
3b20263d | 281 | |
b2b98dfd | 282 | $(OBJS)\widgets_fontpicker.o: ./fontpicker.cpp |
0d90d6ea | 283 | $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $< |
3b20263d | 284 | |
b2b98dfd | 285 | $(OBJS)\widgets_gauge.o: ./gauge.cpp |
137c8bde WS |
286 | $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $< |
287 | ||
b2b98dfd | 288 | $(OBJS)\widgets_hyperlnk.o: ./hyperlnk.cpp |
137c8bde WS |
289 | $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $< |
290 | ||
b2b98dfd | 291 | $(OBJS)\widgets_listbox.o: ./listbox.cpp |
137c8bde WS |
292 | $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $< |
293 | ||
b2b98dfd | 294 | $(OBJS)\widgets_notebook.o: ./notebook.cpp |
ec376c8f VZ |
295 | $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $< |
296 | ||
53a0475d WS |
297 | $(OBJS)\widgets_odcombobox.o: ./odcombobox.cpp |
298 | $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $< | |
299 | ||
1c3a6972 | 300 | $(OBJS)\widgets_radiobox.o: ./radiobox.cpp |
0d90d6ea | 301 | $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $< |
3b20263d | 302 | |
1c3a6972 | 303 | $(OBJS)\widgets_slider.o: ./slider.cpp |
0d90d6ea | 304 | $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $< |
3b20263d | 305 | |
1c3a6972 | 306 | $(OBJS)\widgets_spinbtn.o: ./spinbtn.cpp |
0d90d6ea | 307 | $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $< |
3b20263d | 308 | |
1c3a6972 | 309 | $(OBJS)\widgets_static.o: ./static.cpp |
0d90d6ea | 310 | $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $< |
3b20263d | 311 | |
1c3a6972 | 312 | $(OBJS)\widgets_textctrl.o: ./textctrl.cpp |
0d90d6ea | 313 | $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $< |
3b20263d | 314 | |
32816f9a WS |
315 | $(OBJS)\widgets_toggle.o: ./toggle.cpp |
316 | $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $< | |
317 | ||
1c3a6972 | 318 | $(OBJS)\widgets_widgets.o: ./widgets.cpp |
0d90d6ea | 319 | $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $< |
3b20263d | 320 | |
f2fdc4d5 | 321 | $(OBJS)\widgets_sample_rc.o: ./../sample.rc |
3abcf424 | 322 | 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 | 323 | |
250700e4 | 324 | .PHONY: all clean |
b14abf14 | 325 | |
8c9f8f91 | 326 | |
0d90d6ea JS |
327 | # Dependencies tracking: |
328 | -include $(OBJS)/*.d |