2014-12-10 14:14:16 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
2015-06-19 05:09:02 +00:00
|
|
|
.include <src.opts.mk>
|
|
|
|
|
2014-12-10 14:14:16 +00:00
|
|
|
PROG= fstyp
|
2015-06-19 05:09:02 +00:00
|
|
|
SRCS= cd9660.c ext2fs.c fstyp.c geli.c msdosfs.c ntfs.c ufs.c
|
|
|
|
|
2015-06-23 16:34:43 +00:00
|
|
|
.if ${MK_ZFS} != "no"
|
2015-06-19 05:09:02 +00:00
|
|
|
SRCS += zfs.c
|
|
|
|
.endif
|
|
|
|
|
2014-12-10 14:14:16 +00:00
|
|
|
MAN= fstyp.8
|
|
|
|
|
2015-06-20 15:03:02 +00:00
|
|
|
WARNS?= 0
|
2014-12-10 14:14:16 +00:00
|
|
|
|
2015-08-20 15:37:47 +00:00
|
|
|
.include <src.opts.mk>
|
|
|
|
|
|
|
|
.if ${MK_TESTS} != "no"
|
|
|
|
SUBDIR+= tests
|
|
|
|
.endif
|
|
|
|
|
2015-06-23 16:34:43 +00:00
|
|
|
.if ${MK_ZFS} != "no"
|
2015-06-19 05:09:02 +00:00
|
|
|
IGNORE_PRAGMA= YES
|
|
|
|
|
2015-06-23 16:34:43 +00:00
|
|
|
CFLAGS+= -DNEED_SOLARIS_BOOLEAN -DHAVE_ZFS
|
2015-06-19 05:09:02 +00:00
|
|
|
CFLAGS+= -I${.CURDIR}/../../sys/cddl/compat/opensolaris
|
|
|
|
CFLAGS+= -I${.CURDIR}/../../cddl/compat/opensolaris/include
|
|
|
|
CFLAGS+= -I${.CURDIR}/../../cddl/compat/opensolaris/lib/libumem
|
|
|
|
CFLAGS+= -I${.CURDIR}/../../cddl/contrib/opensolaris/lib/libnvpair
|
|
|
|
CFLAGS+= -I${.CURDIR}/../../cddl/contrib/opensolaris/lib/libzpool/common
|
|
|
|
CFLAGS+= -I${.CURDIR}/../../sys/cddl/contrib/opensolaris/uts/common/fs/zfs
|
|
|
|
CFLAGS+= -I${.CURDIR}/../../sys/cddl/contrib/opensolaris/uts/common
|
|
|
|
CFLAGS+= -I${.CURDIR}/../../sys/cddl/contrib/opensolaris/uts/common/sys
|
|
|
|
CFLAGS+= -I${.CURDIR}/../../cddl/contrib/opensolaris/head
|
|
|
|
.endif
|
|
|
|
|
|
|
|
CFLAGS+=-I${.CURDIR}/../../sys
|
|
|
|
|
|
|
|
DPADD= ${LIBGEOM} ${LIBMD}
|
|
|
|
LDADD= -lgeom -lmd
|
|
|
|
|
2015-06-23 16:34:43 +00:00
|
|
|
.if ${MK_ZFS} != "no"
|
2015-06-19 05:09:02 +00:00
|
|
|
DPADD += ${LIBNVPAIR} ${LIBZFS}
|
|
|
|
LDADD += -lnvpair -lzfs
|
|
|
|
.endif
|
|
|
|
|
2014-12-10 14:14:16 +00:00
|
|
|
.include <bsd.prog.mk>
|