summaryrefslogtreecommitdiffstats
path: root/usr.bin/fstat/Makefile
diff options
context:
space:
mode:
authorlulf <lulf@FreeBSD.org>2007-11-05 23:15:03 +0000
committerlulf <lulf@FreeBSD.org>2007-11-05 23:15:03 +0000
commitc55024b789979f33c87d68c8ec5b9f260f035dc7 (patch)
tree639546011208282d6741e048c1d3015db81b7061 /usr.bin/fstat/Makefile
parentdb5f004bc952a9ca2b8616d36d81399b818a7f5d (diff)
downloadFreeBSD-src-c55024b789979f33c87d68c8ec5b9f260f035dc7.zip
FreeBSD-src-c55024b789979f33c87d68c8ec5b9f260f035dc7.tar.gz
- Add ZFS-support to fstat(1). This allows ZFS-filsystems to be including in
the open file-listing. It is added as a separate source file, so it can respect WITH_/WITHOUT_CDDL as compile-flags. - The warnlevel of the Makefile was decreased to quell solaris #pragma warnings. - Expect that fstat(1) doesn't work with kernel compiled with DEBUG_VFS_LOCKS/DEBUG_LOCKS for now. Approved by: pjd (mentor)
Diffstat (limited to 'usr.bin/fstat/Makefile')
-rw-r--r--usr.bin/fstat/Makefile9
1 files changed, 9 insertions, 0 deletions
diff --git a/usr.bin/fstat/Makefile b/usr.bin/fstat/Makefile
index 8ca57b9..baff3eb 100644
--- a/usr.bin/fstat/Makefile
+++ b/usr.bin/fstat/Makefile
@@ -1,6 +1,8 @@
# @(#)Makefile 8.1 (Berkeley) 6/6/93
# $FreeBSD$
+.include <bsd.own.mk>
+
PROG= fstat
SRCS= cd9660.c fstat.c msdosfs.c
DPADD= ${LIBKVM}
@@ -11,4 +13,11 @@ WARNS?= 6
CFLAGS+=-D_KVM_VNODE
+.if ${MK_CDDL} != "no"
+CFLAGS+= -DZFS
+OBJS+= zfs/zfs.o
+SUBDIR= zfs
+zfs/zfs.o: zfs
+.endif
+
.include <bsd.prog.mk>
OpenPOWER on IntegriCloud