1 | @ECHO OFF |
---|
2 | |
---|
3 | REM ~ Copyright 2002-2005 Rene Rivera. |
---|
4 | REM ~ Distributed under the Boost Software License, Version 1.0. |
---|
5 | REM ~ (See accompanying file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt) |
---|
6 | |
---|
7 | setlocal |
---|
8 | goto Start |
---|
9 | |
---|
10 | REM NOTE: The "setlocal & endlocal" construct is used to reset the errorlevel to 0. |
---|
11 | REM NOTE: The "set _error_=" construct is used to set the errorlevel to 1 |
---|
12 | |
---|
13 | :Error_Print |
---|
14 | REM Output an error message and set the errorlevel to indicate failure. |
---|
15 | setlocal |
---|
16 | ECHO ### |
---|
17 | ECHO ### %1 |
---|
18 | ECHO ### |
---|
19 | ECHO ### You can specify the toolset as the argument, i.e.: |
---|
20 | ECHO ### .\build.bat msvc |
---|
21 | ECHO ### |
---|
22 | ECHO ### Toolsets supported by this script are: borland, como, gcc, gcc-nocygwin, intel-win32, metrowerks, mingw, msvc, vc7 |
---|
23 | ECHO ### |
---|
24 | set _error_= |
---|
25 | endlocal |
---|
26 | goto :eof |
---|
27 | |
---|
28 | :Test_Path |
---|
29 | REM Tests for the given file(executable) presence in the directories in the PATH |
---|
30 | REM environment variable. Additionaly sets FOUND_PATH to the path of the |
---|
31 | REM found file. |
---|
32 | setlocal & endlocal |
---|
33 | setlocal |
---|
34 | set test=%~$PATH:1 |
---|
35 | endlocal |
---|
36 | if not errorlevel 1 set FOUND_PATH=%~dp$PATH:1 |
---|
37 | goto :eof |
---|
38 | |
---|
39 | :Test_Option |
---|
40 | REM Tests wether the given string is in the form of an option: "-*" |
---|
41 | setlocal & endlocal |
---|
42 | setlocal |
---|
43 | set test=%1 |
---|
44 | if not "-" == "%test:~0,1%" set _error_= |
---|
45 | endlocal |
---|
46 | goto :eof |
---|
47 | |
---|
48 | :Guess_Toolset |
---|
49 | REM Try and guess the toolset to bootstrap the build with... |
---|
50 | REM Sets BOOST_JAM_TOOLSET to the first found toolset. |
---|
51 | REM May also set BOOST_JAM_TOOLSET_ROOT to the |
---|
52 | REM location of the found toolset. |
---|
53 | setlocal & endlocal |
---|
54 | if NOT "_%VS71COMNTOOLS%_" == "__" ( |
---|
55 | set BOOST_JAM_TOOLSET=vc7 |
---|
56 | set BOOST_JAM_TOOLSET_ROOT=%VS71COMNTOOLS%\..\..\VC7\ |
---|
57 | goto :eof) |
---|
58 | setlocal & endlocal |
---|
59 | if NOT "_%VCINSTALLDIR%_" == "__" ( |
---|
60 | set BOOST_JAM_TOOLSET=vc7 |
---|
61 | set BOOST_JAM_TOOLSET_ROOT=%VCINSTALLDIR%\VC7\ |
---|
62 | goto :eof) |
---|
63 | setlocal & endlocal |
---|
64 | if EXIST "%ProgramFiles%\Microsoft Visual Studio .NET 2003\VC7\bin\VCVARS32.BAT" ( |
---|
65 | set BOOST_JAM_TOOLSET=vc7 |
---|
66 | set BOOST_JAM_TOOLSET_ROOT=%ProgramFiles%\Microsoft Visual Studio .NET 2003\VC7\ |
---|
67 | goto :eof) |
---|
68 | setlocal & endlocal |
---|
69 | if EXIST "C:\Program Files\Microsoft Visual Studio .NET 2003\VC7\bin\VCVARS32.BAT" ( |
---|
70 | set BOOST_JAM_TOOLSET=vc7 |
---|
71 | set BOOST_JAM_TOOLSET_ROOT=C:\Program Files\Microsoft Visual Studio .NET 2003\VC7\ |
---|
72 | goto :eof) |
---|
73 | setlocal & endlocal |
---|
74 | if EXIST "%ProgramFiles%\Microsoft Visual Studio .NET\VC7\bin\VCVARS32.BAT" ( |
---|
75 | set BOOST_JAM_TOOLSET=vc7 |
---|
76 | set BOOST_JAM_TOOLSET_ROOT=%ProgramFiles%\Microsoft Visual Studio .NET\VC7\ |
---|
77 | goto :eof) |
---|
78 | setlocal & endlocal |
---|
79 | if EXIST "C:\Program Files\Microsoft Visual Studio .NET\VC7\bin\VCVARS32.BAT" ( |
---|
80 | set BOOST_JAM_TOOLSET=vc7 |
---|
81 | set BOOST_JAM_TOOLSET_ROOT=C:\Program Files\Microsoft Visual Studio .NET\VC7\ |
---|
82 | goto :eof) |
---|
83 | setlocal & endlocal |
---|
84 | if NOT "_%MSVCDir%_" == "__" ( |
---|
85 | set BOOST_JAM_TOOLSET=msvc |
---|
86 | set BOOST_JAM_TOOLSET_ROOT=%MSVCDir%\ |
---|
87 | goto :eof) |
---|
88 | setlocal & endlocal |
---|
89 | if EXIST "%ProgramFiles%\Microsoft Visual Studio\VC98\bin\VCVARS32.BAT" ( |
---|
90 | set BOOST_JAM_TOOLSET=msvc |
---|
91 | set BOOST_JAM_TOOLSET_ROOT=%ProgramFiles%\Microsoft Visual Studio\VC98\ |
---|
92 | goto :eof) |
---|
93 | setlocal & endlocal |
---|
94 | if EXIST "C:\Program Files\Microsoft Visual Studio\VC98\bin\VCVARS32.BAT" ( |
---|
95 | set BOOST_JAM_TOOLSET=msvc |
---|
96 | set BOOST_JAM_TOOLSET_ROOT=C:\Program Files\Microsoft Visual Studio\VC98\ |
---|
97 | goto :eof) |
---|
98 | setlocal & endlocal |
---|
99 | if EXIST "%ProgramFiles%\Microsoft Visual C++\VC98\bin\VCVARS32.BAT" ( |
---|
100 | set BOOST_JAM_TOOLSET=msvc |
---|
101 | set BOOST_JAM_TOOLSET_ROOT=%ProgramFiles%\Microsoft Visual C++\VC98\ |
---|
102 | goto :eof) |
---|
103 | setlocal & endlocal |
---|
104 | if EXIST "C:\Program Files\Microsoft Visual C++\VC98\bin\VCVARS32.BAT" ( |
---|
105 | set BOOST_JAM_TOOLSET=msvc |
---|
106 | set BOOST_JAM_TOOLSET_ROOT=C:\Program Files\Microsoft Visual C++\VC98\ |
---|
107 | goto :eof) |
---|
108 | setlocal & endlocal |
---|
109 | call :Test_Path cl.exe |
---|
110 | if not errorlevel 1 ( |
---|
111 | set BOOST_JAM_TOOLSET=msvc |
---|
112 | set BOOST_JAM_TOOLSET_ROOT=%FOUND_PATH%..\ |
---|
113 | goto :eof) |
---|
114 | setlocal & endlocal |
---|
115 | call :Test_Path vcvars32.bat |
---|
116 | if not errorlevel 1 ( |
---|
117 | set BOOST_JAM_TOOLSET=msvc |
---|
118 | call "%FOUND_PATH%VCVARS32.BAT" |
---|
119 | set BOOST_JAM_TOOLSET_ROOT=%MSVCDir%\ |
---|
120 | goto :eof) |
---|
121 | setlocal & endlocal |
---|
122 | if EXIST "C:\Borland\BCC55\Bin\bcc32.exe" ( |
---|
123 | set BOOST_JAM_TOOLSET=borland |
---|
124 | set BOOST_JAM_TOOLSET_ROOT=C:\Borland\BCC55\ |
---|
125 | goto :eof) |
---|
126 | setlocal & endlocal |
---|
127 | call :Test_Path bcc32.exe |
---|
128 | if not errorlevel 1 ( |
---|
129 | set BOOST_JAM_TOOLSET=borland |
---|
130 | set BOOST_JAM_TOOLSET_ROOT=%FOUND_PATH%..\ |
---|
131 | goto :eof) |
---|
132 | setlocal & endlocal |
---|
133 | call :Test_Path icl.exe |
---|
134 | if not errorlevel 1 ( |
---|
135 | set BOOST_JAM_TOOLSET=intel-win32 |
---|
136 | set BOOST_JAM_TOOLSET_ROOT=%FOUND_PATH%..\ |
---|
137 | goto :eof) |
---|
138 | setlocal & endlocal |
---|
139 | if EXIST "C:\MinGW\bin\gcc.exe" ( |
---|
140 | set BOOST_JAM_TOOLSET=mingw |
---|
141 | set BOOST_JAM_TOOLSET_ROOT=C:\MinGW\ |
---|
142 | goto :eof) |
---|
143 | setlocal & endlocal |
---|
144 | if NOT "_%CWFolder%_" == "__" ( |
---|
145 | set BOOST_JAM_TOOLSET=metrowerks |
---|
146 | set BOOST_JAM_TOOLSET_ROOT=%CWFolder%\ |
---|
147 | goto :eof ) |
---|
148 | setlocal & endlocal |
---|
149 | call :Test_Path mwcc.exe |
---|
150 | if not errorlevel 1 ( |
---|
151 | set BOOST_JAM_TOOLSET=metrowerks |
---|
152 | set BOOST_JAM_TOOLSET_ROOT=%FOUND_PATH%..\..\ |
---|
153 | goto :eof) |
---|
154 | setlocal & endlocal |
---|
155 | call :Error_Print "Could not find a suitable toolset." |
---|
156 | goto :eof |
---|
157 | |
---|
158 | :Guess_Yacc |
---|
159 | REM Tries to find bison or yacc in common places so we can build the grammar. |
---|
160 | setlocal & endlocal |
---|
161 | call :Test_Path yacc.exe |
---|
162 | if not errorlevel 1 ( |
---|
163 | set YACC=yacc -d |
---|
164 | goto :eof) |
---|
165 | setlocal & endlocal |
---|
166 | call :Test_Path bison.exe |
---|
167 | if not errorlevel 1 ( |
---|
168 | set YACC=bison -d --yacc |
---|
169 | goto :eof) |
---|
170 | setlocal & endlocal |
---|
171 | if EXIST "C:\Program Files\GnuWin32\bin\bison.exe" ( |
---|
172 | set YACC="C:\Program Files\GnuWin32\bin\bison.exe" -d --yacc |
---|
173 | goto :eof) |
---|
174 | setlocal & endlocal |
---|
175 | call :Error_Print "Could not find Yacc to build the Jam grammar." |
---|
176 | goto :eof |
---|
177 | |
---|
178 | :Start |
---|
179 | set BOOST_JAM_TOOLSET= |
---|
180 | |
---|
181 | REM If no arguments guess the toolset; |
---|
182 | REM or if first argument is an option guess the toolset; |
---|
183 | REM otherwise the argument is the toolset to use. |
---|
184 | if "_%1_" == "__" ( |
---|
185 | call :Guess_Toolset |
---|
186 | if not errorlevel 1 goto Setup_Toolset |
---|
187 | ) else ( |
---|
188 | call :Test_Option %1 |
---|
189 | if not errorlevel 1 ( |
---|
190 | call :Guess_Toolset |
---|
191 | if not errorlevel 1 goto Setup_Toolset |
---|
192 | ) else ( |
---|
193 | setlocal & endlocal |
---|
194 | set BOOST_JAM_TOOLSET=%1 |
---|
195 | shift |
---|
196 | goto Setup_Toolset |
---|
197 | ) |
---|
198 | ) |
---|
199 | if errorlevel 1 goto Finish |
---|
200 | |
---|
201 | :Setup_Toolset |
---|
202 | REM Setup the toolset command and options. This bit of code |
---|
203 | REM needs to be flexible enough to handle both when |
---|
204 | REM the toolset was guessed at and found, or when the toolset |
---|
205 | REM was indicated in the command arguments. |
---|
206 | REM NOTE: The strange multiple "if ?? == _toolset_" tests are that way |
---|
207 | REM because in BAT variables are subsituted only once during a single |
---|
208 | REM command. A complete "if ... ( commands ) else ( commands )" |
---|
209 | REM is a single command, even though it's in multiple lines here. |
---|
210 | if "_%BOOST_JAM_TOOLSET%_" == "_metrowerks_" ( |
---|
211 | if NOT "_%CWFolder%_" == "__" ( |
---|
212 | set BOOST_JAM_TOOLSET_ROOT=%CWFolder%\) ) |
---|
213 | if "_%BOOST_JAM_TOOLSET%_" == "_metrowerks_" ( |
---|
214 | if not "_%BOOST_JAM_TOOLSET_ROOT%_" == "__" ( |
---|
215 | set PATH=%BOOST_JAM_TOOLSET_ROOT%Other Metrowerks Tools\Command Line Tools;%PATH%) |
---|
216 | set BOOST_JAM_CC=mwcc -runtime ss -cwd include -DNT -ladvapi32.lib |
---|
217 | set BOOST_JAM_OPT_JAM=-o bootstrap\jam0.exe |
---|
218 | set BOOST_JAM_OPT_MKJAMBASE=-o bootstrap\mkjambase0.exe |
---|
219 | set BOOST_JAM_OPT_YYACC=-o bootstrap\yyacc0.exe |
---|
220 | set _known_=1 |
---|
221 | ) |
---|
222 | if "_%BOOST_JAM_TOOLSET%_" == "_msvc_" ( |
---|
223 | if NOT "_%MSVCDir%_" == "__" ( |
---|
224 | set BOOST_JAM_TOOLSET_ROOT=%MSVCDir%\) ) |
---|
225 | if "_%BOOST_JAM_TOOLSET%_" == "_msvc_" ( |
---|
226 | if EXIST "%BOOST_JAM_TOOLSET_ROOT%bin\VCVARS32.BAT" ( |
---|
227 | call "%BOOST_JAM_TOOLSET_ROOT%bin\VCVARS32.BAT" ) ) |
---|
228 | if "_%BOOST_JAM_TOOLSET%_" == "_msvc_" ( |
---|
229 | if not "_%BOOST_JAM_TOOLSET_ROOT%_" == "__" ( |
---|
230 | set PATH=%BOOST_JAM_TOOLSET_ROOT%bin;%PATH%) |
---|
231 | set BOOST_JAM_CC=cl /nologo /GZ /Zi /MLd -DNT -DYYDEBUG kernel32.lib advapi32.lib |
---|
232 | set BOOST_JAM_OPT_JAM=/Febootstrap\jam0 |
---|
233 | set BOOST_JAM_OPT_MKJAMBASE=/Febootstrap\mkjambase0 |
---|
234 | set BOOST_JAM_OPT_YYACC=/Febootstrap\yyacc0 |
---|
235 | set _known_=1 |
---|
236 | ) |
---|
237 | if "_%BOOST_JAM_TOOLSET%_" == "_vc7_" ( |
---|
238 | if NOT "_%MSVCDir%_" == "__" ( |
---|
239 | set BOOST_JAM_TOOLSET_ROOT=%MSVCDir%\) ) |
---|
240 | if "_%BOOST_JAM_TOOLSET%_" == "_vc7_" ( |
---|
241 | if EXIST "%BOOST_JAM_TOOLSET_ROOT%bin\VCVARS32.BAT" ( |
---|
242 | call "%BOOST_JAM_TOOLSET_ROOT%bin\VCVARS32.BAT" ) ) |
---|
243 | if "_%BOOST_JAM_TOOLSET%_" == "_vc7_" ( |
---|
244 | if not "_%BOOST_JAM_TOOLSET_ROOT%_" == "__" ( |
---|
245 | set PATH=%BOOST_JAM_TOOLSET_ROOT%bin;%PATH%) |
---|
246 | set BOOST_JAM_CC=cl /nologo /GZ /Zi /MLd -DNT -DYYDEBUG kernel32.lib advapi32.lib |
---|
247 | set BOOST_JAM_OPT_JAM=/Febootstrap\jam0 |
---|
248 | set BOOST_JAM_OPT_MKJAMBASE=/Febootstrap\mkjambase0 |
---|
249 | set BOOST_JAM_OPT_YYACC=/Febootstrap\yyacc0 |
---|
250 | set _known_=1 |
---|
251 | ) |
---|
252 | if "_%BOOST_JAM_TOOLSET%_" == "_borland_" ( |
---|
253 | if "_%BOOST_JAM_TOOLSET_ROOT%_" == "__" ( |
---|
254 | call :Test_Path bcc32.exe ) ) |
---|
255 | if "_%BOOST_JAM_TOOLSET%_" == "_borland_" ( |
---|
256 | if "_%BOOST_JAM_TOOLSET_ROOT%_" == "__" ( |
---|
257 | if not errorlevel 1 ( |
---|
258 | set BOOST_JAM_TOOLSET_ROOT=%FOUND_PATH%..\) ) ) |
---|
259 | if "_%BOOST_JAM_TOOLSET%_" == "_borland_" ( |
---|
260 | if not "_%BOOST_JAM_TOOLSET_ROOT%_" == "__" (set PATH=%BOOST_JAM_TOOLSET_ROOT%Bin;%PATH%) |
---|
261 | set BOOST_JAM_CC=bcc32 -WC -w- -q "-I%BOOST_JAM_TOOLSET_ROOT%Include" "-L%BOOST_JAM_TOOLSET_ROOT%Lib" /DNT -nbootstrap |
---|
262 | set BOOST_JAM_OPT_JAM=-ejam0 |
---|
263 | set BOOST_JAM_OPT_MKJAMBASE=-emkjambasejam0 |
---|
264 | set BOOST_JAM_OPT_YYACC=-eyyacc0 |
---|
265 | set _known_=1 |
---|
266 | ) |
---|
267 | if "_%BOOST_JAM_TOOLSET%_" == "_como_" ( |
---|
268 | set BOOST_JAM_CC=como -DNT |
---|
269 | set BOOST_JAM_OPT_JAM=-o bootstrap\jam0.exe |
---|
270 | set BOOST_JAM_OPT_MKJAMBASE=-o bootstrap\mkjambase0.exe |
---|
271 | set BOOST_JAM_OPT_YYACC=-o bootstrap\yyacc0.exe |
---|
272 | set _known_=1 |
---|
273 | ) |
---|
274 | if "_%BOOST_JAM_TOOLSET%_" == "_gcc_" ( |
---|
275 | set BOOST_JAM_CC=gcc -DNT |
---|
276 | set BOOST_JAM_OPT_JAM=-o bootstrap\jam0.exe |
---|
277 | set BOOST_JAM_OPT_MKJAMBASE=-o bootstrap\mkjambase0.exe |
---|
278 | set BOOST_JAM_OPT_YYACC=-o bootstrap\yyacc0.exe |
---|
279 | set _known_=1 |
---|
280 | ) |
---|
281 | if "_%BOOST_JAM_TOOLSET%_" == "_gcc-nocygwin_" ( |
---|
282 | set BOOST_JAM_CC=gcc -DNT -mno-cygwin |
---|
283 | set BOOST_JAM_OPT_JAM=-o bootstrap\jam0.exe |
---|
284 | set BOOST_JAM_OPT_MKJAMBASE=-o bootstrap\mkjambase0.exe |
---|
285 | set BOOST_JAM_OPT_YYACC=-o bootstrap\yyacc0.exe |
---|
286 | set _known_=1 |
---|
287 | ) |
---|
288 | if "_%BOOST_JAM_TOOLSET%_" == "_intel-win32_" ( |
---|
289 | set BOOST_JAM_CC=icl -DNT /nologo |
---|
290 | set BOOST_JAM_OPT_JAM=/Febootstrap\jam0 |
---|
291 | set BOOST_JAM_OPT_MKJAMBASE=/Febootstrap\mkjambase0 |
---|
292 | set BOOST_JAM_OPT_YYACC=/Febootstrap\yyacc0 |
---|
293 | set _known_=1 |
---|
294 | ) |
---|
295 | if "_%BOOST_JAM_TOOLSET%_" == "_mingw_" ( |
---|
296 | if not "_%BOOST_JAM_TOOLSET_ROOT%_" == "__" (set PATH=%BOOST_JAM_TOOLSET_ROOT%bin;%PATH%) |
---|
297 | set BOOST_JAM_CC=gcc -DNT |
---|
298 | set BOOST_JAM_OPT_JAM=-o bootstrap\jam0.exe |
---|
299 | set BOOST_JAM_OPT_MKJAMBASE=-o bootstrap\mkjambase0.exe |
---|
300 | set BOOST_JAM_OPT_YYACC=-o bootstrap\yyacc0.exe |
---|
301 | set _known_=1 |
---|
302 | ) |
---|
303 | if "_%_known_%_" == "__" ( |
---|
304 | call :Error_Print "Unknown toolset: %BOOST_JAM_TOOLSET%" |
---|
305 | ) |
---|
306 | if errorlevel 1 goto Finish |
---|
307 | |
---|
308 | echo ### |
---|
309 | echo ### Using '%BOOST_JAM_TOOLSET%' toolset. |
---|
310 | echo ### |
---|
311 | |
---|
312 | set YYACC_SOURCES=yyacc.c |
---|
313 | set MKJAMBASE_SOURCES=mkjambase.c |
---|
314 | set BJAM_SOURCES= |
---|
315 | set BJAM_SOURCES=%BJAM_SOURCES% command.c compile.c execnt.c execunix.c execvms.c expand.c |
---|
316 | set BJAM_SOURCES=%BJAM_SOURCES% filent.c fileos2.c fileunix.c filevms.c glob.c hash.c |
---|
317 | set BJAM_SOURCES=%BJAM_SOURCES% hdrmacro.c headers.c jam.c jambase.c jamgram.c lists.c make.c make1.c |
---|
318 | set BJAM_SOURCES=%BJAM_SOURCES% newstr.c option.c parse.c pathunix.c pathvms.c regexp.c |
---|
319 | set BJAM_SOURCES=%BJAM_SOURCES% rules.c scan.c search.c subst.c timestamp.c variable.c modules.c |
---|
320 | set BJAM_SOURCES=%BJAM_SOURCES% strings.c filesys.c builtins.c pwd.c class.c w32_getreg.c native.c |
---|
321 | set BJAM_SOURCES=%BJAM_SOURCES% modules/set.c modules/path.c modules/regex.c |
---|
322 | set BJAM_SOURCES=%BJAM_SOURCES% modules/property-set.c modules/sequence.c modules/order.c |
---|
323 | |
---|
324 | set BJAM_UPDATE= |
---|
325 | if "_%1" == "_--update" ( |
---|
326 | set BJAM_UPDATE=update |
---|
327 | ) |
---|
328 | if "_%2" == "_--update" ( |
---|
329 | set BJAM_UPDATE=update |
---|
330 | ) |
---|
331 | if "_%3" == "_--update" ( |
---|
332 | set BJAM_UPDATE=update |
---|
333 | ) |
---|
334 | if "_%4" == "_--update" ( |
---|
335 | set BJAM_UPDATE=update |
---|
336 | ) |
---|
337 | if "_%BJAM_UPDATE%_" == "_update_" ( |
---|
338 | if not exist ".\bootstrap\jam0.exe" ( |
---|
339 | set BJAM_UPDATE= |
---|
340 | ) |
---|
341 | ) |
---|
342 | |
---|
343 | |
---|
344 | @echo ON |
---|
345 | @if "_%BJAM_UPDATE%_" == "_update_" goto Skip_Bootstrap |
---|
346 | rd /S /Q bootstrap |
---|
347 | md bootstrap |
---|
348 | @if not exist jamgram.y goto Bootstrap_GrammarPrep |
---|
349 | @if not exist jamgramtab.h goto Bootstrap_GrammarPrep |
---|
350 | @goto Skip_GrammarPrep |
---|
351 | :Bootstrap_GrammarPrep |
---|
352 | %BOOST_JAM_CC% %BOOST_JAM_OPT_YYACC% %YYACC_SOURCES% |
---|
353 | @if not exist ".\bootstrap\yyacc0.exe" goto Skip_GrammarPrep |
---|
354 | .\bootstrap\yyacc0 jamgram.y jamgramtab.h jamgram.yy |
---|
355 | :Skip_GrammarPrep |
---|
356 | @if not exist jamgram.c goto Bootstrap_GrammarBuild |
---|
357 | @if not exist jamgram.h goto Bootstrap_GrammarBuild |
---|
358 | @goto Skip_GrammarBuild |
---|
359 | :Bootstrap_GrammarBuild |
---|
360 | @echo OFF |
---|
361 | if "_%YACC%_" == "__" ( |
---|
362 | call :Guess_Yacc |
---|
363 | ) |
---|
364 | if errorlevel 1 goto Finish |
---|
365 | @echo ON |
---|
366 | %YACC% jamgram.y |
---|
367 | @if errorlevel 1 goto Finish |
---|
368 | del /f jamgram.c |
---|
369 | rename y.tab.c jamgram.c |
---|
370 | del /f jamgram.h |
---|
371 | rename y.tab.h jamgram.h |
---|
372 | :Skip_GrammarBuild |
---|
373 | @echo ON |
---|
374 | @if exist jambase.c goto Skip_Jambase |
---|
375 | %BOOST_JAM_CC% %BOOST_JAM_OPT_MKJAMBASE% %MKJAMBASE_SOURCES% |
---|
376 | @if not exist ".\bootstrap\mkjambase0.exe" goto Skip_Jambase |
---|
377 | .\bootstrap\mkjambase0 jambase.c Jambase |
---|
378 | :Skip_Jambase |
---|
379 | %BOOST_JAM_CC% %BOOST_JAM_OPT_JAM% %BJAM_SOURCES% |
---|
380 | :Skip_Bootstrap |
---|
381 | @if not exist ".\bootstrap\jam0.exe" goto Skip_Jam |
---|
382 | @if "_%BJAM_UPDATE%_" == "_update_" goto Skip_Clean |
---|
383 | .\bootstrap\jam0 -f build.jam --toolset=%BOOST_JAM_TOOLSET% "--toolset-root=%BOOST_JAM_TOOLSET_ROOT% " clean |
---|
384 | :Skip_Clean |
---|
385 | .\bootstrap\jam0 -f build.jam --toolset=%BOOST_JAM_TOOLSET% "--toolset-root=%BOOST_JAM_TOOLSET_ROOT% " %1 %2 %3 %4 %5 %6 %7 %8 %9 |
---|
386 | :Skip_Jam |
---|
387 | |
---|
388 | :Finish |
---|