File:  [gforth] / gforth / BUILD-FROM-SCRATCH
Revision 1.22: download - view: text, annotated - select for diffs
Mon Dec 31 18:40:23 2007 UTC (16 years, 3 months ago) by anton
Branches: MAIN
CVS tags: HEAD
updated copyright notices for GPL v3

    1: # Procedures to build gforth from the CVS sources
    2: 
    3: #use this with parameters and env variables like "configure"
    4: 
    5: #Copyright (C) 2000,2002,2003,2006,2007 Free Software Foundation, Inc.
    6: 
    7: #This file is part of Gforth.
    8: 
    9: #Gforth is free software; you can redistribute it and/or
   10: #modify it under the terms of the GNU General Public License
   11: #as published by the Free Software Foundation, either version 3
   12: #of the License, or (at your option) any later version.
   13: 
   14: #This program is distributed in the hope that it will be useful,
   15: #but WITHOUT ANY WARRANTY; without even the implied warranty of
   16: #MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.#See the
   17: #GNU General Public License for more details.
   18: 
   19: #You should have received a copy of the GNU General Public License
   20: #along with this program. If not, see http://www.gnu.org/licenses/.
   21: 
   22: 
   23: # created: 2may00jaw
   24: 
   25: # To build gforth from scratch you need autoconf, automake and a 
   26: # gforth-0.6.2
   27: # This file can be used as shell script. If you make the environment
   28: # variable GFORTH point to an existing gforth installation, this
   29: # script takes over the whole build process and will produce the
   30: # kernel kernel images from the sources as well
   31: 
   32: # try to guess a installed gforth
   33: 
   34: if [ "$GFORTH"xx = "xx" ];
   35: then
   36: 	rm -f gforth
   37: 	GFORTH=`which gforth`
   38: 	if [ "$GFORTH"xx = "xx" ]; then
   39: 		echo 'BUILD-FROM-SCRATCH needs a working gforth (in environment variable GFORTH)'
   40:                 exit 1
   41:         fi
   42: 	GFORTH="$GFORTH -m4M"
   43: fi
   44: 
   45: # makes a aclocal.m4 which includes the automake macros for autconf
   46: 
   47: aclocal &&
   48: 
   49: # generate configure script
   50: 
   51: autoconf &&
   52: 
   53: # generate header files like engine/config.h.in
   54: 
   55: autoheader &&
   56: echo timestamp >stamp-h.in
   57: 
   58: # run configure Script
   59: 
   60: ./configure "$@" &&
   61: 
   62: # if you have specified a previous Gforth, you can safely run make now
   63: # with FORTHK and FORTHP changed appropriately.
   64: 
   65: #a local gforth.fi probably does not work with $GFORTH
   66: rm -f gforth.fi &&
   67: 
   68: if [ "$GFORTH"xx != "xx" ]
   69: then
   70:  bootstrap=engine/prim.i" "`for x in b l; do for wid in 16 32 64; do echo kernl$wid$x.fi; done; done`
   71:  echo 'Running: make BUILDFORTH="'$GFORTH'" FORTHP="'$GFORTH'" '$bootstrap &&
   72:  make BUILDFORTH="$GFORTH" FORTHP="$GFORTH" engine/prim.i $bootstrap &&
   73:  echo Running: make &&
   74:  make &&
   75:  make doc &&
   76:  make more
   77: fi

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