2018-05-29 00:04:59 +03:00
|
|
|
# $NetBSD: Makefile,v 1.3 2018/05/28 21:05:02 chs Exp $
|
2018-01-09 06:31:12 +03:00
|
|
|
|
|
|
|
.include <bsd.own.mk>
|
|
|
|
|
|
|
|
PROG= fstyp
|
|
|
|
SRCS= cd9660.c ext2fs.c fstyp.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
|
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
|
|
|
|
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>
|