]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/blob - sys/boot/zfs/Makefile
MFC r362623:
[FreeBSD/stable/8.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+=        -march=i386
16 CFLAGS+=        -mpreferred-stack-boundary=2
17 CFLAGS+=        -mno-mmx -mno-3dnow -mno-sse -mno-sse2
18 .endif
19 .if ${MACHINE_ARCH} == "i386"
20 CFLAGS+=        -mno-sse3
21 .endif
22 .if ${MACHINE_ARCH} == "powerpc" || ${MACHINE_ARCH} == "arm"
23 CFLAGS+=        -msoft-float
24 .endif
25 .if ${MACHINE_ARCH} == "amd64"
26 CFLAGS+=        -m32
27 .endif
28
29 CFLAGS+=        -Wformat -Wall
30
31 .if ${MACHINE_ARCH} == "amd64"
32 CLEANFILES+=    machine
33 machine:
34         ln -sf ${.CURDIR}/../../i386/include machine
35 .endif
36
37 .include <bsd.lib.mk>
38
39 .if ${MACHINE_ARCH} == "amd64"
40 beforedepend ${OBJS}: machine
41 .endif