]>
Commit | Line | Data |
---|---|---|
0ca4ab85 VS |
1 | # ========================================================================= |
2 | # This makefile was generated by | |
3 | # Bakefile 0.1.1 (http://bakefile.sourceforge.net) | |
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 |
0ca4ab85 VS |
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 | ||
0ca4ab85 VS |
23 | OBJS = \ |
24 | bcc_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG) | |
75a0a7b7 VS |
25 | SETUPHDIR = \ |
26 | $(LIBDIRNAME)\$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG) | |
1c3a6972 VS |
27 | SVGDLL_CXXFLAGS = $(CPPFLAGS) $(__RUNTIME_LIBS) -I$(BCCDIR)\include \ |
28 | $(__DEBUGINFO) $(__OPTIMIZEFLAG) -tWM -D__WXMSW__ $(__WXUNIV_DEFINE_p) \ | |
29 | $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) -I..\..\src\svg\..\..\..\include \ | |
30 | -I$(SETUPHDIR) -I..\..\src\svg\..\..\include -DWXUSINGDLL -DWXMAKINGDLL_SVG \ | |
31 | $(CXXFLAGS) -Hu -H=$(OBJS)\wxprec_svgdll.csm | |
0ca4ab85 VS |
32 | SVGDLL_OBJECTS = \ |
33 | $(OBJS)\svgdll_dummy.obj \ | |
34 | $(OBJS)\svgdll_dcsvg.obj | |
1c3a6972 VS |
35 | SVGLIB_CXXFLAGS = $(CPPFLAGS) $(__RUNTIME_LIBS) -I$(BCCDIR)\include \ |
36 | $(__DEBUGINFO) $(__OPTIMIZEFLAG) -tWM -D__WXMSW__ $(__WXUNIV_DEFINE_p) \ | |
37 | $(__DEBUG_DEFINE_p) $(__UNICODE_DEFINE_p) -I..\..\src\svg\..\..\..\include \ | |
38 | -I$(SETUPHDIR) -I..\..\src\svg\..\..\include $(CXXFLAGS) -Hu \ | |
39 | -H=$(OBJS)\wxprec_svglib.csm | |
0ca4ab85 VS |
40 | SVGLIB_OBJECTS = \ |
41 | $(OBJS)\svglib_dummy.obj \ | |
42 | $(OBJS)\svglib_dcsvg.obj | |
43 | ||
44 | ### Conditionally set variables: ### | |
45 | ||
75a0a7b7 VS |
46 | !if "$(SHARED)" == "0" |
47 | LIBDIRNAME = ..\..\src\svg\..\..\..\lib\bcc_lib$(CFG) | |
48 | !endif | |
49 | !if "$(SHARED)" == "1" | |
50 | LIBDIRNAME = ..\..\src\svg\..\..\..\lib\bcc_dll$(CFG) | |
51 | !endif | |
0ca4ab85 VS |
52 | !if "$(USE_GUI)" == "0" |
53 | PORTNAME = base | |
54 | !endif | |
55 | !if "$(USE_GUI)" == "1" | |
56 | PORTNAME = msw | |
57 | !endif | |
58 | !if "$(OFFICIAL_BUILD)" == "0" | |
59 | VENDORTAG = _$(VENDOR) | |
60 | !endif | |
61 | !if "$(OFFICIAL_BUILD)" == "1" | |
62 | VENDORTAG = | |
63 | !endif | |
3f55f5b8 VS |
64 | !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default" |
65 | WXDEBUGFLAG = d | |
66 | !endif | |
67 | !if "$(DEBUG_FLAG)" == "1" | |
0ca4ab85 VS |
68 | WXDEBUGFLAG = d |
69 | !endif | |
70 | !if "$(SHARED)" == "1" | |
71 | WXDLLFLAG = dll | |
72 | !endif | |
73 | !if "$(UNICODE)" == "1" | |
74 | WXUNICODEFLAG = u | |
75 | !endif | |
76 | !if "$(WXUNIV)" == "1" | |
77 | WXUNIVNAME = univ | |
78 | !endif | |
3f55f5b8 VS |
79 | !if "$(BUILD)" == "debug" && "$(DEBUG_INFO)" == "default" |
80 | __DEBUGINFO = -v | |
0ca4ab85 | 81 | !endif |
3f55f5b8 VS |
82 | !if "$(BUILD)" == "release" && "$(DEBUG_INFO)" == "default" |
83 | __DEBUGINFO = -v- | |
0ca4ab85 | 84 | !endif |
3f55f5b8 VS |
85 | !if "$(DEBUG_INFO)" == "0" |
86 | __DEBUGINFO = -v- | |
87 | !endif | |
88 | !if "$(DEBUG_INFO)" == "1" | |
89 | __DEBUGINFO = -v | |
90 | !endif | |
91 | !if "$(BUILD)" == "debug" && "$(DEBUG_FLAG)" == "default" | |
92 | __DEBUG_DEFINE_p = -D__WXDEBUG__ | |
93 | !endif | |
94 | !if "$(DEBUG_FLAG)" == "1" | |
0ca4ab85 VS |
95 | __DEBUG_DEFINE_p = -D__WXDEBUG__ |
96 | !endif | |
97 | !if "$(USE_GUI)" == "1" | |
98 | __LIB_JPEG_p = wxjpeg$(WXDEBUGFLAG).lib | |
99 | !endif | |
100 | !if "$(USE_GUI)" == "1" | |
101 | __LIB_PNG_p = wxpng$(WXDEBUGFLAG).lib | |
102 | !endif | |
103 | !if "$(USE_GUI)" == "1" | |
104 | __LIB_TIFF_p = wxtiff$(WXDEBUGFLAG).lib | |
105 | !endif | |
106 | !if "$(BUILD)" == "debug" | |
107 | __OPTIMIZEFLAG = -Od | |
108 | !endif | |
109 | !if "$(BUILD)" == "release" | |
110 | __OPTIMIZEFLAG = -O2 | |
111 | !endif | |
112 | !if "$(RUNTIME_LIBS)" == "dynamic" | |
113 | __RUNTIME_LIBS = -tWR | |
114 | !endif | |
115 | !if "$(RUNTIME_LIBS)" == "static" | |
116 | __RUNTIME_LIBS = | |
117 | !endif | |
118 | !if "$(RUNTIME_LIBS)" == "dynamic" | |
119 | __RUNTIME_LIBS_7 = i | |
120 | !endif | |
121 | !if "$(RUNTIME_LIBS)" == "static" | |
122 | __RUNTIME_LIBS_7 = | |
123 | !endif | |
124 | !if "$(UNICODE)" == "1" | |
ec08d395 | 125 | __UNICODE_DEFINE_p = -D_UNICODE |
0ca4ab85 | 126 | !endif |
2265a2d5 VS |
127 | !if "$(MSLU)" == "1" |
128 | __UNICOWS_LIB_p = unicows.lib | |
129 | !endif | |
0ca4ab85 VS |
130 | !if "$(MONOLITHIC)" == "0" |
131 | __WXLIB_BASE_p = wxbase25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib | |
132 | !endif | |
133 | !if "$(MONOLITHIC)" == "0" | |
134 | __WXLIB_CORE_p = \ | |
135 | wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_core.lib | |
136 | !endif | |
137 | !if "$(MONOLITHIC)" == "1" | |
138 | __WXLIB_MONO_p = \ | |
139 | wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib | |
140 | !endif | |
141 | !if "$(WXUNIV)" == "1" | |
142 | __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__ | |
143 | !endif | |
144 | !if "$(SHARED)" == "1" | |
145 | __svgdll___depname = \ | |
ec08d395 | 146 | $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)251$(WXUNICODEFLAG)$(WXDEBUGFLAG)_svg_bcc$(VENDORTAG).dll |
0ca4ab85 VS |
147 | !endif |
148 | !if "$(SHARED)" == "0" | |
149 | __svglib___depname = \ | |
150 | $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_svg.lib | |
151 | !endif | |
152 | ||
153 | ||
154 | all: $(OBJS) | |
155 | $(OBJS): | |
156 | -if not exist $(OBJS) mkdir $(OBJS) | |
157 | ||
158 | ### Targets: ### | |
159 | ||
160 | all: $(__svgdll___depname) $(__svglib___depname) | |
161 | ||
162 | $(OBJS)\svgdll_dcsvg.obj: ../../src/svg\dcsvg.cpp | |
163 | $(CXX) -q -c -P -o$@ $(SVGDLL_CXXFLAGS) $** | |
164 | ||
165 | $(OBJS)\svgdll_dummy.obj: ../../src/svg\..\..\..\src\msw\dummy.cpp | |
166 | $(CXX) -q -c -P -o$@ $(SVGDLL_CXXFLAGS) -H $** | |
167 | ||
168 | $(OBJS)\svglib_dcsvg.obj: ../../src/svg\dcsvg.cpp | |
169 | $(CXX) -q -c -P -o$@ $(SVGLIB_CXXFLAGS) $** | |
170 | ||
171 | $(OBJS)\svglib_dummy.obj: ../../src/svg\..\..\..\src\msw\dummy.cpp | |
172 | $(CXX) -q -c -P -o$@ $(SVGLIB_CXXFLAGS) -H $** | |
173 | ||
174 | clean: | |
175 | -if exist $(OBJS)\*.obj del $(OBJS)\*.obj | |
176 | -if exist $(OBJS)\*.res del $(OBJS)\*.res | |
ec08d395 JS |
177 | -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)251$(WXUNICODEFLAG)$(WXDEBUGFLAG)_svg_bcc$(VENDORTAG).dll del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)251$(WXUNICODEFLAG)$(WXDEBUGFLAG)_svg_bcc$(VENDORTAG).dll |
178 | -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)251$(WXUNICODEFLAG)$(WXDEBUGFLAG)_svg_bcc$(VENDORTAG).tds del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)251$(WXUNICODEFLAG)$(WXDEBUGFLAG)_svg_bcc$(VENDORTAG).tds | |
179 | -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)251$(WXUNICODEFLAG)$(WXDEBUGFLAG)_svg_bcc$(VENDORTAG).ilc del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)251$(WXUNICODEFLAG)$(WXDEBUGFLAG)_svg_bcc$(VENDORTAG).ilc | |
180 | -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)251$(WXUNICODEFLAG)$(WXDEBUGFLAG)_svg_bcc$(VENDORTAG).ild del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)251$(WXUNICODEFLAG)$(WXDEBUGFLAG)_svg_bcc$(VENDORTAG).ild | |
181 | -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)251$(WXUNICODEFLAG)$(WXDEBUGFLAG)_svg_bcc$(VENDORTAG).ilf del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)251$(WXUNICODEFLAG)$(WXDEBUGFLAG)_svg_bcc$(VENDORTAG).ilf | |
182 | -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)251$(WXUNICODEFLAG)$(WXDEBUGFLAG)_svg_bcc$(VENDORTAG).ils del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)251$(WXUNICODEFLAG)$(WXDEBUGFLAG)_svg_bcc$(VENDORTAG).ils | |
0ca4ab85 VS |
183 | -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_svg.lib del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_svg.lib |
184 | -if exist $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_svg.lib del $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_svg.lib | |
185 | ||
186 | !if "$(SHARED)" == "1" | |
ec08d395 | 187 | $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)251$(WXUNICODEFLAG)$(WXDEBUGFLAG)_svg_bcc$(VENDORTAG).dll: $(OBJS)\svgdll_dummy.obj $(SVGDLL_OBJECTS) |
1c3a6972 | 188 | ilink32 -Tpd -q $(LDFLAGS) -L$(BCCDIR)\lib $(__DEBUGINFO) -L$(LIBDIRNAME) @&&| |
ec08d395 | 189 | c0d32.obj $(SVGDLL_OBJECTS),$@,, $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) wxzlib$(WXDEBUGFLAG).lib wxregex$(WXDEBUGFLAG).lib wxexpat$(WXDEBUGFLAG).lib $(__UNICOWS_LIB_p) ole2w32.lib oleacc.lib $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) import32.lib cw32mt$(__RUNTIME_LIBS_7).lib,, |
0ca4ab85 VS |
190 | | |
191 | implib -f $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_svg $@ | |
192 | !endif | |
193 | ||
194 | !if "$(SHARED)" == "0" | |
75a0a7b7 | 195 | $(LIBDIRNAME)\wx$(PORTNAME)$(WXUNIVNAME)25$(WXUNICODEFLAG)$(WXDEBUGFLAG)_svg.lib: $(OBJS)\svglib_dummy.obj $(SVGLIB_OBJECTS) |
0ca4ab85 VS |
196 | if exist $@ del $@ |
197 | tlib /a /p2048 $@ @&&| | |
198 | $(SVGLIB_OBJECTS) | |
199 | | | |
200 | !endif |