2001-11-04 22:43:35 +01:00
|
|
|
|
#
|
|
|
|
|
# TURBOC.MAK - kernel copiler options for TURBOC
|
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
# Use these for Turbo C 2.01
|
|
|
|
|
|
|
|
|
|
COMPILERPATH=$(TC2_BASE)
|
|
|
|
|
COMPILERBIN=$(COMPILERPATH)
|
|
|
|
|
CC=$(COMPILERBIN)\tcc
|
|
|
|
|
INCLUDEPATH=$(COMPILERPATH)\include
|
|
|
|
|
LIBUTIL=$(COMPILERBIN)\tlib
|
|
|
|
|
LIBPATH=$(COMPILERPATH)\lib
|
|
|
|
|
LIBTERM=
|
|
|
|
|
LIBPLUS=+
|
|
|
|
|
|
2001-11-14 00:36:45 +01:00
|
|
|
|
CFLAGST=-L$(LIBPATH) -mt -lt -a- -k- -f- -ff- -O -Z -d
|
|
|
|
|
CFLAGSC=-L$(LIBPATH) -a- -mc
|
|
|
|
|
|
2001-11-04 22:43:35 +01:00
|
|
|
|
TARGET=KTC
|
|
|
|
|
|
|
|
|
|
# used for building the library
|
|
|
|
|
|
|
|
|
|
CLIB=$(COMPILERPATH)\lib\cs.lib
|
|
|
|
|
MATH_EXTRACT=*LDIV *LXMUL *LURSH *LLSH *LRSH
|
|
|
|
|
MATH_INSERT=+LDIV +LXMUL +LURSH +LLSH +LRSH
|
|
|
|
|
|
|
|
|
|
#
|
|
|
|
|
# heavy stuff - building the kernel
|
|
|
|
|
# Compiler and Options for Borland C++
|
|
|
|
|
# ------------------------------------
|
|
|
|
|
#
|
|
|
|
|
# -zAname <20> <20> Code class
|
|
|
|
|
# -zBname <20> <20> BSS class
|
|
|
|
|
# -zCname <20> <20> Code segment
|
|
|
|
|
# -zDname <20> <20> BSS segment
|
|
|
|
|
# -zEname <20> <20> Far segment
|
|
|
|
|
# -zFname <20> <20> Far class
|
|
|
|
|
# -zGname <20> <20> BSS group
|
|
|
|
|
# -zHname <20> <20> Far group
|
|
|
|
|
# -zPname <20> <20> Code group
|
|
|
|
|
# -zRname <20> <20> Data segment
|
|
|
|
|
# -zSname <20> <20> Data group
|
|
|
|
|
# -zTname <20> <20> Data class
|
|
|
|
|
# -zX <20><><EFBFBD> Use default name for "X"
|
|
|
|
|
|
|
|
|
|
#
|
|
|
|
|
# ALLCFLAGS specified by turbo.cfg and config.mak
|
|
|
|
|
#
|
2001-11-14 00:36:45 +01:00
|
|
|
|
ALLCFLAGS=$(TARGETOPT) $(ALLCFLAGS)
|
2002-01-23 23:29:41 +01:00
|
|
|
|
INITCFLAGS=$(ALLCFLAGS) -zAINIT -zCINIT_TEXT -zDIB -zRID -zTID -zPI_GROUP -zBIB -zGI_GROUP -zSI_GROUP
|
2001-11-14 00:36:45 +01:00
|
|
|
|
CFLAGS=$(ALLCFLAGS) -zAHMA -zCHMA_TEXT
|