]> CyberLeo.Net >> Repos - FreeBSD/releng/10.0.git/blob - sys/boot/zfs/Makefile
- Copy stable/10 (r259064) to releng/10.0 as part of the
[FreeBSD/releng/10.0.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_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64"
15 CFLAGS+=        -march=i386
16 CFLAGS+=        -mpreferred-stack-boundary=2
17 CFLAGS+=        -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -msoft-float
18 .endif
19 .if ${MACHINE_CPUARCH} == "powerpc" || ${MACHINE_CPUARCH} == "arm"
20 CFLAGS+=        -msoft-float
21 .endif
22 .if ${MACHINE_CPUARCH} == "amd64"
23 CFLAGS+=        -m32
24 .endif
25
26 CFLAGS+=        -Wformat -Wall
27
28 .if ${MACHINE_CPUARCH} == "amd64"
29 CLEANFILES+=    machine
30 machine:
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)
38 beforedepend ${OBJS}: machine
39 .endif
40 .endif