]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - usr.sbin/fstyp/Makefile
fstyp(8): Fix WITHOUT_ICONV build
[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 hfsplus.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_ICONV} == "yes"
17 CFLAGS+=        -DWITH_ICONV
18 .endif
19
20 .include <bsd.endian.mk>
21
22 .if ${TARGET_ENDIANNESS} == 1234
23 HAS_TESTS=
24 SUBDIR.${MK_TESTS}+= tests
25 .endif
26
27 .if ${MK_ZFS} != "no"
28 IGNORE_PRAGMA=  YES
29
30 CFLAGS+= -DNEED_SOLARIS_BOOLEAN -DHAVE_ZFS
31 CFLAGS+= -I${SRCTOP}/sys/cddl/compat/opensolaris
32 CFLAGS+= -I${SRCTOP}/cddl/compat/opensolaris/include
33 CFLAGS+= -I${SRCTOP}/cddl/compat/opensolaris/lib/libumem
34 CFLAGS+= -I${SRCTOP}/cddl/contrib/opensolaris/lib/libnvpair
35 CFLAGS+= -I${SRCTOP}/cddl/contrib/opensolaris/lib/libzpool/common
36 CFLAGS+= -I${SRCTOP}/sys/cddl/contrib/opensolaris/uts/common/fs/zfs
37 CFLAGS+= -I${SRCTOP}/sys/cddl/contrib/opensolaris/uts/common
38 CFLAGS+= -I${SRCTOP}/cddl/contrib/opensolaris/head
39 .endif
40
41 CFLAGS+=-I${SRCTOP}/sys
42
43 LIBADD= geom md ufs
44
45 .if ${MK_ZFS} != "no"
46 LIBADD+=nvpair zfs
47 .endif
48
49 .include <bsd.prog.mk>