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