]>
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 | ||
4818141b | 15 | WX_RELEASE_NODOT = 26 |
b17c1746 DE |
16 | OBJS = \ |
17 | gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) | |
b14abf14 | 18 | LIBDIRNAME = ..\..\src\animate\..\..\..\lib\gcc_$(LIBTYPE_SUFFIX)$(CFG) |
b17c1746 DE |
19 | SETUPHDIR = \ |
20 | $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG) | |
8c9f8f91 JS |
21 | ANIMATEDLL_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\animate\..\..\..\include -I$(SETUPHDIR) -W -Wall \ | |
26 | -I..\..\src\animate\..\..\include -DWXUSINGDLL -DWXMAKINGDLL_ANIMATE \ | |
27 | $(__RTTIFLAG) $(__EXCEPTIONSFLAG) -Wno-ctor-dtor-privacy $(CPPFLAGS) \ | |
28 | $(CXXFLAGS) | |
3f55f5b8 VS |
29 | ANIMATEDLL_OBJECTS = \ |
30 | $(OBJS)\animatedll_dummy.o \ | |
8c9f8f91 | 31 | $(OBJS)\animatedll_version_rc.o \ |
3f55f5b8 | 32 | $(OBJS)\animatedll_animate.o |
8c9f8f91 JS |
33 | ANIMATELIB_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) \ |
34 | $(GCCFLAGS) -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) \ | |
35 | $(__DEBUG_DEFINE_p) $(__EXCEPTIONS_DEFINE_p) $(__RTTI_DEFINE_p) \ | |
36 | $(__THREAD_DEFINE_p) $(__UNICODE_DEFINE_p) \ | |
37 | -I..\..\src\animate\..\..\..\include -I$(SETUPHDIR) -W -Wall \ | |
38 | -I..\..\src\animate\..\..\include $(__RTTIFLAG) $(__EXCEPTIONSFLAG) \ | |
39 | -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS) | |
3f55f5b8 VS |
40 | ANIMATELIB_OBJECTS = \ |
41 | $(OBJS)\animatelib_dummy.o \ | |
42 | $(OBJS)\animatelib_animate.o | |
250700e4 RD |
43 | |
44 | ### Conditionally set variables: ### | |
45 | ||
46 | ifeq ($(GCC_VERSION),2.95) | |
47 | GCCFLAGS = -fvtable-thunks | |
48 | endif | |
49 | ifeq ($(USE_GUI),0) | |
50 | PORTNAME = base | |
51 | endif | |
52 | ifeq ($(USE_GUI),1) | |
53 | PORTNAME = msw | |
54 | endif | |
55 | ifeq ($(OFFICIAL_BUILD),0) | |
56 | VENDORTAG = _$(VENDOR) | |
57 | endif | |
58 | ifeq ($(OFFICIAL_BUILD),1) | |
59 | VENDORTAG = | |
60 | endif | |
61 | ifeq ($(BUILD),debug) | |
3f55f5b8 VS |
62 | ifeq ($(DEBUG_FLAG),default) |
63 | WXDEBUGFLAG = d | |
64 | endif | |
65 | endif | |
66 | ifeq ($(DEBUG_FLAG),1) | |
250700e4 RD |
67 | WXDEBUGFLAG = d |
68 | endif | |
250700e4 RD |
69 | ifeq ($(UNICODE),1) |
70 | WXUNICODEFLAG = u | |
71 | endif | |
72 | ifeq ($(WXUNIV),1) | |
73 | WXUNIVNAME = univ | |
74 | endif | |
b17c1746 DE |
75 | ifeq ($(SHARED),1) |
76 | WXDLLFLAG = dll | |
77 | endif | |
b14abf14 JS |
78 | ifeq ($(SHARED),0) |
79 | LIBTYPE_SUFFIX = lib | |
80 | endif | |
81 | ifeq ($(SHARED),1) | |
82 | LIBTYPE_SUFFIX = dll | |
83 | endif | |
dd65d8c8 RN |
84 | ifeq ($(MONOLITHIC),0) |
85 | EXTRALIBS_FOR_BASE = | |
86 | endif | |
87 | ifeq ($(MONOLITHIC),1) | |
88 | EXTRALIBS_FOR_BASE = | |
89 | endif | |
b17c1746 DE |
90 | ifeq ($(SHARED),1) |
91 | __animatedll___depname = \ | |
4818141b | 92 | $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_animate_gcc$(VENDORTAG).dll |
b17c1746 | 93 | endif |
8c9f8f91 JS |
94 | ifeq ($(WXUNIV),1) |
95 | __WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__ | |
96 | endif | |
97 | ifeq ($(BUILD),debug) | |
98 | ifeq ($(DEBUG_FLAG),default) | |
99 | __DEBUG_DEFINE_p_1 = --define __WXDEBUG__ | |
100 | endif | |
101 | endif | |
102 | ifeq ($(DEBUG_FLAG),1) | |
103 | __DEBUG_DEFINE_p_1 = --define __WXDEBUG__ | |
104 | endif | |
105 | ifeq ($(USE_EXCEPTIONS),0) | |
106 | __EXCEPTIONS_DEFINE_p_1 = --define wxNO_EXCEPTIONS | |
107 | endif | |
108 | ifeq ($(USE_RTTI),0) | |
109 | __RTTI_DEFINE_p_1 = --define wxNO_RTTI | |
110 | endif | |
111 | ifeq ($(USE_THREADS),0) | |
112 | __THREAD_DEFINE_p_1 = --define wxNO_THREADS | |
113 | endif | |
114 | ifeq ($(UNICODE),1) | |
115 | __UNICODE_DEFINE_p_1 = --define _UNICODE | |
116 | endif | |
b17c1746 DE |
117 | ifeq ($(MONOLITHIC),1) |
118 | __WXLIB_MONO_p = \ | |
c33fae85 | 119 | -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR) |
b17c1746 DE |
120 | endif |
121 | ifeq ($(USE_GUI),1) | |
9c2d002b | 122 | __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG) |
b17c1746 DE |
123 | endif |
124 | ifeq ($(USE_GUI),1) | |
9c2d002b | 125 | __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG) |
b17c1746 DE |
126 | endif |
127 | ifeq ($(USE_GUI),1) | |
9c2d002b | 128 | __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG) |
b17c1746 DE |
129 | endif |
130 | ifeq ($(MSLU),1) | |
131 | __UNICOWS_LIB_p = -lunicows | |
132 | endif | |
133 | ifeq ($(MONOLITHIC),0) | |
134 | __WXLIB_CORE_p = \ | |
c33fae85 | 135 | -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core |
b17c1746 DE |
136 | endif |
137 | ifeq ($(MONOLITHIC),0) | |
c33fae85 RN |
138 | __WXLIB_BASE_p = \ |
139 | -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR) | |
b17c1746 DE |
140 | endif |
141 | ifeq ($(SHARED),0) | |
142 | __animatelib___depname = \ | |
c33fae85 | 143 | $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_animate.a |
b17c1746 | 144 | endif |
250700e4 | 145 | ifeq ($(BUILD),debug) |
3f55f5b8 VS |
146 | ifeq ($(DEBUG_INFO),default) |
147 | __DEBUGINFO = -g | |
148 | endif | |
250700e4 RD |
149 | endif |
150 | ifeq ($(BUILD),release) | |
3f55f5b8 VS |
151 | ifeq ($(DEBUG_INFO),default) |
152 | __DEBUGINFO = | |
153 | endif | |
154 | endif | |
155 | ifeq ($(DEBUG_INFO),0) | |
156 | __DEBUGINFO = | |
157 | endif | |
158 | ifeq ($(DEBUG_INFO),1) | |
159 | __DEBUGINFO = -g | |
250700e4 RD |
160 | endif |
161 | ifeq ($(BUILD),debug) | |
b17c1746 | 162 | __OPTIMIZEFLAG = -O0 |
3f55f5b8 | 163 | endif |
b17c1746 DE |
164 | ifeq ($(BUILD),release) |
165 | __OPTIMIZEFLAG = -O2 | |
250700e4 | 166 | endif |
8c9f8f91 JS |
167 | ifeq ($(USE_THREADS),0) |
168 | __THREADSFLAG = | |
a4ad36cd | 169 | endif |
8c9f8f91 JS |
170 | ifeq ($(USE_THREADS),1) |
171 | __THREADSFLAG = -mthreads | |
172 | endif | |
173 | ifeq ($(USE_RTTI),0) | |
174 | __RTTIFLAG = -fno-rtti | |
175 | endif | |
176 | ifeq ($(USE_RTTI),1) | |
177 | __RTTIFLAG = | |
a4ad36cd VS |
178 | endif |
179 | ifeq ($(USE_EXCEPTIONS),0) | |
8c9f8f91 | 180 | __EXCEPTIONSFLAG = -fno-exceptions |
a4ad36cd VS |
181 | endif |
182 | ifeq ($(USE_EXCEPTIONS),1) | |
8c9f8f91 | 183 | __EXCEPTIONSFLAG = |
a4ad36cd | 184 | endif |
b17c1746 DE |
185 | ifeq ($(WXUNIV),1) |
186 | __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__ | |
3f55f5b8 | 187 | endif |
250700e4 | 188 | ifeq ($(BUILD),debug) |
b17c1746 DE |
189 | ifeq ($(DEBUG_FLAG),default) |
190 | __DEBUG_DEFINE_p = -D__WXDEBUG__ | |
250700e4 | 191 | endif |
b17c1746 DE |
192 | endif |
193 | ifeq ($(DEBUG_FLAG),1) | |
194 | __DEBUG_DEFINE_p = -D__WXDEBUG__ | |
250700e4 | 195 | endif |
8c9f8f91 JS |
196 | ifeq ($(USE_EXCEPTIONS),0) |
197 | __EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS | |
198 | endif | |
199 | ifeq ($(USE_RTTI),0) | |
200 | __RTTI_DEFINE_p = -DwxNO_RTTI | |
201 | endif | |
202 | ifeq ($(USE_THREADS),0) | |
203 | __THREAD_DEFINE_p = -DwxNO_THREADS | |
204 | endif | |
250700e4 | 205 | ifeq ($(UNICODE),1) |
ec08d395 | 206 | __UNICODE_DEFINE_p = -D_UNICODE |
250700e4 | 207 | endif |
250700e4 RD |
208 | |
209 | ||
210 | all: $(OBJS) | |
211 | $(OBJS): | |
212 | -if not exist $(OBJS) mkdir $(OBJS) | |
213 | ||
214 | ### Targets: ### | |
215 | ||
216 | all: $(__animatedll___depname) $(__animatelib___depname) | |
217 | ||
b17c1746 DE |
218 | clean: |
219 | -if exist $(OBJS)\*.o del $(OBJS)\*.o | |
4818141b | 220 | -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_animate_gcc$(VENDORTAG).dll del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_animate_gcc$(VENDORTAG).dll |
c33fae85 RN |
221 | -if exist $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_animate.a del $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_animate.a |
222 | -if exist $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_animate.a del $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_animate.a | |
250700e4 RD |
223 | |
224 | ifeq ($(SHARED),1) | |
4818141b | 225 | $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_animate_gcc$(VENDORTAG).dll: $(ANIMATEDLL_OBJECTS) $(OBJS)\animatedll_version_rc.o |
8c9f8f91 | 226 | $(CXX) -shared -fPIC -o $@ $(ANIMATEDLL_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) $(__THREADSFLAG) -L$(LIBDIRNAME) -Wl,--out-implib,$(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_animate.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) |
250700e4 RD |
227 | endif |
228 | ||
229 | ifeq ($(SHARED),0) | |
c33fae85 | 230 | $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_animate.a: $(ANIMATELIB_OBJECTS) |
250700e4 | 231 | if exist $@ del $@ |
3f55f5b8 | 232 | ar rcu $@ $(ANIMATELIB_OBJECTS) |
250700e4 RD |
233 | ranlib $@ |
234 | endif | |
235 | ||
b17c1746 DE |
236 | $(OBJS)\animatedll_dummy.o: ../../src/animate/../../../src/msw/dummy.cpp |
237 | $(CXX) -c -o $@ $(ANIMATEDLL_CXXFLAGS) $< | |
238 | ||
102d46f3 | 239 | $(OBJS)\animatedll_version_rc.o: ../../src/animate/../../../src/msw/version.rc |
4818141b | 240 | 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/animate/../../../include --include-dir $(SETUPHDIR) --define WXDLLNAME=wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_animate_gcc$(VENDORTAG) |
8c9f8f91 | 241 | |
b17c1746 DE |
242 | $(OBJS)\animatedll_animate.o: ../../src/animate/animate.cpp |
243 | $(CXX) -c -o $@ $(ANIMATEDLL_CXXFLAGS) $< | |
244 | ||
245 | $(OBJS)\animatelib_dummy.o: ../../src/animate/../../../src/msw/dummy.cpp | |
246 | $(CXX) -c -o $@ $(ANIMATELIB_CXXFLAGS) $< | |
247 | ||
248 | $(OBJS)\animatelib_animate.o: ../../src/animate/animate.cpp | |
249 | $(CXX) -c -o $@ $(ANIMATELIB_CXXFLAGS) $< | |
250700e4 RD |
250 | |
251 | .PHONY: all clean | |
b14abf14 | 252 | |
8c9f8f91 | 253 |