]>
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 \ | |
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 \ | |
32816f9a | 43 | $(OBJS)\widgets_toggle.o \ |
25a73439 | 44 | $(OBJS)\widgets_widgets.o \ |
f2fdc4d5 | 45 | $(OBJS)\widgets_sample_rc.o |
3b20263d VS |
46 | |
47 | ### Conditionally set variables: ### | |
48 | ||
250700e4 RD |
49 | ifeq ($(GCC_VERSION),2.95) |
50 | GCCFLAGS = -fvtable-thunks | |
51 | endif | |
3b20263d VS |
52 | ifeq ($(USE_GUI),0) |
53 | PORTNAME = base | |
54 | endif | |
55 | ifeq ($(USE_GUI),1) | |
56 | PORTNAME = msw | |
57 | endif | |
58 | ifeq ($(BUILD),debug) | |
25a73439 VS |
59 | ifeq ($(DEBUG_FLAG),default) |
60 | WXDEBUGFLAG = d | |
61 | endif | |
62 | endif | |
63 | ifeq ($(DEBUG_FLAG),1) | |
3b20263d VS |
64 | WXDEBUGFLAG = d |
65 | endif | |
3b20263d VS |
66 | ifeq ($(UNICODE),1) |
67 | WXUNICODEFLAG = u | |
68 | endif | |
69 | ifeq ($(WXUNIV),1) | |
70 | WXUNIVNAME = univ | |
71 | endif | |
b17c1746 DE |
72 | ifeq ($(SHARED),1) |
73 | WXDLLFLAG = dll | |
25a73439 | 74 | endif |
b14abf14 JS |
75 | ifeq ($(SHARED),0) |
76 | LIBTYPE_SUFFIX = lib | |
77 | endif | |
78 | ifeq ($(SHARED),1) | |
79 | LIBTYPE_SUFFIX = dll | |
80 | endif | |
dd65d8c8 RN |
81 | ifeq ($(MONOLITHIC),0) |
82 | EXTRALIBS_FOR_BASE = | |
83 | endif | |
84 | ifeq ($(MONOLITHIC),1) | |
85 | EXTRALIBS_FOR_BASE = | |
86 | endif | |
b17c1746 DE |
87 | ifeq ($(BUILD),debug) |
88 | __OPTIMIZEFLAG_2 = -O0 | |
250700e4 RD |
89 | endif |
90 | ifeq ($(BUILD),release) | |
b17c1746 | 91 | __OPTIMIZEFLAG_2 = -O2 |
25a73439 | 92 | endif |
8c9f8f91 JS |
93 | ifeq ($(USE_RTTI),0) |
94 | __RTTIFLAG_5 = -fno-rtti | |
25a73439 | 95 | endif |
8c9f8f91 JS |
96 | ifeq ($(USE_RTTI),1) |
97 | __RTTIFLAG_5 = | |
25a73439 | 98 | endif |
b17c1746 | 99 | ifeq ($(USE_EXCEPTIONS),0) |
8c9f8f91 | 100 | __EXCEPTIONSFLAG_6 = -fno-exceptions |
b17c1746 DE |
101 | endif |
102 | ifeq ($(USE_EXCEPTIONS),1) | |
8c9f8f91 | 103 | __EXCEPTIONSFLAG_6 = |
b17c1746 DE |
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__ | |
250700e4 RD |
110 | endif |
111 | ifeq ($(BUILD),debug) | |
25a73439 VS |
112 | ifeq ($(DEBUG_FLAG),default) |
113 | __DEBUG_DEFINE_p = -D__WXDEBUG__ | |
114 | endif | |
115 | endif | |
116 | ifeq ($(DEBUG_FLAG),1) | |
3b20263d VS |
117 | __DEBUG_DEFINE_p = -D__WXDEBUG__ |
118 | endif | |
119 | ifeq ($(BUILD),debug) | |
25a73439 VS |
120 | ifeq ($(DEBUG_FLAG),default) |
121 | __DEBUG_DEFINE_p_1 = --define __WXDEBUG__ | |
122 | endif | |
123 | endif | |
124 | ifeq ($(DEBUG_FLAG),1) | |
3b20263d VS |
125 | __DEBUG_DEFINE_p_1 = --define __WXDEBUG__ |
126 | endif | |
8c9f8f91 JS |
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 | |
b17c1746 DE |
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 | |
2113bc77 MW |
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 | |
3b20263d VS |
157 | ifeq ($(SHARED),1) |
158 | __DLLFLAG_p = -DWXUSINGDLL | |
159 | endif | |
160 | ifeq ($(SHARED),1) | |
161 | __DLLFLAG_p_1 = --define WXUSINGDLL | |
162 | endif | |
b17c1746 | 163 | ifeq ($(MONOLITHIC),0) |
f2fdc4d5 WS |
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) | |
b17c1746 | 172 | __WXLIB_CORE_p = \ |
c33fae85 | 173 | -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core |
b71531ad | 174 | endif |
b17c1746 | 175 | ifeq ($(MONOLITHIC),0) |
c33fae85 RN |
176 | __WXLIB_BASE_p = \ |
177 | -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR) | |
b71531ad | 178 | endif |
b17c1746 DE |
179 | ifeq ($(MONOLITHIC),1) |
180 | __WXLIB_MONO_p = \ | |
c33fae85 | 181 | -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR) |
b71531ad | 182 | endif |
b17c1746 | 183 | ifeq ($(USE_GUI),1) |
9c2d002b | 184 | __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG) |
b71531ad | 185 | endif |
25a73439 | 186 | ifeq ($(USE_GUI),1) |
9c2d002b | 187 | __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG) |
25a73439 VS |
188 | endif |
189 | ifeq ($(USE_GUI),1) | |
9c2d002b | 190 | __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG) |
25a73439 | 191 | endif |
b17c1746 DE |
192 | ifeq ($(MSLU),1) |
193 | __UNICOWS_LIB_p = -lunicows | |
250700e4 | 194 | endif |
b17c1746 DE |
195 | ifeq ($(BUILD),debug) |
196 | ifeq ($(DEBUG_INFO),default) | |
197 | __DEBUGINFO = -g | |
4e209a20 | 198 | endif |
3b20263d | 199 | endif |
b17c1746 DE |
200 | ifeq ($(BUILD),release) |
201 | ifeq ($(DEBUG_INFO),default) | |
202 | __DEBUGINFO = | |
3b20263d | 203 | endif |
3b20263d | 204 | endif |
b17c1746 DE |
205 | ifeq ($(DEBUG_INFO),0) |
206 | __DEBUGINFO = | |
3b20263d | 207 | endif |
b17c1746 DE |
208 | ifeq ($(DEBUG_INFO),1) |
209 | __DEBUGINFO = -g | |
3b20263d | 210 | endif |
8c9f8f91 JS |
211 | ifeq ($(USE_THREADS),0) |
212 | __THREADSFLAG = | |
213 | endif | |
214 | ifeq ($(USE_THREADS),1) | |
215 | __THREADSFLAG = -mthreads | |
216 | endif | |
3b20263d VS |
217 | |
218 | ||
219 | all: $(OBJS) | |
220 | $(OBJS): | |
221 | -if not exist $(OBJS) mkdir $(OBJS) | |
222 | ||
223 | ### Targets: ### | |
224 | ||
225 | all: $(OBJS)\widgets.exe | |
226 | ||
b17c1746 DE |
227 | clean: |
228 | -if exist $(OBJS)\*.o del $(OBJS)\*.o | |
0d90d6ea | 229 | -if exist $(OBJS)\*.d del $(OBJS)\*.d |
b17c1746 DE |
230 | -if exist $(OBJS)\widgets.exe del $(OBJS)\widgets.exe |
231 | ||
f2fdc4d5 WS |
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 | |
b17c1746 | 234 | |
1c3a6972 | 235 | $(OBJS)\widgets_button.o: ./button.cpp |
0d90d6ea | 236 | $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $< |
3b20263d | 237 | |
8941fa88 | 238 | $(OBJS)\widgets_checkbox.o: ./checkbox.cpp |
0d90d6ea | 239 | $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $< |
8941fa88 | 240 | |
1c3a6972 | 241 | $(OBJS)\widgets_combobox.o: ./combobox.cpp |
0d90d6ea | 242 | $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $< |
3b20263d | 243 | |
f2fdc4d5 WS |
244 | $(OBJS)\widgets_datepick.o: ./datepick.cpp |
245 | $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $< | |
246 | ||
1c3a6972 | 247 | $(OBJS)\widgets_gauge.o: ./gauge.cpp |
0d90d6ea | 248 | $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $< |
3b20263d | 249 | |
f9300d42 WS |
250 | $(OBJS)\widgets_hyperlnk.o: ./hyperlnk.cpp |
251 | $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $< | |
252 | ||
1c3a6972 | 253 | $(OBJS)\widgets_listbox.o: ./listbox.cpp |
0d90d6ea | 254 | $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $< |
3b20263d | 255 | |
1c3a6972 | 256 | $(OBJS)\widgets_notebook.o: ./notebook.cpp |
0d90d6ea | 257 | $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $< |
3b20263d | 258 | |
1c3a6972 | 259 | $(OBJS)\widgets_radiobox.o: ./radiobox.cpp |
0d90d6ea | 260 | $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $< |
3b20263d | 261 | |
1c3a6972 | 262 | $(OBJS)\widgets_slider.o: ./slider.cpp |
0d90d6ea | 263 | $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $< |
3b20263d | 264 | |
1c3a6972 | 265 | $(OBJS)\widgets_spinbtn.o: ./spinbtn.cpp |
0d90d6ea | 266 | $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $< |
3b20263d | 267 | |
1c3a6972 | 268 | $(OBJS)\widgets_static.o: ./static.cpp |
0d90d6ea | 269 | $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $< |
3b20263d | 270 | |
1c3a6972 | 271 | $(OBJS)\widgets_textctrl.o: ./textctrl.cpp |
0d90d6ea | 272 | $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $< |
3b20263d | 273 | |
32816f9a WS |
274 | $(OBJS)\widgets_toggle.o: ./toggle.cpp |
275 | $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $< | |
276 | ||
1c3a6972 | 277 | $(OBJS)\widgets_widgets.o: ./widgets.cpp |
0d90d6ea | 278 | $(CXX) -c -o $@ $(WIDGETS_CXXFLAGS) $(CPPDEPS) $< |
3b20263d | 279 | |
f2fdc4d5 | 280 | $(OBJS)\widgets_sample_rc.o: ./../sample.rc |
77a7dfc1 | 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 |
3b20263d | 282 | |
250700e4 | 283 | .PHONY: all clean |
b14abf14 | 284 | |
8c9f8f91 | 285 | |
0d90d6ea JS |
286 | # Dependencies tracking: |
287 | -include $(OBJS)/*.d |