0.6.12.7.flaky1:
[sbcl.git] / make-target-1.sh
1 #!/bin/sh
2
3 # This is a script to be run as part of make.sh. The only time you'd
4 # want to run it by itself is if you're trying to cross-compile the
5 # system or if you're doing some kind of troubleshooting.
6
7 # This software is part of the SBCL system. See the README file for
8 # more information.
9 #
10 # This software is derived from the CMU CL system, which was
11 # written at Carnegie Mellon University and released into the
12 # public domain. The software is in the public domain and is
13 # provided with absolutely no warranty. See the COPYING and CREDITS
14 # files for more information.
15
16 echo //entering make-target-1.sh
17
18 # the GNU dialect of "make" -- easier to find or port it than to
19 # try to figure out how to port to the local dialect..
20 gnumake=${GNUMAKE:-gmake}
21
22 # Build the runtime system and symbol table (.nm) file.
23 #
24 # (This C build has to come after the first genesis in order to get
25 # the sbcl.h the C build needs, and come before the second genesis in
26 # order to produce the symbol table file that second genesis needs. It 
27 # could come either before or after running the cross compiler; that
28 # doesn't matter.)
29 echo //building runtime system and symbol table file
30 cd src/runtime
31 $gnumake clean  || exit 1
32 $gnumake depend || exit 1
33 $gnumake all    || exit 1
34 cd ../..
35
36 # Use a little C program to grab stuff from the C header files and
37 # smash it into Lisp source code.
38 cd tools-for-build
39 $gnumake grovel_headers
40 cd ..
41 tools-for-build/grovel_headers > output/stuff-groveled-from-headers.lisp