FBSD: Set KERNBUILDDIR for --with-bsd-kernel-build
[openafs.git] / src / libafs / MakefileProto.FBSD.in
index 12f24f5..26e86ea 100644 (file)
@@ -57,6 +57,9 @@ CWARNFLAGS+= -Wno-redundant-decls
 KMODDIR=/boot/modules
 KMOD=  libafs
 SYSDIR= ${KSRC}
+.if !empty(KBLD)
+KERNBUILDDIR=${KBLD}
+.endif
 
 # Name of directory to hold object files and libraries.
 KOBJ = MODLOAD