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