summaryrefslogtreecommitdiffstats
path: root/share/mk
diff options
context:
space:
mode:
authorasami <asami@FreeBSD.org>1997-06-18 03:10:31 +0000
committerasami <asami@FreeBSD.org>1997-06-18 03:10:31 +0000
commit562c018967aaa72609d0c7069dd0ce39bc84cb4f (patch)
treebebc8bd124114cf776c178d8faca421d212adeba /share/mk
parente981ebde8f074db7e2cc779cb4d149b79f41769f (diff)
downloadFreeBSD-src-562c018967aaa72609d0c7069dd0ce39bc84cb4f.zip
FreeBSD-src-562c018967aaa72609d0c7069dd0ce39bc84cb4f.tar.gz
Add "-I${DESTDIR}/usr/include" to CFLAGS if DESTDIR is defined, just
like bsd.lib.mk and bsd.prog.mk. It doesn't add it to CXXINCLUDES, I don't think anybody has written a kernel module with C++. (Not that I think DavidG will allow it anyway. :) Reviewed by: bde
Diffstat (limited to 'share/mk')
-rw-r--r--share/mk/bsd.kmod.mk5
1 files changed, 4 insertions, 1 deletions
diff --git a/share/mk/bsd.kmod.mk b/share/mk/bsd.kmod.mk
index 6717728..a02fdbb 100644
--- a/share/mk/bsd.kmod.mk
+++ b/share/mk/bsd.kmod.mk
@@ -1,5 +1,5 @@
# From: @(#)bsd.prog.mk 5.26 (Berkeley) 6/25/91
-# $Id: bsd.kmod.mk,v 1.35 1997/04/30 21:54:01 fsmp Exp $
+# $Id: bsd.kmod.mk,v 1.36 1997/05/06 14:29:56 dfr Exp $
#
# The include file <bsd.kmod.mk> handles installing Loadable Kernel Modules.
# <bsd.kmod.mk> includes the file named "../Makefile.inc" if it exists,
@@ -112,6 +112,9 @@ ${SMPHDRS}:
#
CFLAGS+=${COPTS} -DKERNEL -DACTUALLY_LKM_NOT_KERNEL -I${.CURDIR}/../../sys \
${CWARNFLAGS}
+.if defined(DESTDIR)
+CFLAGS+= -I${DESTDIR}/usr/include
+.endif
EXPORT_SYMS?= _${KMOD}
OpenPOWER on IntegriCloud