NetBSD/usr.sbin/fstyp/Makefile
tkusumi ff998df0a2 fstyp: Add HAMMER1/2 support
FreeBSD has recently imported HAMMER1/2 support from DragonFlyBSD,
so why not in NetBSD as well.

taken-from: DragonFlyBSD
2020-01-01 08:56:41 +00:00

35 lines
1020 B
Makefile

# $NetBSD: Makefile,v 1.9 2020/01/01 08:56:41 tkusumi Exp $
.include <bsd.own.mk>
PROG= fstyp
SRCS= apfs.c cd9660.c exfat.c ext2fs.c fstyp.c hammer.c hammer2.c hfsplus.c msdosfs.c ntfs.c ufs.c
.if (${MKZFS} != "no")
SRCS+= zfs.c
.endif
MAN= fstyp.8
WARNS?= 6
.if (${MKZFS} != "no")
CFLAGS+= -DHAVE_ZFS
COPTS.zfs.c+= -Wno-unknown-pragmas
COPTS.zfs.c+= -Wno-sign-conversion
COPTS.zfs.c+= -Wno-strict-prototypes
COPTS.zfs.c+= -I${NETBSDSRCDIR}/external
COPTS.zfs.c+= -I${NETBSDSRCDIR}/external/cddl/osnet/include
COPTS.zfs.c+= -I${NETBSDSRCDIR}/external/cddl/osnet/sys
COPTS.zfs.c+= -I${NETBSDSRCDIR}/external/cddl/osnet/dist/head
COPTS.zfs.c+= -I${NETBSDSRCDIR}/external/cddl/osnet/dist/lib/libzpool/common
COPTS.zfs.c+= -I${NETBSDSRCDIR}/external/cddl/osnet/dist/uts/common
COPTS.zfs.c+= -I${NETBSDSRCDIR}/external/cddl/osnet/dist/uts/common/fs/zfs
COPTS.zfs.c+= -I${NETBSDSRCDIR}/external/cddl/osnet/dist/lib/libnvpair
LDADD+= -lnvpair -lzfs
.endif
CWARNFLAGS.clang+= -Wno-unknown-pragmas
.include <bsd.prog.mk>