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