FreeBSD/Linux Kernel Cross Reference
sys/boot/zfs/Makefile
1 # $FreeBSD: releng/8.4/sys/boot/zfs/Makefile 243220 2012-11-18 12:30:04Z avg $
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
Cache object: 2bd1d3c901f7ecdfb2966b2c9465034e
|