]>
Commit | Line | Data |
---|---|---|
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 | 7 | include ../../../build/msw/config.gcc |
250700e4 RD |
8 | |
9 | # ------------------------------------------------------------------------- | |
10 | # Do not modify the rest of this file! | |
11 | # ------------------------------------------------------------------------- | |
12 | ||
13 | ### Variables: ### | |
14 | ||
3f55f5b8 VS |
15 | ANIMATEDLL_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) | |
26 | ANIMATEDLL_OBJECTS = \ | |
27 | $(OBJS)\animatedll_dummy.o \ | |
28 | $(OBJS)\animatedll_animate.o | |
29 | ANIMATELIB_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) | |
39 | ANIMATELIB_OBJECTS = \ | |
40 | $(OBJS)\animatelib_dummy.o \ | |
41 | $(OBJS)\animatelib_animate.o | |
42 | LIBDIRNAME = \ | |
43 | ..\..\src\animate\..\..\..\lib\gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) | |
44 | OBJS = \ | |
45 | gcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) | |
250700e4 RD |
46 | |
47 | ### Conditionally set variables: ### | |
48 | ||
49 | ifeq ($(GCC_VERSION),2.95) | |
50 | GCCFLAGS = -fvtable-thunks | |
51 | endif | |
52 | ifeq ($(USE_GUI),0) | |
53 | PORTNAME = base | |
54 | endif | |
55 | ifeq ($(USE_GUI),1) | |
56 | PORTNAME = msw | |
57 | endif | |
58 | ifeq ($(OFFICIAL_BUILD),0) | |
59 | VENDORTAG = _$(VENDOR) | |
60 | endif | |
61 | ifeq ($(OFFICIAL_BUILD),1) | |
62 | VENDORTAG = | |
63 | endif | |
64 | ifeq ($(BUILD),debug) | |
3f55f5b8 VS |
65 | ifeq ($(DEBUG_FLAG),default) |
66 | WXDEBUGFLAG = d | |
67 | endif | |
68 | endif | |
69 | ifeq ($(DEBUG_FLAG),1) | |
250700e4 RD |
70 | WXDEBUGFLAG = d |
71 | endif | |
72 | ifeq ($(SHARED),1) | |
73 | WXDLLFLAG = dll | |
74 | endif | |
75 | ifeq ($(UNICODE),1) | |
76 | WXUNICODEFLAG = u | |
77 | endif | |
78 | ifeq ($(WXUNIV),1) | |
79 | WXUNIVNAME = univ | |
80 | endif | |
81 | ifeq ($(BUILD),debug) | |
3f55f5b8 VS |
82 | ifeq ($(DEBUG_INFO),default) |
83 | __DEBUGINFO = -g | |
84 | endif | |
250700e4 RD |
85 | endif |
86 | ifeq ($(BUILD),release) | |
3f55f5b8 VS |
87 | ifeq ($(DEBUG_INFO),default) |
88 | __DEBUGINFO = | |
89 | endif | |
90 | endif | |
91 | ifeq ($(DEBUG_INFO),0) | |
92 | __DEBUGINFO = | |
93 | endif | |
94 | ifeq ($(DEBUG_INFO),1) | |
95 | __DEBUGINFO = -g | |
250700e4 RD |
96 | endif |
97 | ifeq ($(BUILD),debug) | |
3f55f5b8 VS |
98 | ifeq ($(DEBUG_FLAG),default) |
99 | __DEBUG_DEFINE_p = -D__WXDEBUG__ | |
100 | endif | |
101 | endif | |
102 | ifeq ($(DEBUG_FLAG),1) | |
250700e4 RD |
103 | __DEBUG_DEFINE_p = -D__WXDEBUG__ |
104 | endif | |
3f55f5b8 VS |
105 | ifeq ($(USE_GUI),1) |
106 | __LIB_JPEG_p = -lwxjpeg$(WXDEBUGFLAG) | |
107 | endif | |
108 | ifeq ($(USE_GUI),1) | |
109 | __LIB_PNG_p = -lwxpng$(WXDEBUGFLAG) | |
110 | endif | |
111 | ifeq ($(USE_GUI),1) | |
112 | __LIB_TIFF_p = -lwxtiff$(WXDEBUGFLAG) | |
113 | endif | |
250700e4 RD |
114 | ifeq ($(BUILD),debug) |
115 | __OPTIMIZEFLAG = -O0 | |
116 | endif | |
117 | ifeq ($(BUILD),release) | |
118 | __OPTIMIZEFLAG = -O2 | |
119 | endif | |
120 | ifeq ($(UNICODE),1) | |
121 | __UNICODE_DEFINE_p = -DwxUSE_UNICODE=1 | |
122 | endif | |
123 | ifeq ($(MONOLITHIC),0) | |
124 | __WXLIB_BASE_p = -lwxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG) | |
125 | endif | |
126 | ifeq ($(MONOLITHIC),0) | |
3f55f5b8 VS |
127 | __WXLIB_CORE_p = \ |
128 | -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core | |
250700e4 RD |
129 | endif |
130 | ifeq ($(MONOLITHIC),1) | |
3f55f5b8 VS |
131 | __WXLIB_MONO_p = \ |
132 | -lwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG) | |
250700e4 RD |
133 | endif |
134 | ifeq ($(WXUNIV),1) | |
135 | __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__ | |
136 | endif | |
137 | ifeq ($(SHARED),1) | |
3f55f5b8 VS |
138 | __animatedll___depname = \ |
139 | $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)250$(WXUNICODEFLAG)$(WXDEBUGFLAG)_animate_gcc$(VENDORTAG).dll | |
250700e4 RD |
140 | endif |
141 | ifeq ($(SHARED),0) | |
3f55f5b8 VS |
142 | __animatelib___depname = \ |
143 | $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_animate.a | |
250700e4 RD |
144 | endif |
145 | ||
fd9f42b6 VS |
146 | MAKEARGS = BUILD=$(BUILD) CFG=$(CFG) CPPFLAGS=$(CPPFLAGS) CXX=$(CXX) CXXFLAGS=$(CXXFLAGS) DEBUG_FLAG=$(DEBUG_FLAG) DEBUG_INFO=$(DEBUG_INFO) GCC_VERSION=$(GCC_VERSION) LDFLAGS=$(LDFLAGS) MONOLITHIC=$(MONOLITHIC) OFFICIAL_BUILD=$(OFFICIAL_BUILD) SHARED=$(SHARED) UNICODE=$(UNICODE) USE_GUI=$(USE_GUI) VENDOR=$(VENDOR) WXUNIV=$(WXUNIV) |
147 | ||
250700e4 RD |
148 | |
149 | all: $(OBJS) | |
150 | $(OBJS): | |
151 | -if not exist $(OBJS) mkdir $(OBJS) | |
152 | ||
153 | ### Targets: ### | |
154 | ||
155 | all: $(__animatedll___depname) $(__animatelib___depname) | |
156 | ||
157 | $(OBJS)\animatedll_animate.o: ../../src/animate\animate.cpp | |
158 | $(CXX) -c -o $@ $(ANIMATEDLL_CXXFLAGS) $< | |
159 | ||
160 | $(OBJS)\animatedll_dummy.o: ../../src/animate\..\..\..\src\msw\dummy.cpp | |
161 | $(CXX) -c -o $@ $(ANIMATEDLL_CXXFLAGS) $< | |
162 | ||
163 | $(OBJS)\animatelib_animate.o: ../../src/animate\animate.cpp | |
164 | $(CXX) -c -o $@ $(ANIMATELIB_CXXFLAGS) $< | |
165 | ||
166 | $(OBJS)\animatelib_dummy.o: ../../src/animate\..\..\..\src\msw\dummy.cpp | |
167 | $(CXX) -c -o $@ $(ANIMATELIB_CXXFLAGS) $< | |
168 | ||
169 | ifeq ($(SHARED),1) | |
3f55f5b8 VS |
170 | $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)250$(WXUNICODEFLAG)$(WXDEBUGFLAG)_animate_gcc$(VENDORTAG).dll: $(ANIMATEDLL_OBJECTS) |
171 | $(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) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lodbc32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) | |
250700e4 RD |
172 | endif |
173 | ||
174 | ifeq ($(SHARED),0) | |
3f55f5b8 | 175 | $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_animate.a: $(ANIMATELIB_OBJECTS) |
250700e4 | 176 | if exist $@ del $@ |
3f55f5b8 | 177 | ar rcu $@ $(ANIMATELIB_OBJECTS) |
250700e4 RD |
178 | ranlib $@ |
179 | endif | |
180 | ||
181 | clean: | |
182 | -if exist $(OBJS)\*.o del $(OBJS)\*.o | |
3f55f5b8 VS |
183 | -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 |
184 | -if exist $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_animate.a del $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_animate.a | |
185 | -if exist $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_animate.a del $(LIBDIRNAME)\libwx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_animate.a | |
250700e4 RD |
186 | |
187 | .PHONY: all clean |