]> CyberLeo.Net >> Repos - FreeBSD/releng/8.2.git/blob - sys/boot/zfs/Makefile
Copy stable/8 to releng/8.2 in preparation for FreeBSD-8.2 release.
[FreeBSD/releng/8.2.git] / sys / boot / zfs / Makefile
1 # $FreeBSD$
2
3 LIB=            zfsboot
4 INTERNALLIB=
5
6 SRCS+=          zfs.c
7
8 CFLAGS+=        -DBOOTPROG=\"zfsloader\"
9 CFLAGS+=        -I${.CURDIR}/../common -I${.CURDIR}/../.. -I.
10 CFLAGS+=        -I${.CURDIR}/../../../lib/libstand
11 CFLAGS+=        -I${.CURDIR}/../../cddl/boot/zfs
12
13 CFLAGS+=        -ffreestanding
14 .if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "amd64"
15 CFLAGS+=        -mpreferred-stack-boundary=2
16 CFLAGS+=        -mno-mmx -mno-3dnow -mno-sse -mno-sse2
17 .endif
18 .if ${MACHINE_ARCH} == "i386"
19 CFLAGS+=        -mno-sse3
20 .endif
21 .if ${MACHINE_ARCH} == "powerpc" || ${MACHINE_ARCH} == "arm"
22 CFLAGS+=        -msoft-float
23 .endif
24 .if ${MACHINE_ARCH} == "amd64"
25 CFLAGS+=        -m32 -march=i386
26 .endif
27
28 CFLAGS+=        -Wformat -Wall
29
30 .if ${MACHINE_ARCH} == "amd64"
31 CLEANFILES+=    machine
32 machine:
33         ln -sf ${.CURDIR}/../../i386/include machine
34 .endif
35
36 .include <bsd.lib.mk>
37
38 .if ${MACHINE_ARCH} == "amd64"
39 beforedepend ${OBJS}: machine
40 .endif