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

CVS Admin

Powered by ViewCVS 1.0-dev
(Powered by ViewCVS)

ViewCVS and CVS Help