]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - usr.sbin/fstyp/Makefile
MFhead @ r285904
[FreeBSD/FreeBSD.git] / usr.sbin / fstyp / Makefile
1 # $FreeBSD$
2
3 .include <src.opts.mk>
4
5 PROG=   fstyp
6 SRCS=   cd9660.c ext2fs.c fstyp.c geli.c msdosfs.c ntfs.c ufs.c
7
8 .if ${MK_ZFS} != "no"
9 SRCS += zfs.c
10 .endif
11
12 MAN=    fstyp.8
13
14 WARNS?= 0
15
16 .if ${MK_ZFS} != "no"
17 IGNORE_PRAGMA=  YES
18
19 CFLAGS+= -DNEED_SOLARIS_BOOLEAN -DHAVE_ZFS
20 CFLAGS+= -I${.CURDIR}/../../sys/cddl/compat/opensolaris
21 CFLAGS+= -I${.CURDIR}/../../cddl/compat/opensolaris/include
22 CFLAGS+= -I${.CURDIR}/../../cddl/compat/opensolaris/lib/libumem
23 CFLAGS+= -I${.CURDIR}/../../cddl/contrib/opensolaris/lib/libnvpair
24 CFLAGS+= -I${.CURDIR}/../../cddl/contrib/opensolaris/lib/libzpool/common
25 CFLAGS+= -I${.CURDIR}/../../sys/cddl/contrib/opensolaris/uts/common/fs/zfs
26 CFLAGS+= -I${.CURDIR}/../../sys/cddl/contrib/opensolaris/uts/common
27 CFLAGS+= -I${.CURDIR}/../../sys/cddl/contrib/opensolaris/uts/common/sys
28 CFLAGS+= -I${.CURDIR}/../../cddl/contrib/opensolaris/head
29 .endif
30
31 CFLAGS+=-I${.CURDIR}/../../sys
32
33 DPADD=   ${LIBGEOM} ${LIBMD}
34 LDADD=   -lgeom -lmd
35
36 .if ${MK_ZFS} != "no"
37 DPADD += ${LIBNVPAIR} ${LIBZFS}
38 LDADD += -lnvpair -lzfs
39 .endif
40
41 .include <bsd.prog.mk>