d6609e6a12
The reason is that FreeBSD refcount.h shadows ZFS refcount.h and that will lead to a build error after a planned import of the ARC buf data scatter-ization. It's possible that some day we will have an opposite problem where a ZFS header would shadow an essential FreeBSD header. So, we need to think about a better long term solution. Discussed with: allanjude MFC after: 17 days
46 lines
1.0 KiB
Makefile
46 lines
1.0 KiB
Makefile
# $FreeBSD$
|
|
|
|
.include <src.opts.mk>
|
|
|
|
PROG= fstyp
|
|
SRCS= cd9660.c exfat.c ext2fs.c fstyp.c geli.c msdosfs.c ntfs.c ufs.c
|
|
|
|
.if ${MK_ZFS} != "no"
|
|
SRCS += zfs.c
|
|
.endif
|
|
|
|
MAN= fstyp.8
|
|
|
|
WARNS?= 2
|
|
|
|
.include <bsd.endian.mk>
|
|
|
|
.if ${MK_TESTS} != "no" && ${TARGET_ENDIANNESS} == 1234
|
|
SUBDIR+= tests
|
|
.endif
|
|
|
|
.if ${MK_ZFS} != "no"
|
|
IGNORE_PRAGMA= YES
|
|
|
|
CFLAGS+= -DNEED_SOLARIS_BOOLEAN -DHAVE_ZFS
|
|
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
|
|
.endif
|
|
|
|
CFLAGS+=-I${SRCTOP}/sys
|
|
|
|
LIBADD= geom md
|
|
|
|
.if ${MK_ZFS} != "no"
|
|
LIBADD+=nvpair zfs
|
|
.endif
|
|
|
|
.include <bsd.prog.mk>
|