2004-07-09 04:16:31 +02:00
|
|
|
@echo off
|
|
|
|
|
2001-11-14 00:36:45 +01:00
|
|
|
:- batch file that is included in all other batch files for configuration
|
2004-07-09 04:16:31 +02:00
|
|
|
:- $Id$
|
|
|
|
|
|
|
|
:-----------------------------------------------------------------------
|
|
|
|
:- NOTICE! You must edit and rename this file to CONFIG.BAT!
|
|
|
|
:-----------------------------------------------------------------------
|
2001-11-04 20:47:39 +01:00
|
|
|
|
2004-07-09 04:16:31 +02:00
|
|
|
:- determine compiler(s) settings.
|
|
|
|
:-
|
|
|
|
:- you REQUIRED to
|
|
|
|
:- search for NASM - and set the path to NASM
|
|
|
|
:- search for COMPILER - and set the default compiler name
|
|
|
|
:- search for ??_BASE - and set the path to (all) compiler(s)
|
2001-11-04 20:47:39 +01:00
|
|
|
|
2004-07-09 04:16:31 +02:00
|
|
|
set LAST=
|
2001-11-04 20:47:39 +01:00
|
|
|
|
2004-07-09 04:16:31 +02:00
|
|
|
:-----------------------------------------------------------------------
|
|
|
|
:- define NASM executable. It should not be protected mode DJGPP
|
|
|
|
:- version if you're using Windows NT/2k/XP to compile. also:
|
|
|
|
:- NASM/DJGPP crashes when using protected mode Borland's make.
|
2001-11-14 00:36:45 +01:00
|
|
|
|
2004-07-09 04:16:31 +02:00
|
|
|
set NASM=c:\bin\nasm16
|
2001-11-14 00:36:45 +01:00
|
|
|
|
2004-07-09 04:16:31 +02:00
|
|
|
:-----------------------------------------------------------------------
|
|
|
|
:- define COMPILER name here, pick one of them.
|
2001-11-14 00:36:45 +01:00
|
|
|
|
|
|
|
:- Turbo C 2.01
|
2004-07-09 04:16:31 +02:00
|
|
|
set COMPILER=TC
|
2001-11-14 00:36:45 +01:00
|
|
|
:- Turbo C++ 1.01
|
2004-07-09 04:16:31 +02:00
|
|
|
::set COMPILER=TCPP
|
|
|
|
:- Turbo C++ 3.0
|
|
|
|
::set COMPILER=TCPP3
|
2001-11-14 00:36:45 +01:00
|
|
|
:- Borland C
|
2004-07-09 04:16:31 +02:00
|
|
|
::set COMPILER=BC
|
2001-11-14 00:36:45 +01:00
|
|
|
:- Microsoft C
|
2004-07-09 04:16:31 +02:00
|
|
|
::set COMPILER=MSC
|
2002-01-27 02:13:07 +01:00
|
|
|
:- Watcom C
|
2004-07-09 04:16:31 +02:00
|
|
|
::set COMPILER=WATCOM
|
2002-01-23 23:29:41 +01:00
|
|
|
|
2004-07-09 04:16:31 +02:00
|
|
|
:-----------------------------------------------------------------------
|
|
|
|
:- define BASE dir of compiler;
|
|
|
|
:- may be defined for all installed compilers.
|
|
|
|
|
|
|
|
set TC_BASE=c:\tc
|
|
|
|
::set TCPP_BASE=c:\tcpp
|
|
|
|
::set TCPP3_BASE=c:\tcpp3
|
|
|
|
::set BC_BASE=c:\bc
|
|
|
|
::set MSC_BASE=c:\msc
|
|
|
|
::set WATCOM=c:\watcom
|
|
|
|
|
|
|
|
:-----------------------------------------------------------------------
|
|
|
|
:- When compiling executable, compilers search linker through PATH;
|
|
|
|
:- if some linker not in PATH, uncomment OLDPATH and required SETs PATH.
|
|
|
|
|
|
|
|
::set OLDPATH=%PATH%
|
|
|
|
::set PATH=%TC_BASE%;%PATH%
|
|
|
|
::set PATH=%TCPP_BASE%\bin;%PATH%
|
|
|
|
::set PATH=%TCPP3_BASE%\bin;%PATH%
|
|
|
|
::set PATH=%BC_BASE%\bin;%PATH%
|
|
|
|
::set PATH=%MSC_BASE%\bin;%PATH%
|
|
|
|
::set PATH=%WATCOM%\binw;%PATH%
|
|
|
|
|
|
|
|
:- MSC searches libraries only through LIB variable.
|
|
|
|
::set LIB=%MSC_BASE%\lib
|
|
|
|
|
|
|
|
:-----------------------------------------------------------------------
|
|
|
|
:- define which linker to use OR it will be determined AUTOMATICALLY.
|
2001-11-14 00:36:45 +01:00
|
|
|
|
|
|
|
:- Turbo Link
|
2004-07-09 04:16:31 +02:00
|
|
|
::set LINK=tlink /c/m/s/l
|
2001-11-14 00:36:45 +01:00
|
|
|
:- Microsoft Link
|
2004-07-09 04:16:31 +02:00
|
|
|
::set LINK=link /ONERROR:NOEXE /nologo
|
2002-01-27 02:13:07 +01:00
|
|
|
:- WATCOM Link (wlinker is a batch file calling ms2wlink and wlink)
|
2004-07-09 04:16:31 +02:00
|
|
|
::set LINK=..\utils\wlinker /nologo
|
2001-11-14 00:36:45 +01:00
|
|
|
|
2004-07-09 04:16:31 +02:00
|
|
|
:-----------------------------------------------------------------------
|
|
|
|
:- define which librarian to use OR it will be determined AUTOMATICALLY.
|
2001-11-18 00:26:45 +01:00
|
|
|
|
2004-07-09 04:16:31 +02:00
|
|
|
:- Turbo Lib
|
|
|
|
::set LIBUTIL=tlib
|
|
|
|
::set LIBTERM=
|
|
|
|
:- Microsoft Lib
|
|
|
|
::set LIBUTIL=lib /nologo
|
|
|
|
::set LIBTERM=;
|
|
|
|
:- WATCOM Lib
|
|
|
|
::set LIBUTIL=wlib -q
|
|
|
|
::set LIBTERM=
|
|
|
|
|
|
|
|
:-----------------------------------------------------------------------
|
|
|
|
:- define which MAKE to use OR it will be determined AUTOMATICALLY.
|
2001-11-14 00:36:45 +01:00
|
|
|
|
|
|
|
:- Borland MAKE
|
2004-07-09 04:16:31 +02:00
|
|
|
::set MAKE=make
|
|
|
|
::set MAKE=maker -S
|
2001-11-14 00:36:45 +01:00
|
|
|
:- Watcom MAKE in MS mode
|
2004-07-09 04:16:31 +02:00
|
|
|
::set MAKE=wmake /ms
|
2001-11-14 00:36:45 +01:00
|
|
|
:- Microsoft MAKE
|
2004-07-09 04:16:31 +02:00
|
|
|
::set MAKE=nmake /nologo
|
|
|
|
::set MAKE=nmaker /nologo
|
|
|
|
|
|
|
|
:-----------------------------------------------------------------------
|
|
|
|
:- where is UPX and which options to use
|
|
|
|
:- (comment this out if you don't want to use it)
|
2001-11-14 00:36:45 +01:00
|
|
|
|
2004-07-09 04:16:31 +02:00
|
|
|
set XUPX=upx --8086 --best
|
|
|
|
|
|
|
|
:-----------------------------------------------------------------------
|
|
|
|
:- select default target: CPU type (default is 86) and
|
|
|
|
:- what FAT system (default is 32) to support
|
2001-11-14 00:36:45 +01:00
|
|
|
|
2004-07-09 04:16:31 +02:00
|
|
|
::set XCPU=86
|
|
|
|
::set XCPU=186
|
|
|
|
::set XCPU=386
|
2001-11-14 00:36:45 +01:00
|
|
|
|
2004-07-09 04:16:31 +02:00
|
|
|
::set XFAT=16
|
|
|
|
::set XFAT=32
|
2001-11-14 00:36:45 +01:00
|
|
|
|
|
|
|
:- Give extra compiler DEFINE flags here
|
|
|
|
:- such as -DDEBUG : extra DEBUG output
|
|
|
|
:- -DDOSEMU : printf output goes to dosemu log
|
2004-07-09 04:16:31 +02:00
|
|
|
::set ALLCFLAGS=-DDEBUG
|
2001-11-04 20:47:39 +01:00
|
|
|
|
2004-07-09 04:16:31 +02:00
|
|
|
:-----------------------------------------------------------------------
|
2001-11-04 20:47:39 +01:00
|
|
|
|
2004-07-09 04:16:31 +02:00
|
|
|
set LAST=1
|
|
|
|
if not "%LAST%" == "1" defaults.bat clearset
|