Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/share/mk if S is not already defined, use ${NETBSDSRCDIR}/sy...



details:   https://anonhg.NetBSD.org/src/rev/ef41a4a7c295
branches:  trunk
changeset: 553170:ef41a4a7c295
user:      jdolecek <jdolecek%NetBSD.org@localhost>
date:      Sat Oct 11 07:15:59 2003 +0000

description:
if S is not already defined, use ${NETBSDSRCDIR}/sys or ${BSDSRCDIR}/sys to set
top of kernel source tree

diffstat:

 share/mk/bsd.kmod.mk |  12 ++++++++++--
 1 files changed, 10 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r 4d9937638e7e -r ef41a4a7c295 share/mk/bsd.kmod.mk
--- a/share/mk/bsd.kmod.mk      Sat Oct 11 05:16:18 2003 +0000
+++ b/share/mk/bsd.kmod.mk      Sat Oct 11 07:15:59 2003 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: bsd.kmod.mk,v 1.69 2003/09/04 08:27:08 lukem Exp $
+#      $NetBSD: bsd.kmod.mk,v 1.70 2003/10/11 07:15:59 jdolecek Exp $
 
 .include <bsd.init.mk>
 
@@ -8,7 +8,15 @@
 realinstall:   kmodinstall
 
 ##### Default values
-S?=            /sys
+.if !defined(S)
+.if defined(NETBSDSRCDIR)
+S=             ${NETBSDSRCDIR}/sys
+.elif defined(BSDSRCDIR)
+S=             ${BSDSRCDIR}/sys
+.else
+S=             /sys
+.endif
+.endif
 KERN=          $S/kern
 
 CFLAGS+=       -ffreestanding ${COPTS}



Home | Main Index | Thread Index | Old Index