]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - usr.sbin/fstyp/Makefile
MFV r313676: libpcap 1.8.1
[FreeBSD/FreeBSD.git] / usr.sbin / fstyp / Makefile
1 # $FreeBSD$
2
3 .include <src.opts.mk>
4
5 PROG=   fstyp
6 SRCS=   cd9660.c exfat.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 .include <src.opts.mk>
17 .include <bsd.endian.mk>
18
19 .if ${MK_TESTS} != "no" && ${TARGET_ENDIANNESS} == 1234
20 SUBDIR+=        tests
21 .endif
22
23 CFLAGS+=-I${.CURDIR}/../../sys
24
25 .if ${MK_ZFS} != "no"
26 IGNORE_PRAGMA=  YES
27
28 CFLAGS+= -DNEED_SOLARIS_BOOLEAN -DHAVE_ZFS
29 CFLAGS+= -I${.CURDIR}/../../sys/cddl/compat/opensolaris
30 CFLAGS+= -I${.CURDIR}/../../cddl/compat/opensolaris/include
31 CFLAGS+= -I${.CURDIR}/../../cddl/compat/opensolaris/lib/libumem
32 CFLAGS+= -I${.CURDIR}/../../cddl/contrib/opensolaris/lib/libnvpair
33 CFLAGS+= -I${.CURDIR}/../../cddl/contrib/opensolaris/lib/libzpool/common
34 CFLAGS+= -I${.CURDIR}/../../sys/cddl/contrib/opensolaris/uts/common/fs/zfs
35 CFLAGS+= -I${.CURDIR}/../../sys/cddl/contrib/opensolaris/uts/common
36 CFLAGS+= -I${.CURDIR}/../../sys/cddl/contrib/opensolaris/uts/common/sys
37 CFLAGS+= -I${.CURDIR}/../../cddl/contrib/opensolaris/head
38 .endif
39
40 LIBADD= geom md
41
42 .if ${MK_ZFS} != "no"
43 LIBADD+=nvpair zfs
44 .endif
45
46 .include <bsd.prog.mk>