| 1 : |
jwilke
|
1.1
|
# Procedures to build gforth from the CVS sources |
| 2 : |
|
|
# created: 2may00jaw |
| 3 : |
|
|
|
| 4 : |
|
|
# To build gforth from scratch you need autoconf and automake. |
| 5 : |
|
|
# This file can be used as shell script. If you make the environment |
| 6 : |
pazsan
|
1.2
|
# variable GFORTH point to an existing gforth installation, this |
| 7 : |
jwilke
|
1.1
|
# script takes over kernel and primitve files. |
| 8 : |
|
|
|
| 9 : |
pazsan
|
1.2
|
# try to guess a previous version of Gforth |
| 10 : |
|
|
|
| 11 : |
|
|
if [ "$GFORTH" == "" ] |
| 12 : |
|
|
then |
| 13 : |
|
|
GFORTH=`which gforth` |
| 14 : |
|
|
fi |
| 15 : |
|
|
|
| 16 : |
jwilke
|
1.1
|
# makes a aclocal.m4 which includes the automake macros for autconf |
| 17 : |
|
|
|
| 18 : |
|
|
aclocal |
| 19 : |
|
|
|
| 20 : |
|
|
# generate configure script |
| 21 : |
|
|
|
| 22 : |
|
|
autoconf |
| 23 : |
|
|
|
| 24 : |
|
|
# generate header files like engine/config.h.in |
| 25 : |
|
|
|
| 26 : |
|
|
autoheader |
| 27 : |
|
|
|
| 28 : |
pazsan
|
1.2
|
# run configure script |
| 29 : |
jwilke
|
1.1
|
|
| 30 : |
pazsan
|
1.2
|
./configure $* |
| 31 : |
jwilke
|
1.1
|
|
| 32 : |
pazsan
|
1.2
|
# if you have specified a previous Gforth, you can savely run make now |
| 33 : |
|
|
# with FORTHK and FORTHP changed appropriate. |
| 34 : |
jwilke
|
1.1
|
|
| 35 : |
pazsan
|
1.2
|
if [ "$GFORTH" != "" ] |
| 36 : |
|
|
then |
| 37 : |
|
|
make FORTHK="$GFORTH" |
| 38 : |
jwilke
|
1.1
|
fi |