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_ZFS} != "no" 9SRCS += zfs.c 10.endif 11 12MAN= fstyp.8 13 14WARNS?= 2 15 16.include <src.opts.mk> 17 18.if ${MK_TESTS} != "no" 19SUBDIR+= tests 20.endif 21 22CFLAGS+=-I${.CURDIR}/../../sys 23 24.if ${MK_ZFS} != "no" 25IGNORE_PRAGMA= YES 26 27CFLAGS+= -DNEED_SOLARIS_BOOLEAN -DHAVE_ZFS 28CFLAGS+= -I${.CURDIR}/../../sys/cddl/compat/opensolaris 29CFLAGS+= -I${.CURDIR}/../../cddl/compat/opensolaris/include 30CFLAGS+= -I${.CURDIR}/../../cddl/compat/opensolaris/lib/libumem 31CFLAGS+= -I${.CURDIR}/../../cddl/contrib/opensolaris/lib/libnvpair 32CFLAGS+= -I${.CURDIR}/../../cddl/contrib/opensolaris/lib/libzpool/common 33CFLAGS+= -I${.CURDIR}/../../sys/cddl/contrib/opensolaris/uts/common/fs/zfs 34CFLAGS+= -I${.CURDIR}/../../sys/cddl/contrib/opensolaris/uts/common 35CFLAGS+= -I${.CURDIR}/../../sys/cddl/contrib/opensolaris/uts/common/sys 36CFLAGS+= -I${.CURDIR}/../../cddl/contrib/opensolaris/head 37.endif 38 39LIBADD= geom md 40 41.if ${MK_ZFS} != "no" 42LIBADD+=nvpair zfs 43.endif 44 45.include <bsd.prog.mk> 46