1# $FreeBSD$ 2 3.include <src.opts.mk> 4 5PROG= fstyp 6SRCS= cd9660.c exfat.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 <bsd.endian.mk> 17 18.if ${TARGET_ENDIANNESS} == 1234 19HAS_TESTS= 20SUBDIR.${MK_TESTS}+= tests 21.endif 22 23.if ${MK_ZFS} != "no" 24IGNORE_PRAGMA= YES 25 26CFLAGS+= -DNEED_SOLARIS_BOOLEAN -DHAVE_ZFS 27CFLAGS+= -I${SRCTOP}/sys/cddl/compat/opensolaris 28CFLAGS+= -I${SRCTOP}/cddl/compat/opensolaris/include 29CFLAGS+= -I${SRCTOP}/cddl/compat/opensolaris/lib/libumem 30CFLAGS+= -I${SRCTOP}/cddl/contrib/opensolaris/lib/libnvpair 31CFLAGS+= -I${SRCTOP}/cddl/contrib/opensolaris/lib/libzpool/common 32CFLAGS+= -I${SRCTOP}/sys/cddl/contrib/opensolaris/uts/common/fs/zfs 33CFLAGS+= -I${SRCTOP}/sys/cddl/contrib/opensolaris/uts/common 34CFLAGS+= -I${SRCTOP}/sys/cddl/contrib/opensolaris/uts/common/sys 35CFLAGS+= -I${SRCTOP}/cddl/contrib/opensolaris/head 36.endif 37 38CFLAGS+=-I${SRCTOP}/sys 39 40LIBADD= geom md ufs 41 42.if ${MK_ZFS} != "no" 43LIBADD+=nvpair zfs 44.endif 45 46.include <bsd.prog.mk> 47