1: # Procedures to build gforth from the CVS sources
2:
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: #Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111, USA.
20:
21:
22: # created: 2may00jaw
23:
24: # To build gforth from scratch you need autoconf, automake and a
25: # gforth0.5.0
26: # This file can be used as shell script. If you make the environment
27: # variable GFORTH point to an existing gforth installation, this
28: # script takes over the whole build process and will produce the
29: # kernel kernel images from the sources as well
30:
31: # try to guess a installed gforth
32:
33: if [ "$GFORTH"xx = "xx" ];
34: then
35: GFORTH=`which gforth`
36: fi
37:
38: # makes a aclocal.m4 which includes the automake macros for autconf
39:
40: aclocal
41:
42: # generate configure script
43:
44: autoconf
45:
46: # generate header files like engine/config.h.in
47:
48: autoheader
49:
50: # run configure sXScript
51:
52: ./configure $*
53:
54: # if you have specified a previous Gforth, you can savely run make now
55: # with FORTHK and FORTHP changed appropriate.
56:
57: echo xz
58: if [ "$GFORTH"xx != "xx" ]
59: then
60: echo Running: make BUILDFORTH="$GFORTH" gforth...
61: make BUILDFORTH="$GFORTH" gforth
62: echo Running: make BUILDFORTH="$GFORTH" all...
63: make BUILDFORTH="$GFORTH" all
64: fi
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>