--- src/sys/boot/pc32/libi386/Makefile 2006/11/07 06:43:19 1.8 +++ src/sys/boot/pc32/libi386/Makefile 2007/05/18 07:41:43 1.9 @@ -35,19 +35,19 @@ CFLAGS+= -I${.CURDIR}/../../common -I${. # the location of libstand CFLAGS+= -I${.CURDIR}/../../../../lib/libstand/ -# XXX removed -## Make "machine" required for all objects -## (based on the more complete case in sys/arch/i386/boot/Makefile.inc) -#${SRCS:M*.c:R:S/$/.o/g}: machine -# -## If it's not there, don't consider it a target -#.if exists(${.CURDIR}/../../../arch/i386/include) -#beforedepend ${OBJS}: machine -# -#CLEANFILES+= machine -#machine: -# ${LN} -sf ${.CURDIR}/../../../arch/i386/include machine -# -#.endif +# If it's not there, don't consider it a target +.if exists(${.CURDIR}/../../../cpu/i386/include) + +# Make "machine" required for all objects +# (based on the more complete case in sys/arch/i386/boot/Makefile.inc) +${SRCS:M*.c:R:S/$/.o/g}: machine + +beforedepend ${OBJS}: machine + +CLEANFILES+= machine +machine: + ${LN} -sf ${.CURDIR}/../../../cpu/i386/include machine + +.endif .include