]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/blob - usr.sbin/fstyp/Makefile
MFC r325067:
[FreeBSD/stable/10.git] / usr.sbin / fstyp / Makefile
1 # $FreeBSD$
2
3 .include <bsd.own.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?= 2
15
16 .if ${MK_TESTS} != "no"
17 SUBDIR+=        tests
18 .endif
19
20 CFLAGS+=-I${.CURDIR}/../../sys
21
22 .if ${MK_ZFS} != "no"
23 IGNORE_PRAGMA=  YES
24
25 CFLAGS+= -DNEED_SOLARIS_BOOLEAN -DHAVE_ZFS
26 CFLAGS+= -I${.CURDIR}/../../sys/cddl/compat/opensolaris
27 CFLAGS+= -I${.CURDIR}/../../cddl/compat/opensolaris/include
28 CFLAGS+= -I${.CURDIR}/../../cddl/compat/opensolaris/lib/libumem
29 CFLAGS+= -I${.CURDIR}/../../cddl/contrib/opensolaris/lib/libnvpair
30 CFLAGS+= -I${.CURDIR}/../../cddl/contrib/opensolaris/lib/libzpool/common
31 CFLAGS+= -I${.CURDIR}/../../sys/cddl/contrib/opensolaris/uts/common/fs/zfs
32 CFLAGS+= -I${.CURDIR}/../../sys/cddl/contrib/opensolaris/uts/common
33 CFLAGS+= -I${.CURDIR}/../../sys/cddl/contrib/opensolaris/uts/common/sys
34 CFLAGS+= -I${.CURDIR}/../../cddl/contrib/opensolaris/head
35 .endif
36
37 DPADD=   ${LIBGEOM} ${LIBMD}
38 LDADD=   -lgeom -lmd
39
40 .if ${MK_ZFS} != "no"
41 DPADD += ${LIBNVPAIR} ${LIBZFS}
42 LDADD += -lnvpair -lzfs
43 .endif
44
45 .include <bsd.prog.mk>