]>
Commit | Line | Data |
---|---|---|
250700e4 RD |
1 | # ========================================================================= |
2 | # This makefile was generated by | |
8c9f8f91 | 3 | # Bakefile 0.1.8 (http://bakefile.sourceforge.net) |
250700e4 RD |
4 | # Do not modify, all changes will be overwritten! |
5 | # ========================================================================= | |
6 | ||
fd9f42b6 | 7 | include ../../../build/msw/config.gcc |
250700e4 RD |
8 | |
9 | # ------------------------------------------------------------------------- | |
10 | # Do not modify the rest of this file! | |
11 | # ------------------------------------------------------------------------- | |
12 | ||
13 | ### Variables: ### | |
14 | ||
c33fae85 | 15 | WX_RELEASE_NODOT = 25 |
8c9f8f91 | 16 | WX_VERSION_NODOT = $(WX_RELEASE_NODOT)5 |
b17c1746 DE |
17 | OBJS = \ |
18 | gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) | |
b14abf14 | 19 | LIBDIRNAME = ..\..\src\gizmos\..\..\..\lib\gcc_$(LIBTYPE_SUFFIX)$(CFG) |
b17c1746 DE |
20 | SETUPHDIR = \ |
21 | $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG) | |
8c9f8f91 JS |
22 | GIZMOSDLL_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) \ |
23 | $(GCCFLAGS) -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) \ | |
24 | $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \ | |
25 | $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) \ | |
26 | -I..\..\src\gizmos\..\..\..\include -I$(SETUPHDIR) -W -Wall \ | |
27 | -I..\..\src\gizmos\..\..\include -DWXUSINGDLL -DWXMAKINGDLL_GIZMOS \ | |
28 | $(__RTTIFLAG) $(__EXCEPTIONSFLAG) -Wno-ctor-dtor-privacy $(CPPFLAGS) \ | |
29 | $(CXXFLAGS) | |
3f55f5b8 VS |
30 | GIZMOSDLL_OBJECTS = \ |
31 | $(OBJS)\gizmosdll_dummy.o \ | |
8c9f8f91 | 32 | $(OBJS)\gizmosdll_version_rc.o \ |
3f55f5b8 VS |
33 | $(OBJS)\gizmosdll_dynamicsash.o \ |
34 | $(OBJS)\gizmosdll_editlbox.o \ | |
35 | $(OBJS)\gizmosdll_ledctrl.o \ | |
36 | $(OBJS)\gizmosdll_multicell.o \ | |
37 | $(OBJS)\gizmosdll_splittree.o \ | |
92c45b12 JS |
38 | $(OBJS)\gizmosdll_statpict.o \ |
39 | $(OBJS)\gizmosdll_xh_statpict.o | |
8c9f8f91 JS |
40 | GIZMOSLIB_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) \ |
41 | $(GCCFLAGS) -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) \ | |
42 | $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \ | |
43 | $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) \ | |
44 | -I..\..\src\gizmos\..\..\..\include -I$(SETUPHDIR) -W -Wall \ | |
45 | -I..\..\src\gizmos\..\..\include $(__RTTIFLAG) $(__EXCEPTIONSFLAG) \ | |
46 | -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS) | |
3f55f5b8 VS |
47 | GIZMOSLIB_OBJECTS = \ |
48 | $(OBJS)\gizmoslib_dummy.o \ | |
49 | $(OBJS)\gizmoslib_dynamicsash.o \ | |
50 | $(OBJS)\gizmoslib_editlbox.o \ | |
51 | $(OBJS)\gizmoslib_ledctrl.o \ | |
52 | $(OBJS)\gizmoslib_multicell.o \ | |
53 | $(OBJS)\gizmoslib_splittree.o \ | |
92c45b12 JS |
54 | $(OBJS)\gizmoslib_statpict.o \ |
55 | $(OBJS)\gizmoslib_xh_statpict.o | |
250700e4 RD |
56 | |
57 | ### Conditionally set variables: ### | |
58 | ||
59 | ifeq ($(GCC_VERSION),2.95) | |
60 | GCCFLAGS = -fvtable-thunks | |
61 | endif | |
62 | ifeq ($(USE_GUI),0) | |
63 | PORTNAME = base | |
64 | endif | |
65 | ifeq ($(USE_GUI),1) | |
66 | PORTNAME = msw | |
67 | endif | |
68 | ifeq ($(OFFICIAL_BUILD),0) | |
69 | VENDORTAG = _$(VENDOR) | |
70 | endif | |
71 | ifeq ($(OFFICIAL_BUILD),1) | |
72 | VENDORTAG = | |
73 | endif | |
74 | ifeq ($(BUILD),debug) | |
3f55f5b8 VS |
75 | ifeq ($(DEBUG_FLAG),default) |
76 | WXDEBUGFLAG = d | |
77 | endif | |
78 | endif | |
79 | ifeq ($(DEBUG_FLAG),1) | |
250700e4 RD |
80 | WXDEBUGFLAG = d |
81 | endif | |
250700e4 RD |
82 | ifeq ($(UNICODE),1) |
83 | WXUNICODEFLAG = u | |
84 | endif | |
85 | ifeq ($(WXUNIV),1) | |
86 | WXUNIVNAME = univ | |
87 | endif | |
b17c1746 DE |
88 | ifeq ($(SHARED),1) |
89 | WXDLLFLAG = dll | |
90 | endif | |
b14abf14 JS |
91 | ifeq ($(SHARED),0) |
92 | LIBTYPE_SUFFIX = lib | |
93 | endif | |
94 | ifeq ($(SHARED),1) | |
95 | LIBTYPE_SUFFIX = dll | |
96 | endif | |
dd65d8c8 RN |
97 | ifeq ($(MONOLITHIC),0) |
98 | EXTRALIBS_FOR_BASE = | |
99 | endif | |
100 | ifeq ($(MONOLITHIC),1) | |
101 | EXTRALIBS_FOR_BASE = | |
102 | endif | |
b17c1746 DE |
103 | ifeq ($(SHARED),1) |
104 | __gizmosdll___depname = \ | |
c33fae85 | 105 | $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_gizmos_gcc$(VENDORTAG).dll |
b17c1746 | 106 | endif |
8c9f8f91 JS |
107 | ifeq ($(WXUNIV),1) |
108 | __WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__ | |
109 | endif | |
110 | ifeq ($(BUILD),debug) | |
111 | ifeq ($(DEBUG_FLAG),default) | |
112 | __DEBUG_DEFINE_p_1 = --define __WXDEBUG__ | |
113 | endif | |
114 | endif | |
115 | ifeq ($(DEBUG_FLAG),1) | |
116 | __DEBUG_DEFINE_p_1 = --define __WXDEBUG__ | |
117 | endif | |
118 | ifeq ($(USE_EXCEPTIONS),0) | |
119 | __EXCEPTIONS_DEFINE_p_1 = --define wxNO_EXCEPTIONS | |
120 | endif | |
121 | ifeq ($(USE_RTTI),0) | |
122 | __RTTI_DEFINE_p_1 = --define wxNO_RTTI | |
123 | endif | |
124 | ifeq ($(USE_THREADS),0) | |
125 | __THREAD_DEFINE_p_1 = --define wxNO_THREADS | |
126 | endif | |
127 | ifeq ($(UNICODE),1) | |
128 | __UNICODE_DEFINE_p_1 = --define _UNICODE | |
129 | endif | |
b17c1746 DE |
130 | ifeq ($(MONOLITHIC),1) |
131 | __WXLIB_MONO_p = \ | |
c33fae85 | 132 | -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR) |
b17c1746 DE |
133 | endif |
134 | ifeq ($(USE_GUI),1) | |
9c2d002b | 135 | __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG) |
b17c1746 DE |
136 | endif |
137 | ifeq ($(USE_GUI),1) | |
9c2d002b | 138 | __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG) |
b17c1746 DE |
139 | endif |
140 | ifeq ($(USE_GUI),1) | |
9c2d002b | 141 | __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG) |
b17c1746 DE |
142 | endif |
143 | ifeq ($(MSLU),1) | |
144 | __UNICOWS_LIB_p = -lunicows | |
145 | endif | |
146 | ifeq ($(MONOLITHIC),0) | |
c33fae85 RN |
147 | __WXLIB_BASE_p = \ |
148 | -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR) | |
b17c1746 DE |
149 | endif |
150 | ifeq ($(MONOLITHIC),0) | |
151 | __WXLIB_CORE_p = \ | |
c33fae85 | 152 | -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core |
b17c1746 DE |
153 | endif |
154 | ifeq ($(SHARED),0) | |
155 | __gizmoslib___depname = \ | |
c33fae85 | 156 | $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_gizmos.a |
b17c1746 | 157 | endif |
250700e4 | 158 | ifeq ($(BUILD),debug) |
3f55f5b8 VS |
159 | ifeq ($(DEBUG_INFO),default) |
160 | __DEBUGINFO = -g | |
161 | endif | |
250700e4 RD |
162 | endif |
163 | ifeq ($(BUILD),release) | |
3f55f5b8 VS |
164 | ifeq ($(DEBUG_INFO),default) |
165 | __DEBUGINFO = | |
166 | endif | |
167 | endif | |
168 | ifeq ($(DEBUG_INFO),0) | |
169 | __DEBUGINFO = | |
170 | endif | |
171 | ifeq ($(DEBUG_INFO),1) | |
172 | __DEBUGINFO = -g | |
250700e4 RD |
173 | endif |
174 | ifeq ($(BUILD),debug) | |
b17c1746 | 175 | __OPTIMIZEFLAG = -O0 |
3f55f5b8 | 176 | endif |
b17c1746 DE |
177 | ifeq ($(BUILD),release) |
178 | __OPTIMIZEFLAG = -O2 | |
250700e4 | 179 | endif |
8c9f8f91 JS |
180 | ifeq ($(USE_THREADS),0) |
181 | __THREADSFLAG = | |
a4ad36cd | 182 | endif |
8c9f8f91 JS |
183 | ifeq ($(USE_THREADS),1) |
184 | __THREADSFLAG = -mthreads | |
185 | endif | |
186 | ifeq ($(USE_RTTI),0) | |
187 | __RTTIFLAG = -fno-rtti | |
188 | endif | |
189 | ifeq ($(USE_RTTI),1) | |
190 | __RTTIFLAG = | |
a4ad36cd VS |
191 | endif |
192 | ifeq ($(USE_EXCEPTIONS),0) | |
8c9f8f91 | 193 | __EXCEPTIONSFLAG = -fno-exceptions |
a4ad36cd VS |
194 | endif |
195 | ifeq ($(USE_EXCEPTIONS),1) | |
8c9f8f91 | 196 | __EXCEPTIONSFLAG = |
a4ad36cd | 197 | endif |
b17c1746 DE |
198 | ifeq ($(WXUNIV),1) |
199 | __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__ | |
3f55f5b8 | 200 | endif |
250700e4 | 201 | ifeq ($(BUILD),debug) |
b17c1746 DE |
202 | ifeq ($(DEBUG_FLAG),default) |
203 | __DEBUG_DEFINE_p = -D__WXDEBUG__ | |
250700e4 | 204 | endif |
b17c1746 DE |
205 | endif |
206 | ifeq ($(DEBUG_FLAG),1) | |
207 | __DEBUG_DEFINE_p = -D__WXDEBUG__ | |
250700e4 | 208 | endif |
8c9f8f91 JS |
209 | ifeq ($(USE_EXCEPTIONS),0) |
210 | __EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS | |
211 | endif | |
212 | ifeq ($(USE_RTTI),0) | |
213 | __RTTI_DEFINE_p = -DwxNO_RTTI | |
214 | endif | |
215 | ifeq ($(USE_THREADS),0) | |
216 | __THREAD_DEFINE_p = -DwxNO_THREADS | |
217 | endif | |
250700e4 | 218 | ifeq ($(UNICODE),1) |
ec08d395 | 219 | __UNICODE_DEFINE_p = -D_UNICODE |
250700e4 | 220 | endif |
250700e4 RD |
221 | |
222 | ||
223 | all: $(OBJS) | |
224 | $(OBJS): | |
225 | -if not exist $(OBJS) mkdir $(OBJS) | |
226 | ||
227 | ### Targets: ### | |
228 | ||
229 | all: $(__gizmosdll___depname) $(__gizmoslib___depname) | |
230 | ||
b17c1746 DE |
231 | clean: |
232 | -if exist $(OBJS)\*.o del $(OBJS)\*.o | |
c33fae85 RN |
233 | -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_gizmos_gcc$(VENDORTAG).dll del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_gizmos_gcc$(VENDORTAG).dll |
234 | -if exist $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_gizmos.a del $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_gizmos.a | |
235 | -if exist $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_gizmos.a del $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_gizmos.a | |
b17c1746 DE |
236 | |
237 | ifeq ($(SHARED),1) | |
8c9f8f91 JS |
238 | $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_gizmos_gcc$(VENDORTAG).dll: $(GIZMOSDLL_OBJECTS) $(OBJS)\gizmosdll_version_rc.o |
239 | $(CXX) -shared -fPIC -o $@ $(GIZMOSDLL_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) $(__THREADSFLAG) -L$(LIBDIRNAME) -Wl,--out-implib,$(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_gizmos.a $(__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 $(__WXLIB_BASE_p) $(__WXLIB_CORE_p) | |
b17c1746 DE |
240 | endif |
241 | ||
242 | ifeq ($(SHARED),0) | |
c33fae85 | 243 | $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_gizmos.a: $(GIZMOSLIB_OBJECTS) |
b17c1746 DE |
244 | if exist $@ del $@ |
245 | ar rcu $@ $(GIZMOSLIB_OBJECTS) | |
246 | ranlib $@ | |
247 | endif | |
248 | ||
1c3a6972 | 249 | $(OBJS)\gizmosdll_dummy.o: ../../src/gizmos/../../../src/msw/dummy.cpp |
250700e4 RD |
250 | $(CXX) -c -o $@ $(GIZMOSDLL_CXXFLAGS) $< |
251 | ||
102d46f3 | 252 | $(OBJS)\gizmosdll_version_rc.o: ../../src/gizmos/../../../src/msw/version.rc |
8c9f8f91 JS |
253 | 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) --include-dir ../../src/gizmos/../../../include --include-dir $(SETUPHDIR) --define WXDLLNAME=wx$(PORTNAME)$(WXUNIVNAME)$(WX_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_gizmos_gcc$(VENDORTAG) |
254 | ||
1c3a6972 | 255 | $(OBJS)\gizmosdll_dynamicsash.o: ../../src/gizmos/dynamicsash.cpp |
250700e4 RD |
256 | $(CXX) -c -o $@ $(GIZMOSDLL_CXXFLAGS) $< |
257 | ||
1c3a6972 | 258 | $(OBJS)\gizmosdll_editlbox.o: ../../src/gizmos/editlbox.cpp |
250700e4 RD |
259 | $(CXX) -c -o $@ $(GIZMOSDLL_CXXFLAGS) $< |
260 | ||
1c3a6972 | 261 | $(OBJS)\gizmosdll_ledctrl.o: ../../src/gizmos/ledctrl.cpp |
250700e4 RD |
262 | $(CXX) -c -o $@ $(GIZMOSDLL_CXXFLAGS) $< |
263 | ||
1c3a6972 | 264 | $(OBJS)\gizmosdll_multicell.o: ../../src/gizmos/multicell.cpp |
250700e4 RD |
265 | $(CXX) -c -o $@ $(GIZMOSDLL_CXXFLAGS) $< |
266 | ||
1c3a6972 | 267 | $(OBJS)\gizmosdll_splittree.o: ../../src/gizmos/splittree.cpp |
250700e4 RD |
268 | $(CXX) -c -o $@ $(GIZMOSDLL_CXXFLAGS) $< |
269 | ||
1c3a6972 | 270 | $(OBJS)\gizmosdll_statpict.o: ../../src/gizmos/statpict.cpp |
250700e4 RD |
271 | $(CXX) -c -o $@ $(GIZMOSDLL_CXXFLAGS) $< |
272 | ||
92c45b12 JS |
273 | $(OBJS)\gizmosdll_xh_statpict.o: ../../src/gizmos/xh_statpict.cpp |
274 | $(CXX) -c -o $@ $(GIZMOSDLL_CXXFLAGS) $< | |
275 | ||
1c3a6972 | 276 | $(OBJS)\gizmoslib_dummy.o: ../../src/gizmos/../../../src/msw/dummy.cpp |
250700e4 RD |
277 | $(CXX) -c -o $@ $(GIZMOSLIB_CXXFLAGS) $< |
278 | ||
1c3a6972 | 279 | $(OBJS)\gizmoslib_dynamicsash.o: ../../src/gizmos/dynamicsash.cpp |
250700e4 RD |
280 | $(CXX) -c -o $@ $(GIZMOSLIB_CXXFLAGS) $< |
281 | ||
1c3a6972 | 282 | $(OBJS)\gizmoslib_editlbox.o: ../../src/gizmos/editlbox.cpp |
250700e4 RD |
283 | $(CXX) -c -o $@ $(GIZMOSLIB_CXXFLAGS) $< |
284 | ||
1c3a6972 | 285 | $(OBJS)\gizmoslib_ledctrl.o: ../../src/gizmos/ledctrl.cpp |
250700e4 RD |
286 | $(CXX) -c -o $@ $(GIZMOSLIB_CXXFLAGS) $< |
287 | ||
1c3a6972 | 288 | $(OBJS)\gizmoslib_multicell.o: ../../src/gizmos/multicell.cpp |
250700e4 RD |
289 | $(CXX) -c -o $@ $(GIZMOSLIB_CXXFLAGS) $< |
290 | ||
1c3a6972 | 291 | $(OBJS)\gizmoslib_splittree.o: ../../src/gizmos/splittree.cpp |
250700e4 RD |
292 | $(CXX) -c -o $@ $(GIZMOSLIB_CXXFLAGS) $< |
293 | ||
1c3a6972 | 294 | $(OBJS)\gizmoslib_statpict.o: ../../src/gizmos/statpict.cpp |
250700e4 RD |
295 | $(CXX) -c -o $@ $(GIZMOSLIB_CXXFLAGS) $< |
296 | ||
92c45b12 JS |
297 | $(OBJS)\gizmoslib_xh_statpict.o: ../../src/gizmos/xh_statpict.cpp |
298 | $(CXX) -c -o $@ $(GIZMOSLIB_CXXFLAGS) $< | |
299 | ||
250700e4 | 300 | .PHONY: all clean |
b14abf14 | 301 | |
8c9f8f91 | 302 |