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