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