]> git.saurik.com Git - wxWidgets.git/blame - contrib/build/animate/makefile.gcc
Layout fixes for wxPlotWindow [#1192416] + source cleaning to the wxW 2.6 coding...
[wxWidgets.git] / contrib / build / animate / makefile.gcc
CommitLineData
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 7include ../../../build/msw/config.gcc
250700e4
RD
8
9# -------------------------------------------------------------------------
10# Do not modify the rest of this file!
11# -------------------------------------------------------------------------
12
13### Variables: ###
14
4818141b 15WX_RELEASE_NODOT = 26
b17c1746
DE
16OBJS = \
17 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
b14abf14 18LIBDIRNAME = ..\..\src\animate\..\..\..\lib\gcc_$(LIBTYPE_SUFFIX)$(CFG)
b17c1746
DE
19SETUPHDIR = \
20 $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)
8c9f8f91
JS
21ANIMATEDLL_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
29ANIMATEDLL_OBJECTS = \
30 $(OBJS)\animatedll_dummy.o \
8c9f8f91 31 $(OBJS)\animatedll_version_rc.o \
3f55f5b8 32 $(OBJS)\animatedll_animate.o
8c9f8f91
JS
33ANIMATELIB_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
40ANIMATELIB_OBJECTS = \
41 $(OBJS)\animatelib_dummy.o \
42 $(OBJS)\animatelib_animate.o
250700e4
RD
43
44### Conditionally set variables: ###
45
46ifeq ($(GCC_VERSION),2.95)
47GCCFLAGS = -fvtable-thunks
48endif
49ifeq ($(USE_GUI),0)
50PORTNAME = base
51endif
52ifeq ($(USE_GUI),1)
53PORTNAME = msw
54endif
55ifeq ($(OFFICIAL_BUILD),0)
56VENDORTAG = _$(VENDOR)
57endif
58ifeq ($(OFFICIAL_BUILD),1)
59VENDORTAG =
60endif
61ifeq ($(BUILD),debug)
3f55f5b8
VS
62ifeq ($(DEBUG_FLAG),default)
63WXDEBUGFLAG = d
64endif
65endif
66ifeq ($(DEBUG_FLAG),1)
250700e4
RD
67WXDEBUGFLAG = d
68endif
250700e4
RD
69ifeq ($(UNICODE),1)
70WXUNICODEFLAG = u
71endif
72ifeq ($(WXUNIV),1)
73WXUNIVNAME = univ
74endif
b17c1746
DE
75ifeq ($(SHARED),1)
76WXDLLFLAG = dll
77endif
b14abf14
JS
78ifeq ($(SHARED),0)
79LIBTYPE_SUFFIX = lib
80endif
81ifeq ($(SHARED),1)
82LIBTYPE_SUFFIX = dll
83endif
dd65d8c8
RN
84ifeq ($(MONOLITHIC),0)
85EXTRALIBS_FOR_BASE =
86endif
87ifeq ($(MONOLITHIC),1)
88EXTRALIBS_FOR_BASE =
89endif
b17c1746
DE
90ifeq ($(SHARED),1)
91__animatedll___depname = \
4818141b 92 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_animate_gcc$(VENDORTAG).dll
b17c1746 93endif
8c9f8f91
JS
94ifeq ($(WXUNIV),1)
95__WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__
96endif
97ifeq ($(BUILD),debug)
98ifeq ($(DEBUG_FLAG),default)
99__DEBUG_DEFINE_p_1 = --define __WXDEBUG__
100endif
101endif
102ifeq ($(DEBUG_FLAG),1)
103__DEBUG_DEFINE_p_1 = --define __WXDEBUG__
104endif
105ifeq ($(USE_EXCEPTIONS),0)
106__EXCEPTIONS_DEFINE_p_1 = --define wxNO_EXCEPTIONS
107endif
108ifeq ($(USE_RTTI),0)
109__RTTI_DEFINE_p_1 = --define wxNO_RTTI
110endif
111ifeq ($(USE_THREADS),0)
112__THREAD_DEFINE_p_1 = --define wxNO_THREADS
113endif
114ifeq ($(UNICODE),1)
115__UNICODE_DEFINE_p_1 = --define _UNICODE
116endif
b17c1746
DE
117ifeq ($(MONOLITHIC),1)
118__WXLIB_MONO_p = \
c33fae85 119 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
b17c1746
DE
120endif
121ifeq ($(USE_GUI),1)
9c2d002b 122__LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
b17c1746
DE
123endif
124ifeq ($(USE_GUI),1)
9c2d002b 125__LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
b17c1746
DE
126endif
127ifeq ($(USE_GUI),1)
9c2d002b 128__LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
b17c1746
DE
129endif
130ifeq ($(MSLU),1)
131__UNICOWS_LIB_p = -lunicows
132endif
133ifeq ($(MONOLITHIC),0)
134__WXLIB_CORE_p = \
c33fae85 135 -lwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_core
b17c1746
DE
136endif
137ifeq ($(MONOLITHIC),0)
c33fae85
RN
138__WXLIB_BASE_p = \
139 -lwxbase$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)
b17c1746
DE
140endif
141ifeq ($(SHARED),0)
142__animatelib___depname = \
c33fae85 143 $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)$(WX_RELEASE_NODOT)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_animate.a
b17c1746 144endif
250700e4 145ifeq ($(BUILD),debug)
3f55f5b8
VS
146ifeq ($(DEBUG_INFO),default)
147__DEBUGINFO = -g
148endif
250700e4
RD
149endif
150ifeq ($(BUILD),release)
3f55f5b8
VS
151ifeq ($(DEBUG_INFO),default)
152__DEBUGINFO =
153endif
154endif
155ifeq ($(DEBUG_INFO),0)
156__DEBUGINFO =
157endif
158ifeq ($(DEBUG_INFO),1)
159__DEBUGINFO = -g
250700e4
RD
160endif
161ifeq ($(BUILD),debug)
b17c1746 162__OPTIMIZEFLAG = -O0
3f55f5b8 163endif
b17c1746
DE
164ifeq ($(BUILD),release)
165__OPTIMIZEFLAG = -O2
250700e4 166endif
8c9f8f91
JS
167ifeq ($(USE_THREADS),0)
168__THREADSFLAG =
a4ad36cd 169endif
8c9f8f91
JS
170ifeq ($(USE_THREADS),1)
171__THREADSFLAG = -mthreads
172endif
173ifeq ($(USE_RTTI),0)
174__RTTIFLAG = -fno-rtti
175endif
176ifeq ($(USE_RTTI),1)
177__RTTIFLAG =
a4ad36cd
VS
178endif
179ifeq ($(USE_EXCEPTIONS),0)
8c9f8f91 180__EXCEPTIONSFLAG = -fno-exceptions
a4ad36cd
VS
181endif
182ifeq ($(USE_EXCEPTIONS),1)
8c9f8f91 183__EXCEPTIONSFLAG =
a4ad36cd 184endif
b17c1746
DE
185ifeq ($(WXUNIV),1)
186__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
3f55f5b8 187endif
250700e4 188ifeq ($(BUILD),debug)
b17c1746
DE
189ifeq ($(DEBUG_FLAG),default)
190__DEBUG_DEFINE_p = -D__WXDEBUG__
250700e4 191endif
b17c1746
DE
192endif
193ifeq ($(DEBUG_FLAG),1)
194__DEBUG_DEFINE_p = -D__WXDEBUG__
250700e4 195endif
8c9f8f91
JS
196ifeq ($(USE_EXCEPTIONS),0)
197__EXCEPTIONS_DEFINE_p = -DwxNO_EXCEPTIONS
198endif
199ifeq ($(USE_RTTI),0)
200__RTTI_DEFINE_p = -DwxNO_RTTI
201endif
202ifeq ($(USE_THREADS),0)
203__THREAD_DEFINE_p = -DwxNO_THREADS
204endif
250700e4 205ifeq ($(UNICODE),1)
ec08d395 206__UNICODE_DEFINE_p = -D_UNICODE
250700e4 207endif
250700e4
RD
208
209
210all: $(OBJS)
211$(OBJS):
212 -if not exist $(OBJS) mkdir $(OBJS)
213
214### Targets: ###
215
216all: $(__animatedll___depname) $(__animatelib___depname)
217
b17c1746
DE
218clean:
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
224ifeq ($(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
227endif
228
229ifeq ($(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 $@
234endif
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