From 5385446ad362862bf549a152ea9600a62ce5683e Mon Sep 17 00:00:00 2001 From: "David E. O'Brien" Date: Sun, 11 Sep 2005 07:33:43 +0000 Subject: [PATCH] The kernel-depend target doesn't get any information from "compile-with", so repeat the includes paths for that target. --- sys/conf/kern.pre.mk | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/sys/conf/kern.pre.mk b/sys/conf/kern.pre.mk index 008e658bdae..8a2376940dd 100644 --- a/sys/conf/kern.pre.mk +++ b/sys/conf/kern.pre.mk @@ -61,6 +61,25 @@ INCLUDES+= -I$S/contrib/altq INCLUDES+= -I$S/contrib/dev/ath .endif +.if make(depend) || make(kernel-depend) + +# ... and the same for ipfilter +INCLUDES+= -I$S/contrib/ipfilter + +# ... and the same for pf +INCLUDES+= -I$S/contrib/pf + +# ... and the same for Atheros HAL +INCLUDES+= -I$S/contrib/dev/ath/freebsd + +# ... and the same for the NgATM stuff +INCLUDES+= -I$S/contrib/ngatm + +# .. and the same for twa +INCLUDES+= -I$S/dev/twa + +.endif + CFLAGS= ${COPTFLAGS} ${CWARNFLAGS} ${DEBUG} CFLAGS+= ${INCLUDES} -D_KERNEL -include opt_global.h .if ${CC} != "icc"