File:  [gforth] / gforth / config.bat
Revision 1.2: download - view: text, annotated - select for diffs
Mon Sep 1 23:07:05 1997 UTC (26 years, 7 months ago) by jwilke
Branches: MAIN
CVS tags: HEAD
Dos Changes:
!!Moved:
engine/32bit.h moved to arch/generic/machine.h
cache.c moved to arch/hppa/
cleanalign.c moved to engine/
!!New Files:
envos.* *.bsh
Instead of linking arch/xy/machine.h an custom include path is used
engine.a engine.o main.o makes with engine/Makefile now
history.fs and startup.fs works for dos and unix now
environment variable osclass is set in envos.fs, wich is os-specific
any comments?
supressed some warnings in main.c

    1: @ECHO OFF
    2: REM Copyright 1995 Free Software Foundation, Inc.
    3: REM
    4: REM This file is part of Gforth.
    5: REM
    6: REM Gforth is free software; you can redistribute it and/or
    7: REM modify it under the terms of the GNU General Public License
    8: REM as published by the Free Software Foundation; either version 2
    9: REM of the License, or (at your option) any later version.
   10: REM
   11: REM This program is distributed in the hope that it will be useful,
   12: REM but WITHOUT ANY WARRANTY; without even the implied warranty of
   13: REM MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   14: REM GNU General Public License for more details.
   15: REM
   16: REM You should have received a copy of the GNU General Public License
   17: REM along with this program; if not, write to the Free Software
   18: REM Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
   19: ECHO *** Configuring for MS-DOS with DJGPP 2.0 GNU C ***
   20: set THREAD=i
   21: set FREGS=n
   22: :SWITCHES
   23: IF "%1"=="--enable-direct-threaded" set THREAD=d
   24: IF "%1"=="--enable-indirect-threaded" set THREAD=i
   25: IF "%1"=="--enable-force-reg" set FREGS=y
   26: shift
   27: IF NOT "%1"=="" GOTO SWITCHES
   28: COPY engine\MAKEFILE.DOS engine\MAKEFILE
   29: COPY MAKEFILE.DOS MAKEFILE
   30: COPY KERNL32L.FI KERNEL.FI
   31: COPY DOSCONF.H ENGINE\CONFIG.H
   32: COPY ENVOS.FS ENVOS.UNX
   33: COPY ENVOS.DOS ENVOS.FS
   34: IF "%THREAD%"=="i" ECHO #ifndef INDIRECT_THREADED >>ENGINE\CONFIG.H
   35: IF "%THREAD%"=="i" ECHO #define INDIRECT_THREADED 1 >>ENGINE\CONFIG.H
   36: IF "%THREAD%"=="i" ECHO #endif >>ENGINE\CONFIG.H
   37: IF "%THREAD%"=="d" ECHO #ifndef DIRECT_THREADED >>ENGINE\CONFIG.H
   38: IF "%THREAD%"=="d" ECHO #define DIRECT_THREADED 1 >>ENGINE\CONFIG.H
   39: IF "%THREAD%"=="d" ECHO #endif >>ENGINE\CONFIG.H
   40: IF "%FREGS%"=="y" ECHO #ifndef FORCE_REG >>ENGINE\CONFIG.H
   41: IF "%FREGS%"=="y" ECHO #define FORCE_REG 1 >>ENGINE\CONFIG.H
   42: IF "%FREGS%"=="y" ECHO #endif >>ENGINE\CONFIG.H

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