1# $FreeBSD: stable/11/usr.sbin/fstyp/Makefile 339118 2018-10-03 02:52:47Z mav $
2
3.include <src.opts.mk>
4
5PROG=	fstyp
6SRCS=	cd9660.c exfat.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
17.if ${MK_TESTS} != "no"
18SUBDIR+=	tests
19.endif
20
21.if ${MK_ZFS} != "no"
22IGNORE_PRAGMA=  YES
23
24CFLAGS+= -DNEED_SOLARIS_BOOLEAN -DHAVE_ZFS
25CFLAGS+= -I${SRCTOP}/sys/cddl/compat/opensolaris
26CFLAGS+= -I${SRCTOP}/cddl/compat/opensolaris/include
27CFLAGS+= -I${SRCTOP}/cddl/compat/opensolaris/lib/libumem
28CFLAGS+= -I${SRCTOP}/cddl/contrib/opensolaris/lib/libnvpair
29CFLAGS+= -I${SRCTOP}/cddl/contrib/opensolaris/lib/libzpool/common
30CFLAGS+= -I${SRCTOP}/sys/cddl/contrib/opensolaris/uts/common/fs/zfs
31CFLAGS+= -I${SRCTOP}/sys/cddl/contrib/opensolaris/uts/common
32CFLAGS+= -I${SRCTOP}/cddl/contrib/opensolaris/head
33.endif
34
35CFLAGS+=-I${SRCTOP}/sys
36
37LIBADD=	geom md
38
39.if ${MK_ZFS} != "no"
40LIBADD+=nvpair zfs
41.endif
42
43.include <bsd.prog.mk>
44