]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - usr.sbin/fstyp/Makefile
bhnd(9): Fix a few mandoc related issues
[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 WARNS?= 0
32 CFLAGS.zfs.c+= -DIN_BASE
33 CFLAGS.zfs.c+= -I${SRCTOP}/sys/contrib/openzfs/include
34 CFLAGS.zfs.c+= -I${SRCTOP}/sys/contrib/openzfs/lib/libspl/include
35 CFLAGS.zfs.c+= -I${SRCTOP}/sys/contrib/openzfs/lib/libspl/include/os/freebsd
36 CFLAGS.zfs.c+= -I${SRCTOP}/sys/contrib/openzfs/module/icp/include
37 CFLAGS.zfs.c+= -include ${SRCTOP}/sys/contrib/openzfs/include/os/freebsd/spl/sys/ccompile.h
38 CFLAGS.zfs.c+= -DHAVE_ISSETUGID
39 CFLAGS.zfs.c+= -include ${SRCTOP}/sys/modules/zfs/zfs_config.h
40 .endif
41
42 .for src in ${SRCS}
43 .if ${src} != "zfs.c"
44 CFLAGS.${src}+=-I${SRCTOP}/sys
45 .endif
46 .endfor
47
48
49 LIBADD= geom md ufs
50
51 .if ${MK_ZFS} != "no"
52 LIBADD+=nvpair zfs spl
53 .endif
54
55 .include <bsd.prog.mk>