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
|
2019-12-23 05:43:18 +00:00
|
|
|
SRCS= apfs.c cd9660.c exfat.c ext2fs.c fstyp.c geli.c hfsplus.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
|
|
|
|
2019-12-23 20:23:02 +00:00
|
|
|
.if ${MK_ICONV} == "yes"
|
|
|
|
CFLAGS+= -DWITH_ICONV
|
|
|
|
.endif
|
|
|
|
|
2016-10-18 12:58:17 +00:00
|
|
|
.include <bsd.endian.mk>
|
2015-08-20 15:37:47 +00:00
|
|
|
|
2017-08-02 08:35:51 +00:00
|
|
|
.if ${TARGET_ENDIANNESS} == 1234
|
2017-08-02 08:50:42 +00:00
|
|
|
HAS_TESTS=
|
2017-08-02 08:35:51 +00:00
|
|
|
SUBDIR.${MK_TESTS}+= tests
|
2015-08-20 15:37:47 +00:00
|
|
|
.endif
|
|
|
|
|
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}/cddl/contrib/opensolaris/head
|
2015-06-19 05:09:02 +00:00
|
|
|
.endif
|
|
|
|
|
2017-06-20 16:45:48 +00:00
|
|
|
CFLAGS+=-I${SRCTOP}/sys
|
|
|
|
|
2018-01-26 00:58:32 +00:00
|
|
|
LIBADD= geom md ufs
|
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>
|