From: Simon Schubert Date: Fri, 2 Jan 2009 21:39:54 +0000 (+0100) Subject: Use .CURDIR instead of matching .ALLSRC. X-Git-Tag: v2.3.0~143 X-Git-Url: https://gitweb.dragonflybsd.org/dragonfly.git/commitdiff_plain/ec1618fbfab2d5e0061f5c87d600d1d051a88f4b Use .CURDIR instead of matching .ALLSRC. This allows compilation without object dir. --- diff --git a/sys/boot/pc32/boot2/Makefile b/sys/boot/pc32/boot2/Makefile index 7ad7202c08..a6b9bad505 100644 --- a/sys/boot/pc32/boot2/Makefile +++ b/sys/boot/pc32/boot2/Makefile @@ -98,7 +98,7 @@ boot1$s.o: boot1.S ${.ALLSRC} -o ${.TARGET} -c boot2$s.o: boot2.c ${.CURDIR}/../../common/ufsread.c ${.CURDIR}/../../../../lib/libstand/hammerread.c - ${CC} ${CFLAGS} ${_ADDCFLAGS$s} -S -o boot2$s.s.tmp ${.ALLSRC:M*/boot2.c} + ${CC} ${CFLAGS} ${_ADDCFLAGS$s} -S -o boot2$s.s.tmp ${.CURDIR}/boot2.c sed -e '/align/d' -e '/nop/d' < boot2$s.s.tmp > boot2$s.s rm -f boot2$s.s.tmp ${AS} ${AFLAGS} -o boot2$s.o boot2$s.s