File:  [gforth] / gforth / BUILD-FROM-SCRATCH
Revision 1.2: download - view: text, annotated - select for diffs
Sat Jun 10 21:10:50 2000 UTC (21 years, 5 months ago) by pazsan
Branches: MAIN
CVS tags: HEAD
Made BUILD-FROM-SCRATCH work with previous version of Gforth (almost
automatic)

    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: # variable GFORTH point to an existing gforth installation, this
    7: # script takes over kernel and primitve files.
    8: 
    9: # try to guess a previous version of Gforth
   10: 
   11: if [ "$GFORTH" == "" ]
   12: then
   13: 	GFORTH=`which gforth`
   14: fi
   15: 
   16: # 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: # run configure script
   29: 
   30: ./configure $*
   31: 
   32: # if you have specified a previous Gforth, you can savely run make now
   33: # with FORTHK and FORTHP changed appropriate.
   34: 
   35: if [ "$GFORTH" != "" ]
   36: then
   37: 	make FORTHK="$GFORTH"
   38: fi

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>