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
|
2017-01-13 02:12:58 +00:00
|
|
|
SRCS= cd9660.c exfat.c ext2fs.c fstyp.c geli.c msdosfs.c ntfs.c ufs.c
|
2015-06-19 05:09:02 +00:00
|
|
|
|
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-09-17 20:55:47 +00:00
|
|
|
WARNS?= 2
|
2014-12-10 14:14:16 +00:00
|
|
|
|
2016-10-18 12:58:17 +00:00
|
|
|
.include <bsd.endian.mk>
|
2015-08-20 15:37:47 +00:00
|
|
|
|
2016-10-18 12:58:17 +00:00
|
|
|
.if ${MK_TESTS} != "no" && ${TARGET_ENDIANNESS} == 1234
|
2015-08-20 15:37:47 +00:00
|
|
|
SUBDIR+= tests
|
|
|
|
.endif
|
|
|
|
|
2017-03-04 11:38:03 +00:00
|
|
|
CFLAGS+=-I${SRCTOP}/sys
|
2015-12-26 19:48:36 +00:00
|
|
|
|
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
|
2017-03-01 04:00:17 +00:00
|
|
|
CFLAGS+= -I${SRCTOP}/sys/cddl/compat/opensolaris
|
|
|
|
CFLAGS+= -I${SRCTOP}/cddl/compat/opensolaris/include
|
|
|
|
CFLAGS+= -I${SRCTOP}/cddl/compat/opensolaris/lib/libumem
|
|
|
|
CFLAGS+= -I${SRCTOP}/cddl/contrib/opensolaris/lib/libnvpair
|
|
|
|
CFLAGS+= -I${SRCTOP}/cddl/contrib/opensolaris/lib/libzpool/common
|
|
|
|
CFLAGS+= -I${SRCTOP}/sys/cddl/contrib/opensolaris/uts/common/fs/zfs
|
|
|
|
CFLAGS+= -I${SRCTOP}/sys/cddl/contrib/opensolaris/uts/common
|
|
|
|
CFLAGS+= -I${SRCTOP}/sys/cddl/contrib/opensolaris/uts/common/sys
|
|
|
|
CFLAGS+= -I${SRCTOP}/cddl/contrib/opensolaris/head
|
2015-06-19 05:09:02 +00:00
|
|
|
.endif
|
|
|
|
|
2015-12-03 21:16:52 +00:00
|
|
|
LIBADD= geom md
|
2015-06-19 05:09:02 +00:00
|
|
|
|
2015-06-23 16:34:43 +00:00
|
|
|
.if ${MK_ZFS} != "no"
|
2015-12-04 03:17:47 +00:00
|
|
|
LIBADD+=nvpair zfs
|
2015-06-19 05:09:02 +00:00
|
|
|
.endif
|
|
|
|
|
2014-12-10 14:14:16 +00:00
|
|
|
.include <bsd.prog.mk>
|