1# $FreeBSD$ 2 3.include <src.opts.mk> 4 5PROG= fstyp 6SRCS= apfs.c cd9660.c exfat.c ext2fs.c fstyp.c geli.c hammer.c \ 7 hammer2.c hfsplus.c msdosfs.c ntfs.c ufs.c 8 9.if ${MK_ZFS} != "no" 10SRCS += zfs.c 11.endif 12 13MAN= fstyp.8 14 15WARNS?= 2 16 17.if ${MK_ICONV} == "yes" 18CFLAGS+= -DWITH_ICONV 19.endif 20 21.include <bsd.endian.mk> 22 23.if ${TARGET_ENDIANNESS} == 1234 24HAS_TESTS= 25SUBDIR.${MK_TESTS}+= tests 26.endif 27 28.if ${MK_ZFS} != "no" 29IGNORE_PRAGMA= YES 30 31CFLAGS+= -DNEED_SOLARIS_BOOLEAN -DHAVE_ZFS 32CFLAGS+= -I${SRCTOP}/sys/cddl/compat/opensolaris 33CFLAGS+= -I${SRCTOP}/cddl/compat/opensolaris/include 34CFLAGS+= -I${SRCTOP}/cddl/compat/opensolaris/lib/libumem 35CFLAGS+= -I${SRCTOP}/cddl/contrib/opensolaris/lib/libnvpair 36CFLAGS+= -I${SRCTOP}/cddl/contrib/opensolaris/lib/libzpool/common 37CFLAGS+= -I${SRCTOP}/sys/cddl/contrib/opensolaris/uts/common/fs/zfs 38CFLAGS+= -I${SRCTOP}/sys/cddl/contrib/opensolaris/uts/common 39CFLAGS+= -I${SRCTOP}/cddl/contrib/opensolaris/head 40.endif 41 42CFLAGS+=-I${SRCTOP}/sys 43 44LIBADD= geom md ufs 45 46.if ${MK_ZFS} != "no" 47LIBADD+=nvpair zfs 48.endif 49 50.include <bsd.prog.mk> 51