]>
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 | ||
7 | !ifndef BCCDIR | |
8 | BCCDIR = $(MAKEDIR)\.. | |
9 | !endif | |
10 | ||
fd9f42b6 | 11 | !include ../../../build/msw/config.bcc |
250700e4 RD |
12 | |
13 | # ------------------------------------------------------------------------- | |
14 | # Do not modify the rest of this file! | |
15 | # ------------------------------------------------------------------------- | |
16 | ||
17 | !if "$(BCCDIR)" == "\.." | |
18 | !error Your Borland compiler does not define MAKEDIR. Please define the BCCDIR variable, e.g. BCCDIR=d:\bc4 | |
19 | !endif | |
20 | ||
21 | ### Variables: ### | |
22 | ||
3f55f5b8 | 23 | ANIMATEDLL_CXXFLAGS = $(CPPFLAGS) $(__RUNTIME_LIBS) $(__DEBUGINFO) \ |
250700e4 | 24 | $(__OPTIMIZEFLAG) -tWM -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \ |
3f55f5b8 | 25 | $(__UNICODE_DEFINE_p) -I..\..\src\animate\..\..\..\include -I$(LIBDIRNAME) \ |
250700e4 RD |
26 | -I..\..\src\animate\..\..\..\src\tiff \ |
27 | -I..\..\src\animate\..\..\..\src\jpeg \ | |
28 | -I..\..\src\animate\..\..\..\src\png \ | |
29 | -I..\..\src\animate\..\..\..\src\zlib \ | |
bdc408c4 VS |
30 | -I..\..\src\animate\..\..\..\src\regex \ |
31 | -I..\..\src\animate\..\..\..\src\expat\lib \ | |
32 | -I..\..\src\animate\..\..\include -DWXUSINGDLL -DWXMAKINGDLL_ANIMATE \ | |
33 | $(CXXFLAGS) -Hu -H=$(OBJS)\wxprec_animatedll.csm | |
3f55f5b8 VS |
34 | ANIMATEDLL_OBJECTS = \ |
35 | $(OBJS)\animatedll_dummy.obj \ | |
36 | $(OBJS)\animatedll_animate.obj | |
37 | ANIMATELIB_CXXFLAGS = $(CPPFLAGS) $(__RUNTIME_LIBS) $(__DEBUGINFO) \ | |
250700e4 | 38 | $(__OPTIMIZEFLAG) -tWM -D__WXMSW__ $(__WXUNIV_DEFINE_p) $(__DEBUG_DEFINE_p) \ |
3f55f5b8 | 39 | $(__UNICODE_DEFINE_p) -I..\..\src\animate\..\..\..\include -I$(LIBDIRNAME) \ |
250700e4 RD |
40 | -I..\..\src\animate\..\..\..\src\tiff \ |
41 | -I..\..\src\animate\..\..\..\src\jpeg \ | |
42 | -I..\..\src\animate\..\..\..\src\png \ | |
43 | -I..\..\src\animate\..\..\..\src\zlib \ | |
bdc408c4 VS |
44 | -I..\..\src\animate\..\..\..\src\regex \ |
45 | -I..\..\src\animate\..\..\..\src\expat\lib \ | |
46 | -I..\..\src\animate\..\..\include $(CXXFLAGS) -Hu \ | |
47 | -H=$(OBJS)\wxprec_animatelib.csm | |
3f55f5b8 VS |
48 | ANIMATELIB_OBJECTS = \ |
49 | $(OBJS)\animatelib_dummy.obj \ | |
50 | $(OBJS)\animatelib_animate.obj | |
51 | LIBDIRNAME = \ | |
52 | ..\..\src\animate\..\..\..\lib\bcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) | |
250700e4 RD |
53 | OBJS = \ |
54 | bcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) | |
55 | ||
56 | ### Conditionally set variables: ### | |
57 | ||
58 | !if "$(USE_GUI)" == "0" | |
59 | PORTNAME = base | |
60 | !endif | |
61 | !if "$(USE_GUI)" == "1" | |
62 | PORTNAME = msw | |
63 | !endif | |
64 | !if "$(OFFICIAL_BUILD)" == "0" | |
65 | VENDORTAG = _$(VENDOR) | |
66 | !endif | |
67 | !if "$(OFFICIAL_BUILD)" == "1" | |
68 | VENDORTAG = | |
69 | !endif | |
3f55f5b8 VS |
70 | !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default" |
71 | WXDEBUGFLAG = d | |
72 | !endif | |
73 | !if "$(DEBUG_FLAG)" == "1" | |
250700e4 RD |
74 | WXDEBUGFLAG = d |
75 | !endif | |
76 | !if "$(SHARED)" == "1" | |
77 | WXDLLFLAG = dll | |
78 | !endif | |
79 | !if "$(UNICODE)" == "1" | |
80 | WXUNICODEFLAG = u | |
81 | !endif | |
82 | !if "$(WXUNIV)" == "1" | |
83 | WXUNIVNAME = univ | |
84 | !endif | |
3f55f5b8 VS |
85 | !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default" |
86 | __DEBUGINFO = -v | |
250700e4 | 87 | !endif |
3f55f5b8 VS |
88 | !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default" |
89 | __DEBUGINFO = -v- | |
250700e4 | 90 | !endif |
3f55f5b8 VS |
91 | !if "$(DEBUG_INFO)" == "0" |
92 | __DEBUGINFO = -v- | |
93 | !endif | |
94 | !if "$(DEBUG_INFO)" == "1" | |
95 | __DEBUGINFO = -v | |
96 | !endif | |
97 | !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default" | |
250700e4 RD |
98 | __DEBUG_DEFINE_p = -D__WXDEBUG__ |
99 | !endif | |
3f55f5b8 VS |
100 | !if "$(DEBUG_FLAG)" == "1" |
101 | __DEBUG_DEFINE_p = -D__WXDEBUG__ | |
102 | !endif | |
103 | !if "$(USE_GUI)" == "1" | |
104 | __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib | |
105 | !endif | |
106 | !if "$(USE_GUI)" == "1" | |
107 | __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib | |
108 | !endif | |
109 | !if "$(USE_GUI)" == "1" | |
110 | __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib | |
111 | !endif | |
250700e4 RD |
112 | !if "$(BUILD)" == "debug" |
113 | __OPTIMIZEFLAG = -Od | |
114 | !endif | |
115 | !if "$(BUILD)" == "release" | |
116 | __OPTIMIZEFLAG = -O2 | |
117 | !endif | |
118 | !if "$(RUNTIME_LIBS)" == "dynamic" | |
119 | __RUNTIME_LIBS = -tWR | |
120 | !endif | |
121 | !if "$(RUNTIME_LIBS)" == "static" | |
122 | __RUNTIME_LIBS = | |
123 | !endif | |
124 | !if "$(RUNTIME_LIBS)" == "dynamic" | |
125 | __RUNTIME_LIBS_7 = i | |
126 | !endif | |
127 | !if "$(RUNTIME_LIBS)" == "static" | |
128 | __RUNTIME_LIBS_7 = | |
129 | !endif | |
130 | !if "$(UNICODE)" == "1" | |
131 | __UNICODE_DEFINE_p = -DwxUSE_UNICODE=1 | |
132 | !endif | |
133 | !if "$(MONOLITHIC)" == "0" | |
134 | __WXLIB_BASE_p = wxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib | |
135 | !endif | |
136 | !if "$(MONOLITHIC)" == "0" | |
137 | __WXLIB_CORE_p = \ | |
138 | wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core.lib | |
139 | !endif | |
140 | !if "$(MONOLITHIC)" == "1" | |
141 | __WXLIB_MONO_p = \ | |
142 | wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib | |
143 | !endif | |
144 | !if "$(WXUNIV)" == "1" | |
145 | __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__ | |
146 | !endif | |
147 | !if "$(SHARED)" == "1" | |
148 | __animatedll___depname = \ | |
3f55f5b8 | 149 | $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)250$(WXUNICODEFLAG)$(WXDEBUGFLAG)_animate_bcc$(VENDORTAG).dll |
250700e4 RD |
150 | !endif |
151 | !if "$(SHARED)" == "0" | |
152 | __animatelib___depname = \ | |
3f55f5b8 | 153 | $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_animate.lib |
250700e4 RD |
154 | !endif |
155 | ||
fd9f42b6 VS |
156 | MAKEARGS = -DBUILD=$(BUILD) -DCFG=$(CFG) -DCPPFLAGS=$(CPPFLAGS) -DCXX=$(CXX) -DCXXFLAGS=$(CXXFLAGS) -DDEBUG_FLAG=$(DEBUG_FLAG) -DDEBUG_INFO=$(DEBUG_INFO) -DLDFLAGS=$(LDFLAGS) -DMONOLITHIC=$(MONOLITHIC) -DOFFICIAL_BUILD=$(OFFICIAL_BUILD) -DRUNTIME_LIBS=$(RUNTIME_LIBS) -DSHARED=$(SHARED) -DUNICODE=$(UNICODE) -DUSE_GUI=$(USE_GUI) -DVENDOR=$(VENDOR) -DWXUNIV=$(WXUNIV) |
157 | ||
250700e4 RD |
158 | |
159 | all: $(OBJS) | |
160 | $(OBJS): | |
161 | -if not exist $(OBJS) mkdir $(OBJS) | |
162 | ||
163 | ### Targets: ### | |
164 | ||
165 | all: $(__animatedll___depname) $(__animatelib___depname) | |
166 | ||
167 | $(OBJS)\animatedll_animate.obj: ../../src/animate\animate.cpp | |
168 | $(CXX) -q -c -P -o$@ $(ANIMATEDLL_CXXFLAGS) $** | |
169 | ||
170 | $(OBJS)\animatedll_dummy.obj: ../../src/animate\..\..\..\src\msw\dummy.cpp | |
171 | $(CXX) -q -c -P -o$@ $(ANIMATEDLL_CXXFLAGS) -H $** | |
172 | ||
173 | $(OBJS)\animatelib_animate.obj: ../../src/animate\animate.cpp | |
174 | $(CXX) -q -c -P -o$@ $(ANIMATELIB_CXXFLAGS) $** | |
175 | ||
176 | $(OBJS)\animatelib_dummy.obj: ../../src/animate\..\..\..\src\msw\dummy.cpp | |
177 | $(CXX) -q -c -P -o$@ $(ANIMATELIB_CXXFLAGS) -H $** | |
178 | ||
179 | !if "$(SHARED)" == "1" | |
3f55f5b8 VS |
180 | $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)250$(WXUNICODEFLAG)$(WXDEBUGFLAG)_animate_bcc$(VENDORTAG).dll: $(ANIMATEDLL_OBJECTS) $(OBJS)\animatedll_dummy.obj |
181 | ilink32 -Tpd -q $(LDFLAGS) $(__DEBUGINFO) -L$(LIBDIRNAME) @&&| | |
e2d1c567 | 182 | c0d32.obj $(ANIMATEDLL_OBJECTS),$@,, $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) wxzlib$(WXDEBUGFLAG).lib wxregex$(WXDEBUGFLAG).lib wxexpat$(WXDEBUGFLAG).lib import32.lib ole2w32.lib $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) import32.lib cw32mt$(__RUNTIME_LIBS_7).lib,, |
250700e4 | 183 | | |
3f55f5b8 | 184 | implib -f $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_animate $@ |
250700e4 RD |
185 | !endif |
186 | ||
187 | !if "$(SHARED)" == "0" | |
3f55f5b8 | 188 | $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_animate.lib: $(ANIMATELIB_OBJECTS) $(OBJS)\animatelib_dummy.obj |
250700e4 RD |
189 | if exist $@ del $@ |
190 | tlib /a /p2048 $@ @&&| | |
3f55f5b8 | 191 | $(ANIMATELIB_OBJECTS) |
250700e4 RD |
192 | | |
193 | !endif | |
194 | ||
195 | clean: | |
196 | -if exist $(OBJS)\*.obj del $(OBJS)\*.obj | |
197 | -if exist $(OBJS)\*.res del $(OBJS)\*.res | |
3f55f5b8 VS |
198 | -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)250$(WXUNICODEFLAG)$(WXDEBUGFLAG)_animate_bcc$(VENDORTAG).dll del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)250$(WXUNICODEFLAG)$(WXDEBUGFLAG)_animate_bcc$(VENDORTAG).dll |
199 | -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_animate.lib del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_animate.lib | |
200 | -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_animate.lib del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_animate.lib |