[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 :     # To build gforth from scratch you need autoconf and automake.
25 :     # This file can be used as shell script. If you make the environment
26 : pazsan 1.2 # variable GFORTH point to an existing gforth installation, this
27 : jwilke 1.1 # script takes over kernel and primitve files.
28 :    
29 : pazsan 1.2 # try to guess a previous version of Gforth
30 :    
31 :     if [ "$GFORTH" == "" ]
32 :     then
33 :     GFORTH=`which gforth`
34 :     fi
35 :    
36 : jwilke 1.1 # makes a aclocal.m4 which includes the automake macros for autconf
37 :    
38 :     aclocal
39 :    
40 :     # generate configure script
41 :    
42 :     autoconf
43 :    
44 :     # generate header files like engine/config.h.in
45 :    
46 :     autoheader
47 :    
48 : pazsan 1.2 # run configure script
49 : jwilke 1.1
50 : pazsan 1.2 ./configure $*
51 : jwilke 1.1
52 : pazsan 1.2 # if you have specified a previous Gforth, you can savely run make now
53 :     # with FORTHK and FORTHP changed appropriate.
54 : jwilke 1.1
55 : pazsan 1.2 if [ "$GFORTH" != "" ]
56 :     then
57 :     make FORTHK="$GFORTH"
58 : jwilke 1.1 fi

CVS Admin

Powered by ViewCVS 1.0-dev
(Powered by ViewCVS)

ViewCVS and CVS Help