f24fbfc1e1
Add the ability to detect ZFS and GELI encrypted file systems to fstyp(8) MFC: r284644 Fix GCC Warnings MFC: r284728 Only build ZFS support in absense of WITHOUT_ZFS MFC: r285426 Remove excess copyrights MFC: r286569 Use GELI sentinel constant MFC: r287937 Eliminate unneeded copying of vdev data, goto, etc. and add a note that checksum of vdev label should be checked (which is not done currently). No functional change. While I'm there, raise WARNS to 2. MFC: r292757 Fix order of includes in usr.sbin/fstyp/zfs.c MFC: r292829 Eliminate unneeded includes.
46 lines
1.1 KiB
Makefile
46 lines
1.1 KiB
Makefile
# $FreeBSD$
|
|
|
|
.include <bsd.own.mk>
|
|
|
|
PROG= fstyp
|
|
SRCS= cd9660.c ext2fs.c fstyp.c geli.c msdosfs.c ntfs.c ufs.c
|
|
|
|
.if ${MK_ZFS} != "no"
|
|
SRCS += zfs.c
|
|
.endif
|
|
|
|
MAN= fstyp.8
|
|
|
|
WARNS?= 2
|
|
|
|
.if ${MK_TESTS} != "no"
|
|
SUBDIR+= tests
|
|
.endif
|
|
|
|
CFLAGS+=-I${.CURDIR}/../../sys
|
|
|
|
.if ${MK_ZFS} != "no"
|
|
IGNORE_PRAGMA= YES
|
|
|
|
CFLAGS+= -DNEED_SOLARIS_BOOLEAN -DHAVE_ZFS
|
|
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
|
|
|
|
DPADD= ${LIBGEOM} ${LIBMD}
|
|
LDADD= -lgeom -lmd
|
|
|
|
.if ${MK_ZFS} != "no"
|
|
DPADD += ${LIBNVPAIR} ${LIBZFS}
|
|
LDADD += -lnvpair -lzfs
|
|
.endif
|
|
|
|
.include <bsd.prog.mk>
|