1# $FreeBSD$ 2 3.include <src.opts.mk> 4 5PROG= fstyp 6SRCS= cd9660.c ext2fs.c fstyp.c geli.c msdosfs.c ntfs.c ufs.c 7 8.if ${MK_CDDL} != "no" 9SRCS += zfs.c 10.endif 11 12MAN= fstyp.8 13 14WARNS?= 0 15 16.if ${MK_CDDL} != "no" 17IGNORE_PRAGMA= YES 18 19CFLAGS+= -DNEED_SOLARIS_BOOLEAN -DHAVE_CDDL 20CFLAGS+= -I${.CURDIR}/../../sys/cddl/compat/opensolaris 21CFLAGS+= -I${.CURDIR}/../../cddl/compat/opensolaris/include 22CFLAGS+= -I${.CURDIR}/../../cddl/compat/opensolaris/lib/libumem 23CFLAGS+= -I${.CURDIR}/../../cddl/contrib/opensolaris/lib/libnvpair 24CFLAGS+= -I${.CURDIR}/../../cddl/contrib/opensolaris/lib/libzpool/common 25CFLAGS+= -I${.CURDIR}/../../sys/cddl/contrib/opensolaris/uts/common/fs/zfs 26CFLAGS+= -I${.CURDIR}/../../sys/cddl/contrib/opensolaris/uts/common 27CFLAGS+= -I${.CURDIR}/../../sys/cddl/contrib/opensolaris/uts/common/sys 28CFLAGS+= -I${.CURDIR}/../../cddl/contrib/opensolaris/head 29.endif 30 31CFLAGS+=-I${.CURDIR}/../../sys 32 33DPADD= ${LIBGEOM} ${LIBMD} 34LDADD= -lgeom -lmd 35 36.if ${MK_CDDL} != "no" 37DPADD += ${LIBNVPAIR} ${LIBZFS} 38LDADD += -lnvpair -lzfs 39.endif 40 41.include <bsd.prog.mk> 42