]>
Commit | Line | Data |
---|---|---|
250700e4 RD |
1 | # ========================================================================= |
2 | # This makefile was generated by | |
b14abf14 | 3 | # Bakefile 0.1.6 (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 |
b14abf14 | 16 | WX_VERSION_NODOT = $(WX_RELEASE_NODOT)4 |
b17c1746 DE |
17 | OBJS = \ |
18 | gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) | |
b14abf14 | 19 | LIBDIRNAME = ..\..\src\animate\..\..\..\lib\gcc_$(LIBTYPE_SUFFIX)$(CFG) |
b17c1746 DE |
20 | SETUPHDIR = \ |
21 | $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG) | |
9bfe7ad9 | 22 | ANIMATEDLL_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) \ |
3f55f5b8 | 23 | -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \ |
75a0a7b7 | 24 | $(__UNICODE_DEFINE_p) -I..\..\src\animate\..\..\..\include -I$(SETUPHDIR) \ |
b14abf14 JS |
25 | -W -Wall -I..\..\src\animate\..\..\include -DWXUSINGDLL \ |
26 | -DWXMAKINGDLL_ANIMATE $(__EXCEPTIONSFLAG) $(__EXCEPTIONSFLAG_0) \ | |
27 | -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS) | |
3f55f5b8 VS |
28 | ANIMATEDLL_OBJECTS = \ |
29 | $(OBJS)\animatedll_dummy.o \ | |
30 | $(OBJS)\animatedll_animate.o | |
9bfe7ad9 | 31 | ANIMATELIB_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) \ |
3f55f5b8 | 32 | -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \ |
75a0a7b7 | 33 | $(__UNICODE_DEFINE_p) -I..\..\src\animate\..\..\..\include -I$(SETUPHDIR) \ |
b14abf14 JS |
34 | -W -Wall -I..\..\src\animate\..\..\include $(__EXCEPTIONSFLAG) \ |
35 | $(__EXCEPTIONSFLAG_0) -Wno-ctor-dtor-privacy $(CPPFLAGS) $(CXXFLAGS) | |
3f55f5b8 VS |
36 | ANIMATELIB_OBJECTS = \ |
37 | $(OBJS)\animatelib_dummy.o \ | |
38 | $(OBJS)\animatelib_animate.o | |
250700e4 RD |
39 | |
40 | ### Conditionally set variables: ### | |
41 | ||
42 | ifeq ($(GCC_VERSION),2.95) | |
43 | GCCFLAGS = -fvtable-thunks | |
44 | endif | |
45 | ifeq ($(USE_GUI),0) | |
46 | PORTNAME = base | |
47 | endif | |
48 | ifeq ($(USE_GUI),1) | |
49 | PORTNAME = msw | |
50 | endif | |
51 | ifeq ($(OFFICIAL_BUILD),0) | |
52 | VENDORTAG = _$(VENDOR) | |
53 | endif | |
54 | ifeq ($(OFFICIAL_BUILD),1) | |
55 | VENDORTAG = | |
56 | endif | |
57 | ifeq ($(BUILD),debug) | |
3f55f5b8 VS |
58 | ifeq ($(DEBUG_FLAG),default) |
59 | WXDEBUGFLAG = d | |
60 | endif | |
61 | endif | |
62 | ifeq ($(DEBUG_FLAG),1) | |
250700e4 RD |
63 | WXDEBUGFLAG = d |
64 | endif | |
250700e4 RD |
65 | ifeq ($(UNICODE),1) |
66 | WXUNICODEFLAG = u | |
67 | endif | |
68 | ifeq ($(WXUNIV),1) | |
69 | WXUNIVNAME = univ | |
70 | endif | |
b17c1746 DE |
71 | ifeq ($(SHARED),1) |
72 | WXDLLFLAG = dll | |
73 | endif | |
b14abf14 JS |
74 | ifeq ($(SHARED),0) |
75 | LIBTYPE_SUFFIX = lib | |
76 | endif | |
77 | ifeq ($(SHARED),1) | |
78 | LIBTYPE_SUFFIX = dll | |
79 | endif | |
dd65d8c8 RN |
80 | ifeq ($(MONOLITHIC),0) |
81 | EXTRALIBS_FOR_BASE = | |
82 | endif | |
83 | ifeq ($(MONOLITHIC),1) | |
84 | EXTRALIBS_FOR_BASE = | |
85 | endif | |
b17c1746 DE |
86 | ifeq ($(SHARED),1) |
87 | __animatedll___depname = \ | |
c33fae85 | 88 | $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_animate_gcc$(VENDORTAG).dll |
b17c1746 DE |
89 | endif |
90 | ifeq ($(MONOLITHIC),1) | |
91 | __WXLIB_MONO_p = \ | |
c33fae85 | 92 | -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR) |
b17c1746 DE |
93 | endif |
94 | ifeq ($(USE_GUI),1) | |
9c2d002b | 95 | __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG) |
b17c1746 DE |
96 | endif |
97 | ifeq ($(USE_GUI),1) | |
9c2d002b | 98 | __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG) |
b17c1746 DE |
99 | endif |
100 | ifeq ($(USE_GUI),1) | |
9c2d002b | 101 | __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG) |
b17c1746 DE |
102 | endif |
103 | ifeq ($(MSLU),1) | |
104 | __UNICOWS_LIB_p = -lunicows | |
105 | endif | |
106 | ifeq ($(MONOLITHIC),0) | |
107 | __WXLIB_CORE_p = \ | |
c33fae85 | 108 | -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core |
b17c1746 DE |
109 | endif |
110 | ifeq ($(MONOLITHIC),0) | |
c33fae85 RN |
111 | __WXLIB_BASE_p = \ |
112 | -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR) | |
b17c1746 DE |
113 | endif |
114 | ifeq ($(SHARED),0) | |
115 | __animatelib___depname = \ | |
c33fae85 | 116 | $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_animate.a |
b17c1746 | 117 | endif |
250700e4 | 118 | ifeq ($(BUILD),debug) |
3f55f5b8 VS |
119 | ifeq ($(DEBUG_INFO),default) |
120 | __DEBUGINFO = -g | |
121 | endif | |
250700e4 RD |
122 | endif |
123 | ifeq ($(BUILD),release) | |
3f55f5b8 VS |
124 | ifeq ($(DEBUG_INFO),default) |
125 | __DEBUGINFO = | |
126 | endif | |
127 | endif | |
128 | ifeq ($(DEBUG_INFO),0) | |
129 | __DEBUGINFO = | |
130 | endif | |
131 | ifeq ($(DEBUG_INFO),1) | |
132 | __DEBUGINFO = -g | |
250700e4 RD |
133 | endif |
134 | ifeq ($(BUILD),debug) | |
b17c1746 | 135 | __OPTIMIZEFLAG = -O0 |
3f55f5b8 | 136 | endif |
b17c1746 DE |
137 | ifeq ($(BUILD),release) |
138 | __OPTIMIZEFLAG = -O2 | |
250700e4 | 139 | endif |
a4ad36cd VS |
140 | ifeq ($(USE_EXCEPTIONS),0) |
141 | __EXCEPTIONSFLAG = -fno-rtti | |
142 | endif | |
143 | ifeq ($(USE_EXCEPTIONS),1) | |
144 | __EXCEPTIONSFLAG = | |
145 | endif | |
146 | ifeq ($(USE_EXCEPTIONS),0) | |
147 | __EXCEPTIONSFLAG_0 = -fno-exceptions | |
148 | endif | |
149 | ifeq ($(USE_EXCEPTIONS),1) | |
150 | __EXCEPTIONSFLAG_0 = | |
151 | endif | |
b17c1746 DE |
152 | ifeq ($(WXUNIV),1) |
153 | __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__ | |
3f55f5b8 | 154 | endif |
250700e4 | 155 | ifeq ($(BUILD),debug) |
b17c1746 DE |
156 | ifeq ($(DEBUG_FLAG),default) |
157 | __DEBUG_DEFINE_p = -D__WXDEBUG__ | |
250700e4 | 158 | endif |
b17c1746 DE |
159 | endif |
160 | ifeq ($(DEBUG_FLAG),1) | |
161 | __DEBUG_DEFINE_p = -D__WXDEBUG__ | |
250700e4 RD |
162 | endif |
163 | ifeq ($(UNICODE),1) | |
ec08d395 | 164 | __UNICODE_DEFINE_p = -D_UNICODE |
250700e4 | 165 | endif |
250700e4 RD |
166 | |
167 | ||
168 | all: $(OBJS) | |
169 | $(OBJS): | |
170 | -if not exist $(OBJS) mkdir $(OBJS) | |
171 | ||
172 | ### Targets: ### | |
173 | ||
174 | all: $(__animatedll___depname) $(__animatelib___depname) | |
175 | ||
b17c1746 DE |
176 | clean: |
177 | -if exist $(OBJS)\*.o del $(OBJS)\*.o | |
c33fae85 RN |
178 | -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 |
179 | -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 | |
180 | -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 |
181 | |
182 | ifeq ($(SHARED),1) | |
c33fae85 | 183 | $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_VERSION_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_animate_gcc$(VENDORTAG).dll: $(ANIMATEDLL_OBJECTS) |
b14abf14 | 184 | $(CXX) -shared -fPIC -o $@ $(ANIMATEDLL_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) -mthreads -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 |
185 | endif |
186 | ||
187 | ifeq ($(SHARED),0) | |
c33fae85 | 188 | $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_animate.a: $(ANIMATELIB_OBJECTS) |
250700e4 | 189 | if exist $@ del $@ |
3f55f5b8 | 190 | ar rcu $@ $(ANIMATELIB_OBJECTS) |
250700e4 RD |
191 | ranlib $@ |
192 | endif | |
193 | ||
b17c1746 DE |
194 | $(OBJS)\animatedll_dummy.o: ../../src/animate/../../../src/msw/dummy.cpp |
195 | $(CXX) -c -o $@ $(ANIMATEDLL_CXXFLAGS) $< | |
196 | ||
197 | $(OBJS)\animatedll_animate.o: ../../src/animate/animate.cpp | |
198 | $(CXX) -c -o $@ $(ANIMATEDLL_CXXFLAGS) $< | |
199 | ||
200 | $(OBJS)\animatelib_dummy.o: ../../src/animate/../../../src/msw/dummy.cpp | |
201 | $(CXX) -c -o $@ $(ANIMATELIB_CXXFLAGS) $< | |
202 | ||
203 | $(OBJS)\animatelib_animate.o: ../../src/animate/animate.cpp | |
204 | $(CXX) -c -o $@ $(ANIMATELIB_CXXFLAGS) $< | |
250700e4 RD |
205 | |
206 | .PHONY: all clean | |
b14abf14 | 207 |