summaryrefslogtreecommitdiff
path: root/dmake/msdos/borland/config.mk
diff options
context:
space:
mode:
Diffstat (limited to 'dmake/msdos/borland/config.mk')
-rw-r--r--dmake/msdos/borland/config.mk46
1 files changed, 46 insertions, 0 deletions
diff --git a/dmake/msdos/borland/config.mk b/dmake/msdos/borland/config.mk
new file mode 100644
index 000000000000..42361968671d
--- /dev/null
+++ b/dmake/msdos/borland/config.mk
@@ -0,0 +1,46 @@
+# This is the Turbo C++ 2.0 DOS configuration file for DMAKE
+# It simply modifies the values of SRC, and checks to see if
+# OSENVIRONMENT is defined. If so it includes the appropriate
+# config.mk file.
+#
+# It also sets the values of .SOURCE.c and .SOURCE.h to include the local
+# directory.
+#
+osrdir := $(OS)$(DIRSEPSTR)$(OSRELEASE)
+
+# The following sources are required for TURBO C++ 2.0
+OSR_SRC = tempnam.c utime.c
+.SETDIR=$(osrdir) : $(OSR_SRC)
+
+SRC += $(OSR_SRC)
+.SOURCE.h : $(osrdir)
+
+# Local configuration modifications for CFLAGS. Make sure your turboc.cfg
+# file contains a -D__STDC__=1 and -DM_I86=1, if not then uncomment the line
+# below!
+#CFLAGS += -DM_I86=1 -D__STDC__=1
+
+# You can get a smaller executable still, buy adding a -1 to the list of
+# flags below, but then you can't run this on an 8086/88 cpu.
+#CFLAGS += -1
+CFLAGS += -I$(osrdir) -d -O -N- -w-nod $(C_$(MODEL))
+ASFLAGS += -t -mx $(S_$(MODEL))
+
+# Debugging information for Turbo-C
+DB_CFLAGS += -v
+DB_LDFLAGS += /v
+
+# See if we modify anything in the lower levels.
+.IF $(OSENVIRONMENT) != $(NULL)
+ .INCLUDE .IGNORE : $(osrdir)$(DIRSEPSTR)$(OSENVIRONMENT)$(DIRSEPSTR)config.mk
+.END
+
+C_s =
+C_m = -mm
+C_c = -mc
+C_l = -ml
+
+S_s = -dmsmall
+S_m = -dmmedium
+S_c = -dmcompact
+S_l = -dmlarge