summaryrefslogtreecommitdiff
path: root/dmake/unix/sysvr3/pwd/config.mk
diff options
context:
space:
mode:
Diffstat (limited to 'dmake/unix/sysvr3/pwd/config.mk')
-rw-r--r--dmake/unix/sysvr3/pwd/config.mk20
1 files changed, 20 insertions, 0 deletions
diff --git a/dmake/unix/sysvr3/pwd/config.mk b/dmake/unix/sysvr3/pwd/config.mk
new file mode 100644
index 000000000000..86c535a64c1d
--- /dev/null
+++ b/dmake/unix/sysvr3/pwd/config.mk
@@ -0,0 +1,20 @@
+# This is the Sys VR3 PWD configuration file. It configures SysvR3 unix
+# versions of dmake to use a provided version of getcwd rather than the
+# standard library version that uses popen to capture the output of pwd.
+#
+
+osredir := $(OS)$(DIRSEPSTR)$(OSRELEASE)$(DIRSEPSTR)$(OSENVIRONMENT)
+
+# The following are required sources
+OSRESRC := getcwd.c
+
+.IF $(OSRESRC)
+ SRC += $(OSRESRC)
+ .SETDIR=$(osredir) : $(OSRESRC)
+.END
+
+.SOURCE.h : $(osredir)
+
+# Local configuration modifications for CFLAGS, there's local SysV includes
+# too.
+CFLAGS += -I$(osredir)