]> git.saurik.com Git - wxWidgets.git/blame - contrib/build/animate/makefile.gcc
VC++ project files dependencies
[wxWidgets.git] / contrib / build / animate / makefile.gcc
CommitLineData
250700e4
RD
1# =========================================================================
2# This makefile was generated by
bdc408c4 3# Bakefile 0.1.1 (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
3f55f5b8
VS
15ANIMATEDLL_CXXFLAGS = $(CPPFLAGS) $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) \
16 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
17 $(__UNICODE_DEFINE_p) -I..\..\src\animate\..\..\..\include -I$(LIBDIRNAME) \
18 -I..\..\src\animate\..\..\..\src\tiff \
19 -I..\..\src\animate\..\..\..\src\jpeg \
20 -I..\..\src\animate\..\..\..\src\png \
21 -I..\..\src\animate\..\..\..\src\zlib \
22 -I..\..\src\animate\..\..\..\src\regex \
23 -I..\..\src\animate\..\..\..\src\expat\lib \
24 -I..\..\src\animate\..\..\include -DWXUSINGDLL -DWXMAKINGDLL_ANIMATE \
25 $(CXXFLAGS)
26ANIMATEDLL_OBJECTS = \
27 $(OBJS)\animatedll_dummy.o \
28 $(OBJS)\animatedll_animate.o
29ANIMATELIB_CXXFLAGS = $(CPPFLAGS) $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(GCCFLAGS) \
30 -DHAVE_W32API_H -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \
31 $(__UNICODE_DEFINE_p) -I..\..\src\animate\..\..\..\include -I$(LIBDIRNAME) \
32 -I..\..\src\animate\..\..\..\src\tiff \
33 -I..\..\src\animate\..\..\..\src\jpeg \
34 -I..\..\src\animate\..\..\..\src\png \
35 -I..\..\src\animate\..\..\..\src\zlib \
36 -I..\..\src\animate\..\..\..\src\regex \
37 -I..\..\src\animate\..\..\..\src\expat\lib \
38 -I..\..\src\animate\..\..\include $(CXXFLAGS)
39ANIMATELIB_OBJECTS = \
40 $(OBJS)\animatelib_dummy.o \
41 $(OBJS)\animatelib_animate.o
42LIBDIRNAME = \
43 ..\..\src\animate\..\..\..\lib\gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
44OBJS = \
45 gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
250700e4
RD
46
47### Conditionally set variables: ###
48
49ifeq ($(GCC_VERSION),2.95)
50GCCFLAGS = -fvtable-thunks
51endif
52ifeq ($(USE_GUI),0)
53PORTNAME = base
54endif
55ifeq ($(USE_GUI),1)
56PORTNAME = msw
57endif
58ifeq ($(OFFICIAL_BUILD),0)
59VENDORTAG = _$(VENDOR)
60endif
61ifeq ($(OFFICIAL_BUILD),1)
62VENDORTAG =
63endif
64ifeq ($(BUILD),debug)
3f55f5b8
VS
65ifeq ($(DEBUG_FLAG),default)
66WXDEBUGFLAG = d
67endif
68endif
69ifeq ($(DEBUG_FLAG),1)
250700e4
RD
70WXDEBUGFLAG = d
71endif
72ifeq ($(SHARED),1)
73WXDLLFLAG = dll
74endif
75ifeq ($(UNICODE),1)
76WXUNICODEFLAG = u
77endif
78ifeq ($(WXUNIV),1)
79WXUNIVNAME = univ
80endif
81ifeq ($(BUILD),debug)
3f55f5b8
VS
82ifeq ($(DEBUG_INFO),default)
83__DEBUGINFO = -g
84endif
250700e4
RD
85endif
86ifeq ($(BUILD),release)
3f55f5b8
VS
87ifeq ($(DEBUG_INFO),default)
88__DEBUGINFO =
89endif
90endif
91ifeq ($(DEBUG_INFO),0)
92__DEBUGINFO =
93endif
94ifeq ($(DEBUG_INFO),1)
95__DEBUGINFO = -g
250700e4
RD
96endif
97ifeq ($(BUILD),debug)
3f55f5b8
VS
98ifeq ($(DEBUG_FLAG),default)
99__DEBUG_DEFINE_p = -D__WXDEBUG__
100endif
101endif
102ifeq ($(DEBUG_FLAG),1)
250700e4
RD
103__DEBUG_DEFINE_p = -D__WXDEBUG__
104endif
3f55f5b8
VS
105ifeq ($(USE_GUI),1)
106__LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG)
107endif
108ifeq ($(USE_GUI),1)
109__LIB_PNG_p = -lwxpng$(WXDEBUGFLAG)
110endif
111ifeq ($(USE_GUI),1)
112__LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG)
113endif
250700e4
RD
114ifeq ($(BUILD),debug)
115__OPTIMIZEFLAG = -O0
116endif
117ifeq ($(BUILD),release)
118__OPTIMIZEFLAG = -O2
119endif
120ifeq ($(UNICODE),1)
121__UNICODE_DEFINE_p = -DwxUSE_UNICODE=1
122endif
2265a2d5
VS
123ifeq ($(MSLU),1)
124__UNICOWS_LIB_p = -lunicows
125endif
250700e4
RD
126ifeq ($(MONOLITHIC),0)
127__WXLIB_BASE_p = -lwxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG)
128endif
129ifeq ($(MONOLITHIC),0)
3f55f5b8
VS
130__WXLIB_CORE_p = \
131 -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core
250700e4
RD
132endif
133ifeq ($(MONOLITHIC),1)
3f55f5b8
VS
134__WXLIB_MONO_p = \
135 -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)
250700e4
RD
136endif
137ifeq ($(WXUNIV),1)
138__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
139endif
140ifeq ($(SHARED),1)
3f55f5b8
VS
141__animatedll___depname = \
142 $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)250$(WXUNICODEFLAG)$(WXDEBUGFLAG)_animate_gcc$(VENDORTAG).dll
250700e4
RD
143endif
144ifeq ($(SHARED),0)
3f55f5b8
VS
145__animatelib___depname = \
146 $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_animate.a
250700e4
RD
147endif
148
149
150all: $(OBJS)
151$(OBJS):
152 -if not exist $(OBJS) mkdir $(OBJS)
153
154### Targets: ###
155
156all: $(__animatedll___depname) $(__animatelib___depname)
157
158$(OBJS)\animatedll_animate.o: ../../src/animate\animate.cpp
159 $(CXX) -c -o $@ $(ANIMATEDLL_CXXFLAGS) $<
160
161$(OBJS)\animatedll_dummy.o: ../../src/animate\..\..\..\src\msw\dummy.cpp
162 $(CXX) -c -o $@ $(ANIMATEDLL_CXXFLAGS) $<
163
164$(OBJS)\animatelib_animate.o: ../../src/animate\animate.cpp
165 $(CXX) -c -o $@ $(ANIMATELIB_CXXFLAGS) $<
166
167$(OBJS)\animatelib_dummy.o: ../../src/animate\..\..\..\src\msw\dummy.cpp
168 $(CXX) -c -o $@ $(ANIMATELIB_CXXFLAGS) $<
169
170ifeq ($(SHARED),1)
3f55f5b8 171$(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)250$(WXUNICODEFLAG)$(WXDEBUGFLAG)_animate_gcc$(VENDORTAG).dll: $(ANIMATEDLL_OBJECTS)
2265a2d5 172 $(CXX) -shared -o $@ $(ANIMATEDLL_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) -mthreads -L$(LIBDIRNAME) -Wl,--out-implib,$(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_animate.a $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) -lwxzlib$(WXDEBUGFLAG) -lwxregex$(WXDEBUGFLAG) -lwxexpat$(WXDEBUGFLAG) $(__UNICOWS_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lodbc32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 $(__WXLIB_CORE_p) $(__WXLIB_BASE_p)
250700e4
RD
173endif
174
175ifeq ($(SHARED),0)
3f55f5b8 176$(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_animate.a: $(ANIMATELIB_OBJECTS)
250700e4 177 if exist $@ del $@
3f55f5b8 178 ar rcu $@ $(ANIMATELIB_OBJECTS)
250700e4
RD
179 ranlib $@
180endif
181
182clean:
183 -if exist $(OBJS)\*.o del $(OBJS)\*.o
3f55f5b8
VS
184 -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)250$(WXUNICODEFLAG)$(WXDEBUGFLAG)_animate_gcc$(VENDORTAG).dll del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)250$(WXUNICODEFLAG)$(WXDEBUGFLAG)_animate_gcc$(VENDORTAG).dll
185 -if exist $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_animate.a del $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_animate.a
186 -if exist $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_animate.a del $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_animate.a
250700e4
RD
187
188.PHONY: all clean