1# $FreeBSD: releng/10.3/usr.sbin/fstyp/Makefile 293776 2016-01-12 16:38:09Z allanjude $ 2 3.include <bsd.own.mk> 4 5PROG= fstyp 6SRCS= cd9660.c ext2fs.c fstyp.c geli.c msdosfs.c ntfs.c ufs.c 7 8.if ${MK_ZFS} != "no" 9SRCS += zfs.c 10.endif 11 12MAN= fstyp.8 13 14WARNS?= 2 15 16.if ${MK_TESTS} != "no" 17SUBDIR+= tests 18.endif 19 20CFLAGS+=-I${.CURDIR}/../../sys 21 22.if ${MK_ZFS} != "no" 23IGNORE_PRAGMA= YES 24 25CFLAGS+= -DNEED_SOLARIS_BOOLEAN -DHAVE_ZFS 26CFLAGS+= -I${.CURDIR}/../../sys/cddl/compat/opensolaris 27CFLAGS+= -I${.CURDIR}/../../cddl/compat/opensolaris/include 28CFLAGS+= -I${.CURDIR}/../../cddl/compat/opensolaris/lib/libumem 29CFLAGS+= -I${.CURDIR}/../../cddl/contrib/opensolaris/lib/libnvpair 30CFLAGS+= -I${.CURDIR}/../../cddl/contrib/opensolaris/lib/libzpool/common 31CFLAGS+= -I${.CURDIR}/../../sys/cddl/contrib/opensolaris/uts/common/fs/zfs 32CFLAGS+= -I${.CURDIR}/../../sys/cddl/contrib/opensolaris/uts/common 33CFLAGS+= -I${.CURDIR}/../../sys/cddl/contrib/opensolaris/uts/common/sys 34CFLAGS+= -I${.CURDIR}/../../cddl/contrib/opensolaris/head 35.endif 36 37DPADD= ${LIBGEOM} ${LIBMD} 38LDADD= -lgeom -lmd 39 40.if ${MK_ZFS} != "no" 41DPADD += ${LIBNVPAIR} ${LIBZFS} 42LDADD += -lnvpair -lzfs 43.endif 44 45.include <bsd.prog.mk> 46