1# $FreeBSD$ 2 3LIB= zfsboot 4INTERNALLIB= 5 6SRCS+= zfs.c 7 8CFLAGS+= -DBOOTPROG=\"zfsloader\" 9CFLAGS+= -I${.CURDIR}/../common -I${.CURDIR}/../.. -I. 10CFLAGS+= -I${.CURDIR}/../../../lib/libstand 11CFLAGS+= -I${.CURDIR}/../../cddl/boot/zfs 12 13CFLAGS+= -ffreestanding 14.if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64" 15CFLAGS+= -march=i386 16CFLAGS.gcc+= -mpreferred-stack-boundary=2 17CFLAGS+= -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -msoft-float 18.endif 19.if ${MACHINE_CPUARCH} == "powerpc" || ${MACHINE_CPUARCH} == "arm" 20CFLAGS+= -msoft-float 21.endif 22.if ${MACHINE_CPUARCH} == "amd64" 23CFLAGS+= -m32 24.endif 25 26CFLAGS+= -Wformat -Wall 27 28.if ${MACHINE_CPUARCH} == "amd64" 29CLEANFILES+= machine 30machine: 31 ln -sf ${.CURDIR}/../../i386/include machine 32.endif 33 34.include <bsd.lib.mk> 35 36.if ${MACHINE_CPUARCH} == "amd64" 37.if !exists(machine) 38beforedepend ${OBJS}: machine 39.endif 40.endif 41