Introduce end-of-line normalization

This commit is contained in:
Bart Oldeman 2017-12-22 07:24:09 -05:00 committed by Kenneth J Davis
parent ab6d98ff56
commit e82de4b707
16 changed files with 842 additions and 839 deletions

3
.gitattributes vendored Normal file
View File

@ -0,0 +1,3 @@
* text eol=crlf
*.up -text
*.UP -text

View File

@ -1,103 +1,103 @@
@ECHO OFF @ECHO OFF
IF "%1"=="" GOTO USAGE IF "%1"=="" GOTO USAGE
REM assumes ran in same directory as this file, ie base of kernel source REM assumes ran in same directory as this file, ie base of kernel source
SET BASEPATH=%CD% SET BASEPATH=%CD%
CD .. CD ..
ECHO create source copy ECHO create source copy
if EXIST SOURCE RMDIR /S /Q SOURCE > NUL if EXIST SOURCE RMDIR /S /Q SOURCE > NUL
MKDIR SOURCE MKDIR SOURCE
ECHO \.svn>SOURCE\SKIPLIST ECHO \.svn>SOURCE\SKIPLIST
ECHO .git>>SOURCE\SKIPLIST ECHO .git>>SOURCE\SKIPLIST
XCOPY %BASEPATH% SOURCE\ke%1 /S /V /I /Q /G /H /R /Y /EXCLUDE:SOURCE\SKIPLIST XCOPY %BASEPATH% SOURCE\ke%1 /S /V /I /Q /G /H /R /Y /EXCLUDE:SOURCE\SKIPLIST
DEL SOURCE\SKIPLIST > NUL DEL SOURCE\SKIPLIST > NUL
ECHO ensuring clean ECHO ensuring clean
PUSHD . PUSHD .
CD SOURCE\ke%1 CD SOURCE\ke%1
CALL clobber.bat CALL clobber.bat
POPD POPD
PAUSE PAUSE
SET VERSION=%1 SET VERSION=%1
SET LSMRET=SRC SET LSMRET=SRC
SET LSMFILE=SOURCE\ke%1\docs\fdkernel.lsm SET LSMFILE=SOURCE\ke%1\docs\fdkernel.lsm
GOTO LSM GOTO LSM
:SRC :SRC
ECHO zipping source ECHO zipping source
7z.exe a -tzip -mx9 -mpass15 -r ke%1s.zip SOURCE\* 7z.exe a -tzip -mx9 -mpass15 -r ke%1s.zip SOURCE\*
ECHO creating APPINFO and expected packaging dir structure ECHO creating APPINFO and expected packaging dir structure
ECHO using working configuration file ECHO using working configuration file
::COPY trunk\CONFIG.BAT SOURCE\ke%1 > NUL ::COPY trunk\CONFIG.BAT SOURCE\ke%1 > NUL
CD SOURCE\ke%1 CD SOURCE\ke%1
ECHO build and packaging ECHO build and packaging
SET VERSION=%1 (FAT12/FAT16) SET VERSION=%1 (FAT12/FAT16)
SET FAT=16 SET FAT=16
SET BZKRET=F16 SET BZKRET=F16
GOTO BZK GOTO BZK
:F16 :F16
SET VERSION=%1 (FAT12/FAT16/FAT32) SET VERSION=%1 (FAT12/FAT16/FAT32)
SET FAT=32 SET FAT=32
SET BZKRET=F32 SET BZKRET=F32
GOTO BZK GOTO BZK
:F32 :F32
ECHO clean up ECHO clean up
CD ..\.. CD ..\..
RMDIR /S /Q SOURCE > NUL RMDIR /S /Q SOURCE > NUL
ECHO Done. ECHO Done.
SET BZKRET= SET BZKRET=
GOTO DONE GOTO DONE
:BZK :BZK
ECHO build kernel %VERSION% ECHO build kernel %VERSION%
CALL build.bat /D KERNEL_VERSION /V "%1 " 86 win upx fat%FAT% CALL build.bat /D KERNEL_VERSION /V "%1 " 86 win upx fat%FAT%
DEL BIN\K??86??.sys DEL BIN\K??86??.sys
SET LSMRET=BZK_2 SET LSMRET=BZK_2
SET LSMFILE=docs\fdkernel.lsm SET LSMFILE=docs\fdkernel.lsm
GOTO LSM GOTO LSM
:BZK_2 :BZK_2
SET LSMRET= SET LSMRET=
ECHO zipping FAT%FAT% release version ECHO zipping FAT%FAT% release version
7z.exe a -tzip -mx9 -mpass15 -r ..\..\ke%1_86f%FAT%.zip BIN\* DOCS\* 7z.exe a -tzip -mx9 -mpass15 -r ..\..\ke%1_86f%FAT%.zip BIN\* DOCS\*
ECHO restructuring and zipping update package ECHO restructuring and zipping update package
DEL BIN\K??86??.* > NUL DEL BIN\K??86??.* > NUL
MKDIR DOC MKDIR DOC
MKDIR DOC\KERNEL MKDIR DOC\KERNEL
COPY DOCS\* DOC\KERNEL\ COPY DOCS\* DOC\KERNEL\
MKDIR APPINFO MKDIR APPINFO
MOVE DOC\KERNEL\*.lsm APPINFO\ MOVE DOC\KERNEL\*.lsm APPINFO\
7z.exe a -tzip -mx9 -mpass15 -r ..\..\kernel%FAT%.zip APPINFO\* BIN\* DOC\* 7z.exe a -tzip -mx9 -mpass15 -r ..\..\kernel%FAT%.zip APPINFO\* BIN\* DOC\*
ECHO cleaning up between builds ECHO cleaning up between builds
CALL clobber.bat CALL clobber.bat
RMDIR /S /Q DOC RMDIR /S /Q DOC
RMDIR /S /Q APPINFO RMDIR /S /Q APPINFO
GOTO %BZKRET% GOTO %BZKRET%
:LSM :LSM
ECHO Begin3>%LSMFILE% ECHO Begin3>%LSMFILE%
ECHO Title: The FreeDOS Kernel>>%LSMFILE% ECHO Title: The FreeDOS Kernel>>%LSMFILE%
ECHO Version: %VERSION%>>%LSMFILE% ECHO Version: %VERSION%>>%LSMFILE%
ECHO Entered-date: %DATE%>>%LSMFILE% ECHO Entered-date: %DATE%>>%LSMFILE%
ECHO Description: The FreeDOS Kernel>>%LSMFILE% ECHO Description: The FreeDOS Kernel>>%LSMFILE%
ECHO Keywords: kernel, FreeDOS, DOS, MSDOS>>%LSMFILE% ECHO Keywords: kernel, FreeDOS, DOS, MSDOS>>%LSMFILE%
ECHO Author: (developers: can be reached on the freedos-kernel mailing list)>>%LSMFILE% ECHO Author: (developers: can be reached on the freedos-kernel mailing list)>>%LSMFILE%
ECHO Maintained-by: freedos-kernel@lists.sourceforge.net>>%LSMFILE% ECHO Maintained-by: freedos-kernel@lists.sourceforge.net>>%LSMFILE%
ECHO Primary-site: http://freedos.sourceforge.net/kernel/>>%LSMFILE% ECHO Primary-site: http://freedos.sourceforge.net/kernel/>>%LSMFILE%
ECHO Alternate-site: http://www.fdos.org/kernel/>>%LSMFILE% ECHO Alternate-site: http://www.fdos.org/kernel/>>%LSMFILE%
ECHO Alternate-site: https://github.com/PerditionC/fdkernel>>%LSMFILE% ECHO Alternate-site: https://github.com/PerditionC/fdkernel>>%LSMFILE%
ECHO Alternate-site: https://freedos.svn.sourceforge.net/svnroot/freedos>>%LSMFILE% ECHO Alternate-site: https://freedos.svn.sourceforge.net/svnroot/freedos>>%LSMFILE%
ECHO Original-site: http://www.gcfl.net/pub/FreeDOS/kernel>>%LSMFILE% ECHO Original-site: http://www.gcfl.net/pub/FreeDOS/kernel>>%LSMFILE%
ECHO Platforms: DOS, FreeDOS, DOSEMU (OpenWatcom C or Turbo C, NASM, UPX)>>%LSMFILE% ECHO Platforms: DOS, FreeDOS, DOSEMU (OpenWatcom C or Turbo C, NASM, UPX)>>%LSMFILE%
ECHO Copying-policy: GPL2>>%LSMFILE% ECHO Copying-policy: GPL2>>%LSMFILE%
ECHO End>>%LSMFILE% ECHO End>>%LSMFILE%
SET LSMFILE= SET LSMFILE=
SET VERSION= SET VERSION=
GOTO %LSMRET% GOTO %LSMRET%
:USAGE :USAGE
ECHO Build kernel packages (interim builds or release without tagging) - usage: RELEASE {VERSION} e.g. RELEASE 2039 ECHO Build kernel packages (interim builds or release without tagging) - usage: RELEASE {VERSION} e.g. RELEASE 2039
:DONE :DONE
CD %BASEPATH% CD %BASEPATH%
SET BASEPATH= SET BASEPATH=

View File

@ -1,92 +1,92 @@
@ECHO OFF @ECHO OFF
IF "%1"=="" GOTO USAGE IF "%1"=="" GOTO USAGE
REM goto to just below trunk and tags directory, assume ran in trunk directory REM goto to just below trunk and tags directory, assume ran in trunk directory
CD .. CD ..
ECHO tag SVN with release version - svn copy trunk/ tags/ke%1 ECHO tag SVN with release version - svn copy trunk/ tags/ke%1
svn copy https://freedos.svn.sourceforge.net/svnroot/freedos/kernel/trunk/ https://freedos.svn.sourceforge.net/svnroot/freedos/kernel/tags/ke%1 -m "Tag kernel release %1" svn copy https://freedos.svn.sourceforge.net/svnroot/freedos/kernel/trunk/ https://freedos.svn.sourceforge.net/svnroot/freedos/kernel/tags/ke%1 -m "Tag kernel release %1"
PAUSE PAUSE
ECHO svn export to get clean tree ECHO svn export to get clean tree
if EXIST SOURCE RMDIR /S /Q SOURCE > NUL if EXIST SOURCE RMDIR /S /Q SOURCE > NUL
svn export https://freedos.svn.sourceforge.net/svnroot/freedos/kernel/tags/ke%1 SOURCE\ke%1 svn export https://freedos.svn.sourceforge.net/svnroot/freedos/kernel/tags/ke%1 SOURCE\ke%1
REM svn export https://freedos.svn.sourceforge.net/svnroot/freedos/kernel/trunk SOURCE\ke%1 REM svn export https://freedos.svn.sourceforge.net/svnroot/freedos/kernel/trunk SOURCE\ke%1
SET VERSION=%1 SET VERSION=%1
SET LSMRET=SRC SET LSMRET=SRC
SET LSMFILE=SOURCE\ke%1\docs\fdkernel.lsm SET LSMFILE=SOURCE\ke%1\docs\fdkernel.lsm
GOTO LSM GOTO LSM
:SRC :SRC
ECHO zipping source ECHO zipping source
7z.exe a -tzip -mx9 -mpass15 -r ke%1s.zip SOURCE\* 7z.exe a -tzip -mx9 -mpass15 -r ke%1s.zip SOURCE\*
ECHO creating APPINFO and expected packaging dir structure ECHO creating APPINFO and expected packaging dir structure
ECHO using working configuration file ECHO using working configuration file
COPY trunk\CONFIG.BAT SOURCE\ke%1 > NUL COPY trunk\CONFIG.BAT SOURCE\ke%1 > NUL
CD SOURCE\ke%1 CD SOURCE\ke%1
ECHO build and packaging ECHO build and packaging
SET VERSION=%1 (FAT12/FAT16) SET VERSION=%1 (FAT12/FAT16)
SET FAT=16 SET FAT=16
SET BZKRET=F16 SET BZKRET=F16
GOTO BZK GOTO BZK
:F16 :F16
SET VERSION=%1 (FAT12/FAT16/FAT32) SET VERSION=%1 (FAT12/FAT16/FAT32)
SET FAT=32 SET FAT=32
SET BZKRET=F32 SET BZKRET=F32
GOTO BZK GOTO BZK
:F32 :F32
ECHO clean up ECHO clean up
CD ..\.. CD ..\..
RMDIR /S /Q SOURCE > NUL RMDIR /S /Q SOURCE > NUL
ECHO Done. ECHO Done.
SET BZKRET= SET BZKRET=
GOTO DONE GOTO DONE
:BZK :BZK
ECHO build kernel %VERSION% ECHO build kernel %VERSION%
CALL build.bat /D KERNEL_VERSION /V "%1 " 86 upx fat%FAT% CALL build.bat /D KERNEL_VERSION /V "%1 " 86 upx fat%FAT%
DEL BIN\K??86??.sys DEL BIN\K??86??.sys
SET LSMRET=BZK_2 SET LSMRET=BZK_2
SET LSMFILE=docs\fdkernel.lsm SET LSMFILE=docs\fdkernel.lsm
GOTO LSM GOTO LSM
:BZK_2 :BZK_2
SET LSMRET= SET LSMRET=
ECHO zipping FAT%FAT% release version ECHO zipping FAT%FAT% release version
7z.exe a -tzip -mx9 -mpass15 -r ..\..\ke%1_86f%FAT%.zip BIN\* DOCS\* 7z.exe a -tzip -mx9 -mpass15 -r ..\..\ke%1_86f%FAT%.zip BIN\* DOCS\*
ECHO restructuring and zipping update package ECHO restructuring and zipping update package
DEL BIN\K??86??.* > NUL DEL BIN\K??86??.* > NUL
MKDIR DOC MKDIR DOC
MKDIR DOC\KERNEL MKDIR DOC\KERNEL
COPY DOCS\* DOC\KERNEL\ COPY DOCS\* DOC\KERNEL\
MKDIR APPINFO MKDIR APPINFO
MOVE DOC\KERNEL\*.lsm APPINFO\ MOVE DOC\KERNEL\*.lsm APPINFO\
7z.exe a -tzip -mx9 -mpass15 -r ..\..\kernel%FAT%.zip APPINFO\* BIN\* DOC\* 7z.exe a -tzip -mx9 -mpass15 -r ..\..\kernel%FAT%.zip APPINFO\* BIN\* DOC\*
ECHO cleaning up between builds ECHO cleaning up between builds
CALL clobber.bat CALL clobber.bat
RMDIR /S /Q DOC RMDIR /S /Q DOC
RMDIR /S /Q APPINFO RMDIR /S /Q APPINFO
GOTO %BZKRET% GOTO %BZKRET%
:LSM :LSM
ECHO Begin3>%LSMFILE% ECHO Begin3>%LSMFILE%
ECHO Title: The FreeDOS Kernel>>%LSMFILE% ECHO Title: The FreeDOS Kernel>>%LSMFILE%
ECHO Version: %VERSION%>>%LSMFILE% ECHO Version: %VERSION%>>%LSMFILE%
ECHO Entered-date: %DATE%>>%LSMFILE% ECHO Entered-date: %DATE%>>%LSMFILE%
ECHO Description: The FreeDOS Kernel>>%LSMFILE% ECHO Description: The FreeDOS Kernel>>%LSMFILE%
ECHO Keywords: kernel, FreeDOS, DOS, MSDOS>>%LSMFILE% ECHO Keywords: kernel, FreeDOS, DOS, MSDOS>>%LSMFILE%
ECHO Author: (developers: can be reached on the freedos-kernel mailing list)>>%LSMFILE% ECHO Author: (developers: can be reached on the freedos-kernel mailing list)>>%LSMFILE%
ECHO Maintained-by: freedos-kernel@lists.sourceforge.net>>%LSMFILE% ECHO Maintained-by: freedos-kernel@lists.sourceforge.net>>%LSMFILE%
ECHO Primary-site: http://freedos.sourceforge.net/kernel/>>%LSMFILE% ECHO Primary-site: http://freedos.sourceforge.net/kernel/>>%LSMFILE%
ECHO Alternate-site: http://www.fdos.org/kernel/>>%LSMFILE% ECHO Alternate-site: http://www.fdos.org/kernel/>>%LSMFILE%
ECHO Alternate-site: https://freedos.svn.sourceforge.net/svnroot/freedos>>%LSMFILE% ECHO Alternate-site: https://freedos.svn.sourceforge.net/svnroot/freedos>>%LSMFILE%
ECHO Original-site: http://www.gcfl.net/pub/FreeDOS/kernel>>%LSMFILE% ECHO Original-site: http://www.gcfl.net/pub/FreeDOS/kernel>>%LSMFILE%
ECHO Platforms: DOS, FreeDOS, DOSEMU (OpenWatcom C or Turbo C, NASM, UPX)>>%LSMFILE% ECHO Platforms: DOS, FreeDOS, DOSEMU (OpenWatcom C or Turbo C, NASM, UPX)>>%LSMFILE%
ECHO Copying-policy: GPL2>>%LSMFILE% ECHO Copying-policy: GPL2>>%LSMFILE%
ECHO End>>%LSMFILE% ECHO End>>%LSMFILE%
SET LSMFILE= SET LSMFILE=
SET VERSION= SET VERSION=
GOTO %LSMRET% GOTO %LSMRET%
:USAGE :USAGE
ECHO Tag and build release kernels - usage: RELEASE {VERSION} e.g. RELEASE 2039 ECHO Tag and build release kernels - usage: RELEASE {VERSION} e.g. RELEASE 2039
:DONE :DONE

View File

@ -1,3 +1,3 @@
@echo off @echo off
echo Welcome to FreeDOS (http://www.freedos.org)! echo Welcome to FreeDOS (http://www.freedos.org)!
path=a:\ path=a:\

View File

@ -1,36 +1,36 @@
@echo off @echo off
rem rem
rem Create a distribution floppy rem Create a distribution floppy
rem rem
rem $Header$ rem $Header$
set D=A: set D=A:
if "%1" == "b:" set D=B: if "%1" == "b:" set D=B:
if "%1" == "B:" set D=B: if "%1" == "B:" set D=B:
if "%1" == "b" set D=B: if "%1" == "b" set D=B:
if "%1" == "B" set D=B: if "%1" == "B" set D=B:
echo This utility will create a distribution floppy on the disk in drive %D% echo This utility will create a distribution floppy on the disk in drive %D%
pause pause
rem try to transfer system files -- abort if it cannot. rem try to transfer system files -- abort if it cannot.
sys %D% sys %D%
if errorlevel 1 goto out if errorlevel 1 goto out
rem copy remaining files rem copy remaining files
echo copying remaining files... echo copying remaining files...
echo copying autoexec.bat... echo copying autoexec.bat...
copy autoexec.bat %D% copy autoexec.bat %D%
echo copying config.sys.. echo copying config.sys..
copy config.sys %D% copy config.sys %D%
echo copying sys.com.. echo copying sys.com..
copy sys.com %D% copy sys.com %D%
label %D% freedos label %D% freedos
rem exit methods rem exit methods
goto done goto done
:out :out
echo Floppy creation aborted echo Floppy creation aborted
:done :done
set D= set D=

356
build.bat
View File

@ -1,178 +1,178 @@
rem @echo off rem @echo off
rem batch file to build everything rem batch file to build everything
rem IF NOTHING COMPILES, CHECK IF YOUR CVS CHECKOUT USES CORRECT DOS LINEBREAKS rem IF NOTHING COMPILES, CHECK IF YOUR CVS CHECKOUT USES CORRECT DOS LINEBREAKS
if NOT "%1" == "/?" goto start if NOT "%1" == "/?" goto start
echo ":-----------------------------------------------------------------------" echo ":-----------------------------------------------------------------------"
echo ":- Syntax: BUILD [-r] [fat32|fat16] [msc|wc|tc|tcpp|bc] [86|186|386] " echo ":- Syntax: BUILD [-r] [fat32|fat16] [msc|wc|tc|tcpp|bc] [86|186|386] "
echo ":- [debug] [lfnapi] [/L #] [/D value] [list] [upx] [win] " echo ":- [debug] [lfnapi] [/L #] [/D value] [list] [upx] [win] "
echo ":- option case is significant !! " echo ":- option case is significant !! "
echo ":- Note: Open Watcom (wc) is the preferred compiler " echo ":- Note: Open Watcom (wc) is the preferred compiler "
echo ":-----------------------------------------------------------------------" echo ":-----------------------------------------------------------------------"
goto end goto end
:start :start
:- assume an error until successful build :- assume an error until successful build
set XERROR=1 set XERROR=1
if "%XERROR%" == "" goto noenv if "%XERROR%" == "" goto noenv
if "%1" == "-r" call clobber.bat if "%1" == "-r" call clobber.bat
if "%1" == "-r" shift if "%1" == "-r" shift
if not exist config.bat echo You must copy CONFIG.B to CONFIG.BAT and edit it to reflect your setup! if not exist config.bat echo You must copy CONFIG.B to CONFIG.BAT and edit it to reflect your setup!
if not exist config.bat goto abort if not exist config.bat goto abort
call config.bat call config.bat
:-if "%LAST%" == "" goto noenv :-if "%LAST%" == "" goto noenv
set dos4g=quiet set dos4g=quiet
:----------------------------------------------------------------------- :-----------------------------------------------------------------------
:- following is command line handling :- following is command line handling
:- options on the commandline overwrite default settings :- options on the commandline overwrite default settings
:----------------------------------------------------------------------- :-----------------------------------------------------------------------
:loop_commandline :loop_commandline
if "%1" == "fat32" set XFAT=32 if "%1" == "fat32" set XFAT=32
if "%1" == "fat16" set XFAT=16 if "%1" == "fat16" set XFAT=16
if "%1" == "msc" set COMPILER=MSCL8 if "%1" == "msc" set COMPILER=MSCL8
if "%1" == "wc" set COMPILER=WATCOM if "%1" == "wc" set COMPILER=WATCOM
if "%1" == "tc" set COMPILER=TC2 if "%1" == "tc" set COMPILER=TC2
if "%1" == "tcpp" set COMPILER=TURBOCPP if "%1" == "tcpp" set COMPILER=TURBOCPP
if "%1" == "bc" set COMPILER=BC if "%1" == "bc" set COMPILER=BC
if "%1" == "86" set XCPU=86 if "%1" == "86" set XCPU=86
if "%1" == "186" set XCPU=186 if "%1" == "186" set XCPU=186
if "%1" == "386" set XCPU=386 if "%1" == "386" set XCPU=386
if "%1" == "x86" goto setCPU if "%1" == "x86" goto setCPU
if "%1" == "upx" set XUPX=upx --8086 --best if "%1" == "upx" set XUPX=upx --8086 --best
if "%1" == "debug" set ALLCFLAGS=%ALLCFLAGS% -DDEBUG if "%1" == "debug" set ALLCFLAGS=%ALLCFLAGS% -DDEBUG
if "%1" == "lfnapi" set ALLCFLAGS=%ALLCFLAGS% -DWITHLFNAPI if "%1" == "lfnapi" set ALLCFLAGS=%ALLCFLAGS% -DWITHLFNAPI
if "%1" == "win" set ALLCFLAGS=%ALLCFLAGS% -DWIN31SUPPORT if "%1" == "win" set ALLCFLAGS=%ALLCFLAGS% -DWIN31SUPPORT
if "%1" == "win" set NASMFLAGS=%NASMFLAGS% -DWIN31SUPPORT if "%1" == "win" set NASMFLAGS=%NASMFLAGS% -DWIN31SUPPORT
if "%1" == "list" set NASMFLAGS=%NASMFLAGS% -l$*.lst if "%1" == "list" set NASMFLAGS=%NASMFLAGS% -l$*.lst
if "%1" == "/L" goto setLoadSeg if "%1" == "/L" goto setLoadSeg
if "%1" == "/D" goto setDefine if "%1" == "/D" goto setDefine
:nextOption :nextOption
shift shift
if not "%1" == "" goto loop_commandline if not "%1" == "" goto loop_commandline
call default.bat call default.bat
:-if "%LAST%" == "" goto noenv :-if "%LAST%" == "" goto noenv
:----------------------------------------------------------------------- :-----------------------------------------------------------------------
:- finally - we are going to compile :- finally - we are going to compile
:----------------------------------------------------------------------- :-----------------------------------------------------------------------
echo USING OPTIONS of C=[%ALLCFLAGS%] ASM=[%NASMFLAGS%] echo USING OPTIONS of C=[%ALLCFLAGS%] ASM=[%NASMFLAGS%]
echo. echo.
echo Process UTILS ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ echo Process UTILS ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
echo. echo.
cd utils cd utils
%MAKE% production %MAKE% production
if errorlevel 1 goto abort-cd if errorlevel 1 goto abort-cd
echo. echo.
echo Process LIB ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ echo Process LIB ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
echo. echo.
cd ..\lib cd ..\lib
%MAKE% %MAKE%
if errorlevel 1 goto abort-cd if errorlevel 1 goto abort-cd
echo. echo.
echo Process DRIVERS ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ echo Process DRIVERS ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
echo. echo.
cd ..\drivers cd ..\drivers
%MAKE% production %MAKE% production
if errorlevel 1 goto abort-cd if errorlevel 1 goto abort-cd
echo. echo.
echo Process BOOT +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ echo Process BOOT +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
echo. echo.
cd ..\boot cd ..\boot
%MAKE% production %MAKE% production
if errorlevel 1 goto abort-cd if errorlevel 1 goto abort-cd
echo. echo.
echo Process SYS ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ echo Process SYS ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
echo. echo.
cd ..\sys cd ..\sys
%MAKE% production %MAKE% production
if errorlevel 1 goto abort-cd if errorlevel 1 goto abort-cd
if NOT "%XUPX%" == "" %XUPX% ..\bin\sys.com if NOT "%XUPX%" == "" %XUPX% ..\bin\sys.com
echo. echo.
echo Process KERNEL +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ echo Process KERNEL +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
echo. echo.
cd ..\kernel cd ..\kernel
%MAKE% production %MAKE% production
if errorlevel 1 goto abort-cd if errorlevel 1 goto abort-cd
cd .. cd ..
set XERROR= set XERROR=
:- if you like, put finalizing commands (like copy to floppy) into build2.bat :- if you like, put finalizing commands (like copy to floppy) into build2.bat
if exist build2.bat call build2.bat if exist build2.bat call build2.bat
echo. echo.
echo Processing is done. echo Processing is done.
goto end goto end
:----------------------------------------------------------------------- :-----------------------------------------------------------------------
:setLoadSeg :setLoadSeg
shift shift
if "%1" == "" echo you MUST specify load segment eg 0x60 with /L option if "%1" == "" echo you MUST specify load segment eg 0x60 with /L option
if "%1" == "" goto abort if "%1" == "" goto abort
set LOADSEG=%1 set LOADSEG=%1
goto nextOption goto nextOption
:setCPU :setCPU
shift shift
if "%1" == "" echo you MUST specify compiler's cpu cmd line argument, eg -5 if "%1" == "" echo you MUST specify compiler's cpu cmd line argument, eg -5
if "%1" == "" goto abort if "%1" == "" goto abort
set XCPU_EX=%1 set XCPU_EX=%1
goto nextOption goto nextOption
:setDefine :setDefine
shift shift
:- Give extra compiler DEFINE flags here :- Give extra compiler DEFINE flags here
if "%1" == "" echo you MUST specify value to define with /D option if "%1" == "" echo you MUST specify value to define with /D option
if "%1" == "" echo such as /D DEBUG : extra DEBUG output if "%1" == "" echo such as /D DEBUG : extra DEBUG output
if "%1" == "" echo or /D DOSEMU : printf output goes to dosemu log if "%1" == "" echo or /D DOSEMU : printf output goes to dosemu log
if "%1" == "" echo or /D WIN31SUPPORT : enable Win 3.x hooks if "%1" == "" echo or /D WIN31SUPPORT : enable Win 3.x hooks
if "%1" == "" goto abort if "%1" == "" goto abort
if "%2" == "/V" goto :setDefineWithValue if "%2" == "/V" goto :setDefineWithValue
set ALLCFLAGS=%ALLCFLAGS% -D%1 set ALLCFLAGS=%ALLCFLAGS% -D%1
set NASMFLAGS=%NASMFLAGS% -D%1 set NASMFLAGS=%NASMFLAGS% -D%1
goto nextOption goto nextOption
:setDefineWithValue :setDefineWithValue
set ALLCFLAGS=%ALLCFLAGS% -D%1=%3 set ALLCFLAGS=%ALLCFLAGS% -D%1=%3
set NASMFLAGS=%NASMFLAGS% -D%1=%3 set NASMFLAGS=%NASMFLAGS% -D%1=%3
shift shift
shift shift
goto nextOption goto nextOption
:noenv :noenv
echo Unable to set necessary environment variables! echo Unable to set necessary environment variables!
goto abort goto abort
:abort-cd :abort-cd
cd .. cd ..
:abort :abort
echo Compilation was aborted! echo Compilation was aborted!
:end :end
call default.bat clearset call default.bat clearset

View File

@ -1,110 +1,110 @@
@echo off @echo off
rem IF NOTHING COMPILES, CHECK IF YOUR CVS CHECKOUT USES CORRECT DOS LINEBREAKS rem IF NOTHING COMPILES, CHECK IF YOUR CVS CHECKOUT USES CORRECT DOS LINEBREAKS
:- $Id: buildall.bat 1305 2006-10-31 21:13:02Z bartoldeman $ :- $Id: buildall.bat 1305 2006-10-31 21:13:02Z bartoldeman $
:---------------------------------------------------------- :----------------------------------------------------------
:- batch file to build _many_ KERNELS, hope build works. :- batch file to build _many_ KERNELS, hope build works.
:- takes 3 minutes on my(TE) Win2K/P700. your milage may vary :-) :- takes 3 minutes on my(TE) Win2K/P700. your milage may vary :-)
:---------------------------------------------------------- :----------------------------------------------------------
if "%1" == "$SUMMARY" goto summary if "%1" == "$SUMMARY" goto summary
set onerror=if not "%XERROR%" == "" goto daswarwohlnix set onerror=if not "%XERROR%" == "" goto daswarwohlnix
:***** MSCL kernels :***** MSCL kernels
call config.bat call config.bat
set dos4g=quiet set dos4g=quiet
if "%MS_BASE%" == "" goto no_ms if "%MS_BASE%" == "" goto no_ms
call build -r msc 386 fat16 call build -r msc 386 fat16
%ONERROR% %ONERROR%
call build -r msc 186 fat16 call build -r msc 186 fat16
%ONERROR% %ONERROR%
call build -r msc 86 fat16 call build -r msc 86 fat16
%ONERROR% %ONERROR%
call build -r msc 386 fat32 call build -r msc 386 fat32
%ONERROR% %ONERROR%
call build -r msc 186 fat32 call build -r msc 186 fat32
%ONERROR% %ONERROR%
call build -r msc 86 fat32 call build -r msc 86 fat32
%ONERROR% %ONERROR%
:no_ms :no_ms
:***** TC 2.01 kernels :***** TC 2.01 kernels
if "%TC2_BASE%" == "" goto no_tc if "%TC2_BASE%" == "" goto no_tc
call build -r tc 186 fat16 call build -r tc 186 fat16
%ONERROR% %ONERROR%
call build -r tc 86 fat16 call build -r tc 86 fat16
%ONERROR% %ONERROR%
call build -r tc 186 fat32 call build -r tc 186 fat32
%ONERROR% %ONERROR%
call build -r tc 86 fat32 call build -r tc 86 fat32
%ONERROR% %ONERROR%
:no_tc :no_tc
:***** (Open) Watcom kernels :***** (Open) Watcom kernels
if not "%COMPILER%" == "WATCOM" goto no_wc if not "%COMPILER%" == "WATCOM" goto no_wc
call build -r wc 386 fat32 call build -r wc 386 fat32
%ONERROR% %ONERROR%
call build -r wc 386 fat16 call build -r wc 386 fat16
%ONERROR% %ONERROR%
call build -r wc 86 fat32 call build -r wc 86 fat32
%ONERROR% %ONERROR%
call build -r wc 86 fat16 call build -r wc 86 fat16
%ONERROR% %ONERROR%
:no_wc :no_wc
:***** now rebuild the default kernel :***** now rebuild the default kernel
call build -r call build -r
:************************************************************** :**************************************************************
:* now we build a summary of all kernels HMA size + total size :* now we build a summary of all kernels HMA size + total size
:* Yes, I know - "mit Linux waer das nicht passiert" :-) :* Yes, I know - "mit Linux waer das nicht passiert" :-)
:* at least, it's possible with standard DOS tools :* at least, it's possible with standard DOS tools
:************************************************************** :**************************************************************
set Sumfile=bin\ksummary.txt set Sumfile=bin\ksummary.txt
set TempSumfile=bin\tsummary.txt set TempSumfile=bin\tsummary.txt
:****echo >%TempSumfile% Summary of all kernels build :****echo >%TempSumfile% Summary of all kernels build
:****echo.|date >>%TempSumfile% :****echo.|date >>%TempSumfile%
:****echo.|time >>%TempSumfile% :****echo.|time >>%TempSumfile%
:****for %%i in (bin\k*.map) do call %0 $SUMMARY %%i :****for %%i in (bin\k*.map) do call %0 $SUMMARY %%i
if exist %Sumfile% del %Sumfile% if exist %Sumfile% del %Sumfile%
if exist %TempSumfile% del %TempSumfile% if exist %TempSumfile% del %TempSumfile%
>ktemp.bat >ktemp.bat
for %%i in (bin\k*.map) do echo call %0 $SUMMARY %%i >>ktemp.bat for %%i in (bin\k*.map) do echo call %0 $SUMMARY %%i >>ktemp.bat
sort <ktemp.bat >ktemps.bat sort <ktemp.bat >ktemps.bat
call ktemps.bat call ktemps.bat
del ktemp.bat del ktemp.bat
del ktemps.bat del ktemps.bat
echo >>%Sumfile% Summary of all kernels build echo >>%Sumfile% Summary of all kernels build
echo.|date >>%Sumfile% echo.|date >>%Sumfile%
echo.|time >>%Sumfile% echo.|time >>%Sumfile%
find <%TempSumfile% "H" >>%Sumfile% find <%TempSumfile% "H" >>%Sumfile%
del %TempSumfile% del %TempSumfile%
set TempSumfile= set TempSumfile=
set Sumfile= set Sumfile=
goto end goto end
:summary :summary
echo H************************************************* %2 >>%TempSumfile% echo H************************************************* %2 >>%TempSumfile%
find<%2 " HMA_TEXT"|find/V "HMA_TEXT_START"|find/V "HMA_TEXT_END">>%TempSumfile% find<%2 " HMA_TEXT"|find/V "HMA_TEXT_START"|find/V "HMA_TEXT_END">>%TempSumfile%
find<%2 " STACK">>%TempSumfile% find<%2 " STACK">>%TempSumfile%
goto end goto end
:************* done with summary ********************************* :************* done with summary *********************************
:daswarwohlnix :daswarwohlnix
echo Sorry, something didn't work as expected :-( echo Sorry, something didn't work as expected :-(
set ONERROR= set ONERROR=
:end :end

View File

@ -1,37 +1,37 @@
@echo off @echo off
:- batch file to clean everything :- batch file to clean everything
:- $Id: clean.bat 1181 2006-05-20 20:45:59Z mceric $ :- $Id: clean.bat 1181 2006-05-20 20:45:59Z mceric $
if not exist config.bat echo You must copy CONFIG.B to CONFIG.BAT and edit it to reflect your setup! if not exist config.bat echo You must copy CONFIG.B to CONFIG.BAT and edit it to reflect your setup!
if not exist config.bat goto end if not exist config.bat goto end
call config.bat call config.bat
call default.bat call default.bat
cd utils cd utils
%MAKE% clean %MAKE% clean
cd ..\lib cd ..\lib
%MAKE% clean %MAKE% clean
cd ..\drivers cd ..\drivers
%MAKE% clean %MAKE% clean
cd ..\boot cd ..\boot
%MAKE% clean %MAKE% clean
cd ..\sys cd ..\sys
%MAKE% clean %MAKE% clean
cd ..\kernel cd ..\kernel
%MAKE% clean %MAKE% clean
cd ..\hdr cd ..\hdr
if exist *.bak del *.bak if exist *.bak del *.bak
cd .. cd ..
if exist *.bak del *.bak if exist *.bak del *.bak
:end :end
default.bat clearset default.bat clearset

View File

@ -1,43 +1,43 @@
@echo off @echo off
:- batch file to clobber everything :- batch file to clobber everything
:- $Id: clobber.bat 1181 2006-05-20 20:45:59Z mceric $ :- $Id: clobber.bat 1181 2006-05-20 20:45:59Z mceric $
if not exist config.bat echo You must copy CONFIG.B to CONFIG.BAT and edit it to reflect your setup! if not exist config.bat echo You must copy CONFIG.B to CONFIG.BAT and edit it to reflect your setup!
if not exist config.bat goto end if not exist config.bat goto end
call config.bat call config.bat
call default.bat call default.bat
cd utils cd utils
%MAKE% clobber %MAKE% clobber
cd ..\lib cd ..\lib
%MAKE% clobber %MAKE% clobber
cd ..\drivers cd ..\drivers
%MAKE% clobber %MAKE% clobber
cd ..\boot cd ..\boot
%MAKE% clobber %MAKE% clobber
cd ..\sys cd ..\sys
%MAKE% clobber %MAKE% clobber
cd ..\kernel cd ..\kernel
%MAKE% clobber %MAKE% clobber
cd ..\hdr cd ..\hdr
if exist *.bak del *.bak if exist *.bak del *.bak
cd ..\bin cd ..\bin
if exist sys.com del sys.com if exist sys.com del sys.com
if exist country.sys del country.sys if exist country.sys del country.sys
cd .. cd ..
if exist *.bak del *.bak if exist *.bak del *.bak
if exist status.me del status.me if exist status.me del status.me
:end :end
default.bat clearset default.bat clearset

246
config.b
View File

@ -1,123 +1,123 @@
:- :-
:- batch file that is included in all other batch files for configuration :- batch file that is included in all other batch files for configuration
:- :-
:-**************************************************************** :-****************************************************************
:- NOTICE! You must edit and rename this file to CONFIG.BAT! * :- NOTICE! You must edit and rename this file to CONFIG.BAT! *
:-**************************************************************** :-****************************************************************
:-********************************************************************* :-*********************************************************************
:- determine your compiler settings :- determine your compiler settings
:- :-
:- you have to :- you have to
:- search for XNASM - and set the path for NASM :- search for XNASM - and set the path for NASM
:- search for COMPILER - and set your compiler :- search for COMPILER - and set your compiler
:- search for ??_BASE - and set the path to your compiler :- search for ??_BASE - and set the path to your compiler
:- :-
:-********************************************************************* :-*********************************************************************
:-********************************************************************** :-**********************************************************************
:-- define NASM executable - remember - it should not be protected :-- define NASM executable - remember - it should not be protected
:- mode DJGPP version if you're using Windows NT/2k/XP to compile :- mode DJGPP version if you're using Windows NT/2k/XP to compile
:- because DJGPP-nasm crashes when using protected mode Borland's :- because DJGPP-nasm crashes when using protected mode Borland's
:- make under Windows NT/2k/XP :- make under Windows NT/2k/XP
:-********************************************************************** :-**********************************************************************
set XNASM=nasm set XNASM=nasm
:********************************************************************** :**********************************************************************
:- define your COMPILER type here, pick one of them :- define your COMPILER type here, pick one of them
:********************************************************************** :**********************************************************************
:- Turbo C 2.01 :- Turbo C 2.01
:- set COMPILER=TC2 :- set COMPILER=TC2
:- Turbo C++ 1.01 :- Turbo C++ 1.01
:- set COMPILER=TURBOCPP :- set COMPILER=TURBOCPP
:- Turbo C 3.0 :- Turbo C 3.0
:- set COMPILER=TC3 :- set COMPILER=TC3
:- Borland C 3.1 :- Borland C 3.1
set COMPILER=BC3 set COMPILER=BC3
:- Borland C :- Borland C
:- set COMPILER=BC5 :- set COMPILER=BC5
:- Microsoft C :- Microsoft C
:- set COMPILER=MSCL8 :- set COMPILER=MSCL8
:- Watcom C :- Watcom C
:- set COMPILER=WATCOM :- set COMPILER=WATCOM
:-********************************************************************** :-**********************************************************************
:-- where is the BASE dir of your compiler(s) ?? :-- where is the BASE dir of your compiler(s) ??
:-********************************************************************** :-**********************************************************************
:- set TC2_BASE=c:\tc201 :- set TC2_BASE=c:\tc201
:- set TP1_BASE=c:\tcpp :- set TP1_BASE=c:\tcpp
:- set TC3_BASE=c:\tc3 :- set TC3_BASE=c:\tc3
set BC3_BASE=c:\bc set BC3_BASE=c:\bc
:- set BC5_BASE=c:\bc5 :- set BC5_BASE=c:\bc5
:- set MS_BASE=c:\msvc :- set MS_BASE=c:\msvc
:- if WATCOM maybe you need to set your WATCOM environment variables :- if WATCOM maybe you need to set your WATCOM environment variables
:- and path :- and path
:- if not \%WATCOM% == \ goto watcom_defined :- if not \%WATCOM% == \ goto watcom_defined
:- set WATCOM=c:\watcom :- set WATCOM=c:\watcom
:- set PATH=%PATH%;%WATCOM%\binw :- set PATH=%PATH%;%WATCOM%\binw
:watcom_defined :watcom_defined
:-********************************************************************** :-**********************************************************************
:- where is UPX and which options to use? :- where is UPX and which options to use?
:-********************************************************************** :-**********************************************************************
set XUPX=upx --8086 --best set XUPX=upx --8086 --best
:- or use set XUPX= :- or use set XUPX=
:- if you don't want to use it :- if you don't want to use it
:-********************************************************************** :-**********************************************************************
:- (optionally) which linker to use: :- (optionally) which linker to use:
:- (otherwise will be determined automatically) :- (otherwise will be determined automatically)
:- :-
:- WARNING TLINK needs to be in your PATH! :- WARNING TLINK needs to be in your PATH!
:-********************************************************************** :-**********************************************************************
:- Turbo Link :- Turbo Link
:- set XLINK=tlink /m/c/s/l :- set XLINK=tlink /m/c/s/l
:- Microsoft Link :- Microsoft Link
:- set XLINK=d:\qb\link /ma :- set XLINK=d:\qb\link /ma
:- set XLINK=%MS_BASE%\bin\link /ONERROR:NOEXE /ma /nologo :- set XLINK=%MS_BASE%\bin\link /ONERROR:NOEXE /ma /nologo
:- WATCOM Link (wlinker is a batch file calling ms2wlink and wlink) :- WATCOM Link (wlinker is a batch file calling ms2wlink and wlink)
:- set XLINK=..\utils\wlinker /ma /nologo :- set XLINK=..\utils\wlinker /ma /nologo
:- set path for Turbo Link - use OLDPATH to restore normal path :- set path for Turbo Link - use OLDPATH to restore normal path
:- set OLDPATH=%PATH% :- set OLDPATH=%PATH%
:- set PATH=%PATH%;%TC2_BASE% :- set PATH=%PATH%;%TC2_BASE%
:********************************************************************** :**********************************************************************
:* optionally define your MAKE type here, if not then :* optionally define your MAKE type here, if not then
:* it will be automatically determined, pick one of them :* it will be automatically determined, pick one of them
:* use MS nmake if you want to compile with MSCL :* use MS nmake if you want to compile with MSCL
:********************************************************************** :**********************************************************************
:- Borland MAKE :- Borland MAKE
:- set MAKE=%TC2_BASE%\make :- set MAKE=%TC2_BASE%\make
:- Watcom MAKE in MS mode :- Watcom MAKE in MS mode
:- set MAKE=%WATCOM%\binw\wmake /ms :- set MAKE=%WATCOM%\binw\wmake /ms
:- Microsoft MAKE :- Microsoft MAKE
:- set MAKE=%MS_BASE%\bin\nmake /nologo :- set MAKE=%MS_BASE%\bin\nmake /nologo
:********************************************************************** :**********************************************************************
:* select your default target: required CPU and what FAT system to support :* select your default target: required CPU and what FAT system to support
:********************************************************************** :**********************************************************************
:- set XCPU=86 :- set XCPU=86
:- set XCPU=186 :- set XCPU=186
set XCPU=386 set XCPU=386
:- set XFAT=16 :- set XFAT=16
set XFAT=32 set XFAT=32
:- Give extra compiler DEFINE flags here :- Give extra compiler DEFINE flags here
:- such as -DDEBUG : extra DEBUG output :- such as -DDEBUG : extra DEBUG output
:- -DDOSEMU : printf output goes to dosemu log :- -DDOSEMU : printf output goes to dosemu log
:- set ALLCFLAGS=-DDEBUG :- set ALLCFLAGS=-DDEBUG
:- :-
:- $Id: config.b 864 2004-04-11 12:21:25Z bartoldeman $ :- $Id: config.b 864 2004-04-11 12:21:25Z bartoldeman $
:- :-

View File

@ -1,85 +1,85 @@
@echo off @echo off
:- $Id: default.bat 1482 2009-07-11 16:59:43Z perditionc $ :- $Id: default.bat 1482 2009-07-11 16:59:43Z perditionc $
:- with option clearset, clears all config.bat-made environment variables :- with option clearset, clears all config.bat-made environment variables
:- without options, MAKE / LINK / ... are set to defaults based on COMPILER ... :- without options, MAKE / LINK / ... are set to defaults based on COMPILER ...
if "%1" == "clearset" goto clearset if "%1" == "clearset" goto clearset
:----------------------------------------------------------------------- :-----------------------------------------------------------------------
if not "%COMPILER%" == "" goto skip_cc if not "%COMPILER%" == "" goto skip_cc
set COMPILER=WATCOM set COMPILER=WATCOM
echo No compiler specified, defaulting to Open Watcom echo No compiler specified, defaulting to Open Watcom
:skip_cc :skip_cc
:----------------------------------------------------------------------- :-----------------------------------------------------------------------
if not "%MAKE%" == "" goto skip_make if not "%MAKE%" == "" goto skip_make
if "%COMPILER%" == "TC2" set MAKE=%TC2_BASE%\make if "%COMPILER%" == "TC2" set MAKE=%TC2_BASE%\make
if "%COMPILER%" == "TURBOCPP" set MAKE=%TP1_BASE%\bin\make if "%COMPILER%" == "TURBOCPP" set MAKE=%TP1_BASE%\bin\make
if "%COMPILER%" == "TC3" set MAKE=%TC3_BASE%\bin\make if "%COMPILER%" == "TC3" set MAKE=%TC3_BASE%\bin\make
if "%COMPILER%" == "BC3" set MAKE=%BC3_BASE%\bin\make if "%COMPILER%" == "BC3" set MAKE=%BC3_BASE%\bin\make
if "%COMPILER%" == "BC5" set MAKE=%BC5_BASE%\bin\make if "%COMPILER%" == "BC5" set MAKE=%BC5_BASE%\bin\make
if "%COMPILER%" == "WATCOM" set MAKE=wmake /ms /h if "%COMPILER%" == "WATCOM" set MAKE=wmake /ms /h
if "%COMPILER%" == "MSCL8" set MAKE=%MS_BASE%\bin\nmake /nologo if "%COMPILER%" == "MSCL8" set MAKE=%MS_BASE%\bin\nmake /nologo
echo Make is %MAKE%. echo Make is %MAKE%.
:skip_make :skip_make
:----------------------------------------------------------------------- :-----------------------------------------------------------------------
if not "%XLINK%" == "" goto skip_xlink if not "%XLINK%" == "" goto skip_xlink
if "%COMPILER%" == "TC2" set XLINK=%TC2_BASE%\tlink /m/c if "%COMPILER%" == "TC2" set XLINK=%TC2_BASE%\tlink /m/c
if "%COMPILER%" == "TURBOCPP" set XLINK=%TP1_BASE%\bin\tlink /m/c if "%COMPILER%" == "TURBOCPP" set XLINK=%TP1_BASE%\bin\tlink /m/c
if "%COMPILER%" == "TC3" set XLINK=%TC3_BASE%\bin\tlink /m/c if "%COMPILER%" == "TC3" set XLINK=%TC3_BASE%\bin\tlink /m/c
if "%COMPILER%" == "BC3" set XLINK=%BC3_BASE%\bin\tlink /m/c if "%COMPILER%" == "BC3" set XLINK=%BC3_BASE%\bin\tlink /m/c
if "%COMPILER%" == "BC5" set XLINK=%BC5_BASE%\bin\tlink /m/c if "%COMPILER%" == "BC5" set XLINK=%BC5_BASE%\bin\tlink /m/c
if "%COMPILER%" == "WATCOM" set XLINK=..\utils\wlinker /ma/nologo if "%COMPILER%" == "WATCOM" set XLINK=..\utils\wlinker /ma/nologo
if "%COMPILER%" == "MSCL8" set XLINK=%MS_BASE%\bin\link /ONERROR:NOEXE /ma /nologo if "%COMPILER%" == "MSCL8" set XLINK=%MS_BASE%\bin\link /ONERROR:NOEXE /ma /nologo
echo Linker is %XLINK%. echo Linker is %XLINK%.
:skip_xlink :skip_xlink
:----------------------------------------------------------------------- :-----------------------------------------------------------------------
if not "%XUPX%" == "" set UPXOPT=-U if not "%XUPX%" == "" set UPXOPT=-U
if "%XUPX%" == "" set UPXOPT= if "%XUPX%" == "" set UPXOPT=
goto end goto end
:----------------------------------------------------------------------- :-----------------------------------------------------------------------
:clearset :clearset
if not "%OLDPATH%" == "" set PATH=%OLDPATH% if not "%OLDPATH%" == "" set PATH=%OLDPATH%
if not "%OLDPATH%" == "" set OLDPATH= if not "%OLDPATH%" == "" set OLDPATH=
set MAKE= set MAKE=
set COMPILER= set COMPILER=
set ALLCFLAGS= set ALLCFLAGS=
set CFLAGS= set CFLAGS=
set XCPU= set XCPU=
set XCPU_EX= set XCPU_EX=
set XFAT= set XFAT=
set XLINK= set XLINK=
set TC2_BASE= set TC2_BASE=
set TP1_BASE= set TP1_BASE=
set TC3_BASE= set TC3_BASE=
set BC3_BASE= set BC3_BASE=
set BC5_BASE= set BC5_BASE=
set MS_BASE= set MS_BASE=
set XNASM= set XNASM=
set NASMFLAGS= set NASMFLAGS=
set XUPX= set XUPX=
set UPXOPT= set UPXOPT=
set LOADSEG= set LOADSEG=
:end :end

View File

@ -1,2 +1,2 @@
@ECHO OFF @ECHO OFF
wcl -e3-we-wx-zq-os-s-zp1-mt-bt=DOS absread.c wcl -e3-we-wx-zq-os-s-zp1-mt-bt=DOS absread.c

View File

@ -1,12 +1,12 @@
@echo off @echo off
set FILE=%1 set FILE=%1
set STR=%2 set STR=%2
:loop :loop
shift shift
if "%2" == "" goto end if "%2" == "" goto end
set STR=%STR% %2 set STR=%STR% %2
goto loop goto loop
:end :end
echo %STR%>> %FILE% echo %STR%>> %FILE%

View File

@ -1 +1 @@
for %%f in ( %1 %2 %3 %4 %5 %6 %7 %8 %9 ) do mkptypes %%f >>proto.h for %%f in ( %1 %2 %3 %4 %5 %6 %7 %8 %9 ) do mkptypes %%f >>proto.h

View File

@ -1,10 +1,10 @@
@echo off @echo off
:loop_commandline :loop_commandline
if \%1 == \ goto done_with_commandline if \%1 == \ goto done_with_commandline
if exist %1 del %1>nul if exist %1 del %1>nul
shift shift
goto loop_commandline goto loop_commandline
:done_with_commandline :done_with_commandline

View File

@ -1,4 +1,4 @@
@echo off @echo off
ms2wlink %1 %2 %3 %4 %5 %6 %7 %8 %9 ,,,, > kernel.lnk ms2wlink %1 %2 %3 %4 %5 %6 %7 %8 %9 ,,,, > kernel.lnk
echo op map,statics,verbose >> kernel.lnk echo op map,statics,verbose >> kernel.lnk
call wlink @kernel.lnk call wlink @kernel.lnk