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