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