[gforth] / gforth / BUILD-FROM-SCRATCH  

gforth: gforth/BUILD-FROM-SCRATCH


1 : jwilke 1.1 # Procedures to build gforth from the CVS sources
2 : anton 1.3
3 : anton 1.11 #use this with parameters and env variables like "configure"
4 :    
5 : anton 1.21 #Copyright (C) 2000,2002,2003,2006,2007 Free Software Foundation, Inc.
6 : anton 1.3
7 :     #This file is part of Gforth.
8 :    
9 :     #Gforth is free software; you can redistribute it and/or
10 :     #modify it under the terms of the GNU General Public License
11 :     #as published by the Free Software Foundation; either version 2
12 :     #of the License, or (at your option) any later version.
13 :    
14 :     #This program is distributed in the hope that it will be useful,
15 :     #but WITHOUT ANY WARRANTY; without even the implied warranty of
16 :     #MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.#See the
17 :     #GNU General Public License for more details.
18 :    
19 :     #You should have received a copy of the GNU General Public License
20 :     #along with this program; if not, write to the Free Software
21 : anton 1.4 #Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111, USA.
22 : anton 1.3
23 :    
24 : jwilke 1.1 # created: 2may00jaw
25 :    
26 : jwilke 1.6 # To build gforth from scratch you need autoconf, automake and a
27 : anton 1.17 # gforth-0.6.2
28 : jwilke 1.1 # This file can be used as shell script. If you make the environment
29 : pazsan 1.2 # variable GFORTH point to an existing gforth installation, this
30 : jwilke 1.6 # script takes over the whole build process and will produce the
31 :     # kernel kernel images from the sources as well
32 : jwilke 1.1
33 : jwilke 1.6 # try to guess a installed gforth
34 : pazsan 1.2
35 : jwilke 1.8 if [ "$GFORTH"xx = "xx" ];
36 : pazsan 1.2 then
37 : anton 1.10 rm -f gforth
38 : pazsan 1.2 GFORTH=`which gforth`
39 : anton 1.9 if [ "$GFORTH"xx = "xx" ]; then
40 :     echo 'BUILD-FROM-SCRATCH needs a working gforth (in environment variable GFORTH)'
41 :     exit 1
42 :     fi
43 : anton 1.10 GFORTH="$GFORTH -m4M"
44 : pazsan 1.2 fi
45 :    
46 : jwilke 1.1 # makes a aclocal.m4 which includes the automake macros for autconf
47 :    
48 : anton 1.19 aclocal &&
49 : jwilke 1.1
50 :     # generate configure script
51 :    
52 : anton 1.19 autoconf &&
53 : jwilke 1.1
54 :     # generate header files like engine/config.h.in
55 :    
56 : anton 1.19 autoheader &&
57 : pazsan 1.14 echo timestamp >stamp-h.in
58 : jwilke 1.1
59 : pazsan 1.15 # run configure Script
60 : jwilke 1.1
61 : anton 1.19 ./configure "$@" &&
62 : jwilke 1.1
63 : anton 1.17 # if you have specified a previous Gforth, you can safely run make now
64 :     # with FORTHK and FORTHP changed appropriately.
65 : jwilke 1.1
66 : anton 1.10 #a local gforth.fi probably does not work with $GFORTH
67 : anton 1.19 rm -f gforth.fi &&
68 : anton 1.10
69 : jwilke 1.8 if [ "$GFORTH"xx != "xx" ]
70 : pazsan 1.2 then
71 : anton 1.20 bootstrap=engine/prim.i" "`for x in b l; do for wid in 16 32 64; do echo kernl$wid$x.fi; done; done`
72 : anton 1.19 echo 'Running: make BUILDFORTH="'$GFORTH'" FORTHP="'$GFORTH'" '$bootstrap &&
73 :     make BUILDFORTH="$GFORTH" FORTHP="$GFORTH" engine/prim.i $bootstrap &&
74 :     echo Running: make &&
75 :     make &&
76 :     make doc &&
77 :     make more
78 : jwilke 1.1 fi

CVS Admin

Powered by ViewCVS 1.0-dev
(Powered by ViewCVS)

ViewCVS and CVS Help