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