summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsjg <sjg@NetBSD.org>2000-05-02 03:47:19 +0000
committersjg <sjg@NetBSD.org>2000-05-02 03:47:19 +0000
commitacc4f5dd417ba37b7a83315511bccf5a5eeeef0a (patch)
tree85b051fca49744a5b4fcea1e2024c54874aed6d2
parent44f0af2b1ff23337ec09a40adb62b3768de05dee (diff)
Set variables to mark the absolute and realative paths to the top of
the src tree. Default BSDSRCDIR to ABSTOP.
-rw-r--r--Makefile.inc13
1 files changed, 13 insertions, 0 deletions
diff --git a/Makefile.inc b/Makefile.inc
new file mode 100644
index 00000000000..6cad170b487
--- /dev/null
+++ b/Makefile.inc
@@ -0,0 +1,13 @@
+# $NetBSD: Makefile.inc,v 1.1 2000/05/02 03:47:19 sjg Exp $
+
+.ifndef ABSTOP
+ABSTOP!= cd ${.PARSEDIR}; pwd
+
+RELTOP:= ${.PARSEDIR:S,^${.CURDIR},,}
+
+BSDSRCDIR?= ${ABSTOP}
+
+.if exists(${BSDSRCDIR}/Makefile.local.inc)
+.include "${BSDSRCDIR}/Makefile.local.inc"
+.endif
+.endif