Use OBJDIR instead of CURDIR. This unbreaks loading modules through

'make load' if an object dir was, like it is used in /sys/modules. I.e.

	cd /sys/modules/umass
	make obj
	make
	make load

works again without having to install the module.

If no objdir was used the module in the current directory is used.
This commit is contained in:
Nick Hibma 2002-06-17 20:01:06 +00:00
parent e3957e9d67
commit dba3dc7bdc

View File

@ -278,7 +278,7 @@ distribute:
.if !target(load)
load: ${PROG}
${KMODLOAD} -v ${.CURDIR}/${KMOD}.ko
${KMODLOAD} -v ${.OBJDIR}/${KMOD}.ko
.endif
.if !target(unload)