summaryrefslogtreecommitdiff
path: root/dmake/unix/linux/config.mk
diff options
context:
space:
mode:
Diffstat (limited to 'dmake/unix/linux/config.mk')
-rw-r--r--dmake/unix/linux/config.mk27
1 files changed, 27 insertions, 0 deletions
diff --git a/dmake/unix/linux/config.mk b/dmake/unix/linux/config.mk
new file mode 100644
index 000000000000..75bcf3c2a211
--- /dev/null
+++ b/dmake/unix/linux/config.mk
@@ -0,0 +1,27 @@
+# This is the SysV R3 UNIX 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 are required sources
+OSDSRC :=
+.IF $(OSDSRC)
+ SRC += $(OSDSRC)
+ .SETDIR=$(osrdir) : $(OSDSRC)
+.END
+
+.SOURCE.h : $(osrdir)
+
+# Local configuration modifications for CFLAGS, there's local SysV includes
+# too.
+CFLAGS += -I$(osrdir)
+
+# See if we modify anything in the lower levels.
+.IF $(OSENVIRONMENT) != $(NULL)
+ .INCLUDE .IGNORE : $(osrdir)$(DIRSEPSTR)$(OSENVIRONMENT)$(DIRSEPSTR)config.mk
+.END