1# $FreeBSD$ 2 3.PATH: ${SRCTOP}/stand/zfs ${SRCTOP}/sys/cddl/boot/zfs 4 5BINDIR?= /usr/bin 6SCRIPTSDIR?= /usr/bin 7 8PROG= zfsboottest 9SCRIPTS= zfsboottest.sh 10SCRIPTSNAME= zfsboottest.sh 11MAN= 12 13CFLAGS= -O1 \ 14 -I${SRCTOP}/stand/zfs \ 15 -I${SRCTOP}/sys/cddl/boot/zfs \ 16 -I. \ 17 -fdiagnostics-show-option \ 18 -W -Wextra -Wno-sign-compare -Wno-unused-parameter 19CFLAGS+=-m32 20LIBADD+= md 21 22.if ${MACHINE_CPUARCH} == "amd64" 23beforedepend zfsboottest.o: machine 24CLEANFILES+= machine 25machine: 26 ln -sf ${SRCTOP}/sys/i386/include machine 27.endif 28 29.include <bsd.prog.mk> 30