summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2005-04-03 04:56:05 +0000
committerWarner Losh <imp@FreeBSD.org>2005-04-03 04:56:05 +0000
commitdf3a103dc63c8aa1cf8f66fcb0687aa5495dfcbe (patch)
tree303504f8d119db65fe6ffe211c0e3344cea2e273 /sys
parentdfd569ede547534967464ae0a7cc81b46cf1e426 (diff)
Notes
Diffstat (limited to 'sys')
-rw-r--r--sys/conf/kmod.mk7
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/conf/kmod.mk b/sys/conf/kmod.mk
index 07d0c3872ca0..7607c2075326 100644
--- a/sys/conf/kmod.mk
+++ b/sys/conf/kmod.mk
@@ -188,6 +188,9 @@ ${FULLPROG}: ${OBJS}
.endif
_ILINKS=@ machine
+.if ${MACHINE} != ${MACHINE_ARCH}
+_ILINKS+=${MACHINE_ARCH}
+.endif
all: objwarn ${PROG}
@@ -213,8 +216,10 @@ SYSDIR= ${_dir}
${_ILINKS}:
@case ${.TARGET} in \
- machine) \
+ ${MACHINE_ARCH}) \
path=${SYSDIR}/${MACHINE_ARCH}/include ;; \
+ machine) \
+ path=${SYSDIR}/${MACHINE}/include ;; \
@) \
path=${SYSDIR} ;; \
esac ; \