freebsd-dev/sys/boot/libsa32/Makefile

25 lines
397 B
Makefile
Raw Normal View History

# $FreeBSD$
.include <bsd.init.mk>
LIB=sa32
.if ${MACHINE_CPUARCH} == "amd64"
LIBSA_CPUARCH=i386
.else
LIBSA_CPUARCH=${MACHINE_CPUARCH}
.endif
.if ${MACHINE_ARCH} == "amd64"
CFLAGS+= -m32 -I.
.endif
.PATH: ${SASRC}
.include "${SASRC}/Makefile"
.if ${MACHINE_CPUARCH} == "amd64"
CLEANFILES+= machine
beforedepend ${OBJS}: machine
machine: .NOMETA
ln -fs ${SYSDIR}/i386/include machine
.endif