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 ${MK_TESTS} != "no" && ${TARGET_ENDIANNESS} == 1234 19SUBDIR+= tests 20.endif 21 22.if ${MK_ZFS} != "no" 23IGNORE_PRAGMA= YES 24 25CFLAGS+= -DNEED_SOLARIS_BOOLEAN -DHAVE_ZFS 26CFLAGS+= -I${SRCTOP}/sys/cddl/compat/opensolaris 27CFLAGS+= -I${SRCTOP}/cddl/compat/opensolaris/include 28CFLAGS+= -I${SRCTOP}/cddl/compat/opensolaris/lib/libumem 29CFLAGS+= -I${SRCTOP}/cddl/contrib/opensolaris/lib/libnvpair 30CFLAGS+= -I${SRCTOP}/cddl/contrib/opensolaris/lib/libzpool/common 31CFLAGS+= -I${SRCTOP}/sys/cddl/contrib/opensolaris/uts/common/fs/zfs 32CFLAGS+= -I${SRCTOP}/sys/cddl/contrib/opensolaris/uts/common 33CFLAGS+= -I${SRCTOP}/sys/cddl/contrib/opensolaris/uts/common/sys 34CFLAGS+= -I${SRCTOP}/cddl/contrib/opensolaris/head 35.endif 36 37CFLAGS+=-I${SRCTOP}/sys 38 39LIBADD= geom md 40 41.if ${MK_ZFS} != "no" 42LIBADD+=nvpair zfs 43.endif 44 45.include <bsd.prog.mk> 46