b5e81ea6b0
Approved by: bapt (mentor) MFC after: 1 week Sponsored by: ScaleEngine Inc. Differential Revision: https://reviews.freebsd.org/D4710
46 lines
1.0 KiB
Makefile
46 lines
1.0 KiB
Makefile
# $FreeBSD$
|
|
|
|
.include <src.opts.mk>
|
|
|
|
PROG= fstyp
|
|
SRCS= cd9660.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 <src.opts.mk>
|
|
|
|
.if ${MK_TESTS} != "no"
|
|
SUBDIR+= tests
|
|
.endif
|
|
|
|
CFLAGS+=-I${.CURDIR}/../../sys
|
|
|
|
.if ${MK_ZFS} != "no"
|
|
IGNORE_PRAGMA= YES
|
|
|
|
CFLAGS+= -DNEED_SOLARIS_BOOLEAN -DHAVE_ZFS
|
|
CFLAGS+= -I${.CURDIR}/../../sys/cddl/compat/opensolaris
|
|
CFLAGS+= -I${.CURDIR}/../../cddl/compat/opensolaris/include
|
|
CFLAGS+= -I${.CURDIR}/../../cddl/compat/opensolaris/lib/libumem
|
|
CFLAGS+= -I${.CURDIR}/../../cddl/contrib/opensolaris/lib/libnvpair
|
|
CFLAGS+= -I${.CURDIR}/../../cddl/contrib/opensolaris/lib/libzpool/common
|
|
CFLAGS+= -I${.CURDIR}/../../sys/cddl/contrib/opensolaris/uts/common/fs/zfs
|
|
CFLAGS+= -I${.CURDIR}/../../sys/cddl/contrib/opensolaris/uts/common
|
|
CFLAGS+= -I${.CURDIR}/../../sys/cddl/contrib/opensolaris/uts/common/sys
|
|
CFLAGS+= -I${.CURDIR}/../../cddl/contrib/opensolaris/head
|
|
.endif
|
|
|
|
LIBADD= geom md
|
|
|
|
.if ${MK_ZFS} != "no"
|
|
LIBADD+=nvpair zfs
|
|
.endif
|
|
|
|
.include <bsd.prog.mk>
|