1 2.include <src.opts.mk> 3 4PROG= fstyp 5SRCS= apfs.c befs.c cd9660.c exfat.c ext2fs.c fstyp.c geli.c hammer.c \ 6 hammer2.c hfsplus.c msdosfs.c ntfs.c ufs.c 7 8.if ${MK_ZFS} != "no" 9SRCS += zfs.c 10.endif 11 12MAN= fstyp.8 13 14.if ${MK_ICONV} == "yes" 15CFLAGS+= -DWITH_ICONV 16.endif 17 18.include <bsd.endian.mk> 19 20.if ${TARGET_ENDIANNESS} == 1234 21HAS_TESTS= 22SUBDIR.${MK_TESTS}+= tests 23.endif 24 25.if ${MK_ZFS} != "no" 26IGNORE_PRAGMA= YES 27 28CFLAGS+= -DHAVE_ZFS 29CFLAGS.zfs.c+= -DIN_BASE 30CFLAGS.zfs.c+= -I${SRCTOP}/sys/contrib/openzfs/include 31CFLAGS.zfs.c+= -I${SRCTOP}/sys/contrib/openzfs/lib/libspl/include 32CFLAGS.zfs.c+= -I${SRCTOP}/sys/contrib/openzfs/lib/libspl/include/os/freebsd 33CFLAGS.zfs.c+= -I${SRCTOP}/sys/contrib/openzfs/module/icp/include 34CFLAGS.zfs.c+= -include ${SRCTOP}/sys/contrib/openzfs/include/os/freebsd/spl/sys/ccompile.h 35CFLAGS.zfs.c+= -DHAVE_ISSETUGID 36CFLAGS.zfs.c+= -include ${SRCTOP}/sys/modules/zfs/zfs_config.h 37CFLAGS.zfs.c+= -Wno-cast-qual 38.endif 39 40.for src in ${SRCS} 41.if ${src} != "zfs.c" 42CFLAGS.${src}+=-I${SRCTOP}/sys 43.endif 44.endfor 45 46 47LIBADD= geom md ufs 48 49.if ${MK_ZFS} != "no" 50LIBADD+=nvpair zfs spl 51.endif 52 53.include <bsd.prog.mk> 54