View | Details | Raw Unified | Return to bug 17304
Collapse All | Expand All

(-)bsd.kmod.mk (-5 / +10 lines)
Lines 239-253 Link Here
239
	ln -s $$path ${.TARGET}
239
	ln -s $$path ${.TARGET}
240
.else
240
.else
241
${_ILINKS}:
241
${_ILINKS}:
242
	@set +x; for up in ../.. ../../.. ; do \
242
	@set +x; for up in ${_ILINK_SEARCH_DIRS}; do \
243
		case ${.TARGET} in \
243
		case ${.TARGET} in \
244
		machine) \
244
		machine) \
245
			testpath=${.CURDIR}/$$up/${MACHINE_ARCH}/include ; \
245
			testpath=$$up/${MACHINE_ARCH}/include ; \
246
			path=${.CURDIR}/$$up/${MACHINE_ARCH}/include ; \
246
			path=$$testpath ; \
247
			defaultpath=/usr/include/machine ;; \
247
			defaultpath=/usr/include/machine ;; \
248
		@) \
248
		@) \
249
			testpath=${.CURDIR}/$$up/sys ; \
249
			testpath=$$up/sys ; \
250
			path=${.CURDIR}/$$up ; \
250
			path=$$up ; \
251
			defaultpath=/usr/include ;; \
251
			defaultpath=/usr/include ;; \
252
		esac ; \
252
		esac ; \
253
		if [ -d $$testpath ] ; then break ; fi ; \
253
		if [ -d $$testpath ] ; then break ; fi ; \
Lines 311-320 Link Here
311
	${MODUNLOAD} -n ${KMOD}
311
	${MODUNLOAD} -n ${KMOD}
312
.endif
312
.endif
313
313
314
.if !(defined(KERN) && exists(${KERN}))
314
.if exists(${.CURDIR}/../../kern)
315
.if exists(${.CURDIR}/../../kern)
315
KERN=	${.CURDIR}/../../kern
316
KERN=	${.CURDIR}/../../kern
316
.else
317
.else
317
KERN=	${.CURDIR}/../../sys/kern
318
KERN=	${.CURDIR}/../../sys/kern
319
.endif
320
_ILINK_SEARCH_DIRS=	${.CURDIR}/../.. ${.CURDIR}/../../..
321
.else
322
_ILINK_SEARCH_DIRS=	${KERN}/..
318
.endif
323
.endif
319
324
320
vnode_if.h:	${KERN}/vnode_if.sh ${KERN}/vnode_if.src
325
vnode_if.h:	${KERN}/vnode_if.sh ${KERN}/vnode_if.src

Return to bug 17304