Makefile revision 238795
1# $FreeBSD: head/sys/boot/zfs/Makefile 238795 2012-07-26 10:10:54Z ache $ 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+= -mpreferred-stack-boundary=2 16CFLAGS+= -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -msoft-float 17.endif 18.if ${MACHINE_CPUARCH} == "powerpc" || ${MACHINE_CPUARCH} == "arm" 19CFLAGS+= -msoft-float 20.endif 21.if ${MACHINE_CPUARCH} == "amd64" 22CFLAGS+= -m32 -march=i386 23.endif 24 25CFLAGS+= -Wformat -Wall 26 27.if ${MACHINE_CPUARCH} == "amd64" 28CLEANFILES+= machine 29machine: 30 ln -sf ${.CURDIR}/../../i386/include machine 31.endif 32 33.include <bsd.lib.mk> 34 35.if ${MACHINE_CPUARCH} == "amd64" 36.if !exists(machine) 37beforedepend ${OBJS}: machine 38.endif 39.endif 40