2020-01-01 11:56:41 +03:00
|
|
|
# $NetBSD: Makefile,v 1.9 2020/01/01 08:56:41 tkusumi Exp $
|
2018-01-09 06:31:12 +03:00
|
|
|
|
|
|
|
.include <bsd.own.mk>
|
|
|
|
|
|
|
|
PROG= fstyp
|
2020-01-01 11:56:41 +03:00
|
|
|
SRCS= apfs.c cd9660.c exfat.c ext2fs.c fstyp.c hammer.c hammer2.c hfsplus.c msdosfs.c ntfs.c ufs.c
|
2018-01-09 06:31:12 +03:00
|
|
|
|
|
|
|
.if (${MKZFS} != "no")
|
|
|
|
SRCS+= zfs.c
|
|
|
|
.endif
|
|
|
|
|
|
|
|
MAN= fstyp.8
|
|
|
|
|
|
|
|
WARNS?= 6
|
|
|
|
|
|
|
|
.if (${MKZFS} != "no")
|
|
|
|
CFLAGS+= -DHAVE_ZFS
|
2018-05-29 00:04:59 +03:00
|
|
|
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
|
2019-06-24 11:27:19 +03:00
|
|
|
COPTS.zfs.c+= -I${NETBSDSRCDIR}/external/cddl/osnet/dist/head
|
2019-06-22 12:48:39 +03:00
|
|
|
COPTS.zfs.c+= -I${NETBSDSRCDIR}/external/cddl/osnet/dist/lib/libzpool/common
|
2018-05-29 00:04:59 +03:00
|
|
|
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
|
2018-01-09 06:31:12 +03:00
|
|
|
LDADD+= -lnvpair -lzfs
|
|
|
|
.endif
|
|
|
|
|
2018-01-22 04:34:42 +03:00
|
|
|
CWARNFLAGS.clang+= -Wno-unknown-pragmas
|
|
|
|
|
2018-01-09 06:31:12 +03:00
|
|
|
.include <bsd.prog.mk>
|