File:  [gforth] / gforth / BUILD-FROM-SCRATCH
Revision 1.1: download - view: text, annotated - select for diffs
Thu May 4 09:52:14 2000 UTC (21 years, 7 months ago) by jwilke
Branches: MAIN
CVS tags: HEAD
created

    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 OLDGFORTH point to an existing gforth installation, this
    7: # script takes over kernel and primitve files.
    8: 
    9: # makes a aclocal.m4 which includes the automake macros for autconf
   10: 
   11: aclocal
   12: 
   13: # generate configure script
   14: 
   15: autoconf
   16: 
   17: # generate header files like engine/config.h.in
   18: 
   19: autoheader
   20: 
   21: # Option 1: You have kernl???.fi files for the latest gforth engine
   22: 
   23: # fetch primitve and kernel files from an existing gforth installation
   24: # this works only if there are no changes between the prim file
   25: # in the existing gforth installation and this one!
   26: if [ "$CURRENTGFORTH" != "" ]; then
   27: 
   28:   # fetch some apropirate kernel images and copy it into the gforth root
   29: 
   30:   cp $CURRENTGFORTH/kernl???.fi .
   31: 
   32:   # fetch the include files for the primitives
   33:   primfiles="engine/prim.i engine/prim_lab.i prim.b kernel/aliases.fs kernel/prim.fs"
   34:   for I in $primfiles; do
   35:     cp $CURRENTGFORTH/$I $I;
   36:   done
   37: 
   38:   # mark them up to date
   39:   touch $primfiles
   40: 
   41:   # mark kernel files up to date
   42:   touch kernl???.fi .
   43: 
   44: fi
   45: 
   46: # Option 2: You don't have the lates kernel???.fi but a running (old) gforth on your system
   47: 
   48: # If you don't have apropriate kernel images use an old gforth installation to
   49: # bootstrap:
   50: # run ./configure
   51: # Edit the Makefile and replace the FORTHK variable with your existing
   52: # gforth call e.g. "/usr/bin/gforth", you don't need any options!
   53: # then run make gforth; make gforth.fi
   54: 
   55: # go on with INSTALL ...
   56: 

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