]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - usr.sbin/fstyp/Makefile
keyserv: Remove return statement at the end of void functions
[FreeBSD/FreeBSD.git] / usr.sbin / fstyp / Makefile
1
2 .include <src.opts.mk>
3
4 PROG=   fstyp
5 SRCS=   apfs.c befs.c cd9660.c exfat.c ext2fs.c fstyp.c geli.c hammer.c \
6         hammer2.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 .if ${MK_ICONV} == "yes"
15 CFLAGS+=        -DWITH_ICONV
16 .endif
17
18 .include <bsd.endian.mk>
19
20 .if ${TARGET_ENDIANNESS} == 1234
21 HAS_TESTS=
22 SUBDIR.${MK_TESTS}+= tests
23 .endif
24
25 .if ${MK_ZFS} != "no"
26 IGNORE_PRAGMA=  YES
27
28 CFLAGS+= -DHAVE_ZFS
29 CFLAGS.zfs.c+= -DIN_BASE
30 CFLAGS.zfs.c+= -I${SRCTOP}/sys/contrib/openzfs/include
31 CFLAGS.zfs.c+= -I${SRCTOP}/sys/contrib/openzfs/lib/libspl/include
32 CFLAGS.zfs.c+= -I${SRCTOP}/sys/contrib/openzfs/lib/libspl/include/os/freebsd
33 CFLAGS.zfs.c+= -I${SRCTOP}/sys/contrib/openzfs/module/icp/include
34 CFLAGS.zfs.c+= -include ${SRCTOP}/sys/contrib/openzfs/include/os/freebsd/spl/sys/ccompile.h
35 CFLAGS.zfs.c+= -DHAVE_ISSETUGID
36 CFLAGS.zfs.c+= -include ${SRCTOP}/sys/modules/zfs/zfs_config.h
37 CFLAGS.zfs.c+= -Wno-cast-qual
38 .endif
39
40 .for src in ${SRCS}
41 .if ${src} != "zfs.c"
42 CFLAGS.${src}+=-I${SRCTOP}/sys
43 .endif
44 .endfor
45
46
47 LIBADD= geom md ufs
48
49 .if ${MK_ZFS} != "no"
50 LIBADD+=nvpair zfs spl
51 .endif
52
53 .include <bsd.prog.mk>