--- gforth/Attic/configure.bat 1995/02/02 18:13:00 1.3 +++ gforth/Attic/configure.bat 1996/09/19 22:17:30 1.6 @@ -1,7 +1,45 @@ -@ECHO OFF -REM Copyright 1994 by the GNU FORTH Team -ECHO *** Configuring for MS-DOS with DJGPP GNU C *** -COPY MAKEFILE.DOS MAKEFILE -COPY KERNL32L.FI GFORTH.FI -COPY 386.H MACHINE.H -COPY STARTUP.DOS STARTUP.FS +@ECHO OFF +REM Copyright 1995 Free Software Foundation, Inc. +REM +REM This file is part of Gforth. +REM +REM Gforth is free software; you can redistribute it and/or +REM modify it under the terms of the GNU General Public License +REM as published by the Free Software Foundation; either version 2 +REM of the License, or (at your option) any later version. +REM +REM This program is distributed in the hope that it will be useful, +REM but WITHOUT ANY WARRANTY; without even the implied warranty of +REM MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +REM GNU General Public License for more details. +REM +REM You should have received a copy of the GNU General Public License +REM along with this program; if not, write to the Free Software +REM Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. +ECHO *** Configuring for MS-DOS with DJGPP GNU C *** +THREAD=d +FREGS=y +:SWITCHES +IF "%1"=="--enable-direct-threaded" THREAD=d +IF "%1"=="--enable-indirect-threaded" THREAD=i +IF "%1"=="--enable-force-reg" FREGS=y +shift +IF NOT "%1"=="" GOTO SWITCHES +COPY MAKEFILE.DOS MAKEFILE +COPY KERNL32L.FI KERNEL.FI +COPY 386.H MACHINE.H +COPY DOSCONF.H CONFIG.H +COPY STARTUP.FS STARTUP.UNX +COPY STARTUP.DOS STARTUP.FS +COPY HISTORY.DOS HISTORY.FS +COPY KERNL32L.FI KERNAL.FI +IF "%THREAD%"=="i" ECHO "#ifndef INDIRECT_THREADED" >>CONFIG.H +IF "%THREAD%"=="i" ECHO "#define INDIRECT_THREADED 1" >>CONFIG.H +IF "%THREAD%"=="i" ECHO "#endif" >>CONFIG.H +IF "%THREAD%"=="d" ECHO "#ifndef DIRECT_THREADED" >>CONFIG.H +IF "%THREAD%"=="d" ECHO "#define DIRECT_THREADED 1" >>CONFIG.H +IF "%THREAD%"=="d" ECHO "#endif" >>CONFIG.H +IF "%FREGS%"=="y" ECHO "#ifndef FORCE_REG" >>CONFIG.H +IF "%FREGS%"=="y" ECHO "#define FORCE_REG 1" >>CONFIG.H +IF "%FREGS%"=="y" ECHO "#endif" >>CONFIG.H + \ No newline at end of file