Deleted Added
full compact
Makefile (259913) Makefile (287227)
1# $FreeBSD: head/sys/boot/zfs/Makefile 259913 2013-12-26 11:32:39Z dim $
1# $FreeBSD: head/sys/boot/zfs/Makefile 287227 2015-08-27 23:46:42Z imp $
2
3LIB= zfsboot
4INTERNALLIB=
5
6SRCS+= zfs.c
7
8CFLAGS+= -DBOOTPROG=\"zfsloader\"
9CFLAGS+= -I${.CURDIR}/../common -I${.CURDIR}/../.. -I.
10CFLAGS+= -I${.CURDIR}/../../../lib/libstand
11CFLAGS+= -I${.CURDIR}/../../cddl/boot/zfs
12
2
3LIB= zfsboot
4INTERNALLIB=
5
6SRCS+= zfs.c
7
8CFLAGS+= -DBOOTPROG=\"zfsloader\"
9CFLAGS+= -I${.CURDIR}/../common -I${.CURDIR}/../.. -I.
10CFLAGS+= -I${.CURDIR}/../../../lib/libstand
11CFLAGS+= -I${.CURDIR}/../../cddl/boot/zfs
12
13CFLAGS+= -ffreestanding
14.if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64"
15CFLAGS+= -march=i386
13.if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64"
14CFLAGS+= -march=i386
16CFLAGS.gcc+= -mpreferred-stack-boundary=2
17CFLAGS+= -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -msoft-float
18.endif
15.endif
19.if ${MACHINE_CPUARCH} == "powerpc" || ${MACHINE_CPUARCH} == "arm"
20CFLAGS+= -msoft-float
21.endif
22.if ${MACHINE_CPUARCH} == "amd64"
23CFLAGS+= -m32
24.endif
25
26CFLAGS+= -Wformat -Wall
27
28.if ${MACHINE_CPUARCH} == "amd64"
29CLEANFILES+= machine
30machine:
31 ln -sf ${.CURDIR}/../../i386/include machine
32.endif
33
16.if ${MACHINE_CPUARCH} == "amd64"
17CFLAGS+= -m32
18.endif
19
20CFLAGS+= -Wformat -Wall
21
22.if ${MACHINE_CPUARCH} == "amd64"
23CLEANFILES+= machine
24machine:
25 ln -sf ${.CURDIR}/../../i386/include machine
26.endif
27
28.include <bsd.stand.mk>
34.include <bsd.lib.mk>
35
36.if ${MACHINE_CPUARCH} == "amd64"
37.if !exists(machine)
38beforedepend ${OBJS}: machine
39.endif
40.endif
29.include <bsd.lib.mk>
30
31.if ${MACHINE_CPUARCH} == "amd64"
32.if !exists(machine)
33beforedepend ${OBJS}: machine
34.endif
35.endif