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