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