]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - usr.sbin/fstyp/Makefile
MFV r361936:
[FreeBSD/FreeBSD.git] / usr.sbin / fstyp / Makefile
1 # $FreeBSD$
2
3 .include <src.opts.mk>
4
5 PROG=   fstyp
6 SRCS=   apfs.c cd9660.c exfat.c ext2fs.c fstyp.c geli.c hammer.c        \
7         hammer2.c hfsplus.c msdosfs.c ntfs.c ufs.c
8
9 .if ${MK_ZFS} != "no"
10 SRCS += zfs.c
11 .endif
12
13 MAN=    fstyp.8
14
15 WARNS?= 2
16
17 .if ${MK_ICONV} == "yes"
18 CFLAGS+=        -DWITH_ICONV
19 .endif
20
21 .include <bsd.endian.mk>
22
23 .if ${TARGET_ENDIANNESS} == 1234
24 HAS_TESTS=
25 SUBDIR.${MK_TESTS}+= tests
26 .endif
27
28 .if ${MK_ZFS} != "no"
29 IGNORE_PRAGMA=  YES
30
31 CFLAGS+= -DNEED_SOLARIS_BOOLEAN -DHAVE_ZFS
32 CFLAGS+= -I${SRCTOP}/sys/cddl/compat/opensolaris
33 CFLAGS+= -I${SRCTOP}/cddl/compat/opensolaris/include
34 CFLAGS+= -I${SRCTOP}/cddl/compat/opensolaris/lib/libumem
35 CFLAGS+= -I${SRCTOP}/cddl/contrib/opensolaris/lib/libnvpair
36 CFLAGS+= -I${SRCTOP}/cddl/contrib/opensolaris/lib/libzpool/common
37 CFLAGS+= -I${SRCTOP}/sys/cddl/contrib/opensolaris/uts/common/fs/zfs
38 CFLAGS+= -I${SRCTOP}/sys/cddl/contrib/opensolaris/uts/common
39 CFLAGS+= -I${SRCTOP}/cddl/contrib/opensolaris/head
40 .endif
41
42 CFLAGS+=-I${SRCTOP}/sys
43
44 LIBADD= geom md ufs
45
46 .if ${MK_ZFS} != "no"
47 LIBADD+=nvpair zfs
48 .endif
49
50 .include <bsd.prog.mk>