| @@ -1,33 +1,34 @@ | | | @@ -1,33 +1,34 @@ |
1 | # $NetBSD: Makefile,v 1.14 2023/06/03 21:26:29 lukem Exp $ | | 1 | # $NetBSD: Makefile,v 1.15 2024/04/26 18:21:25 christos Exp $ |
2 | | | 2 | |
3 | .include <bsd.own.mk> | | 3 | .include <bsd.own.mk> |
4 | | | 4 | |
5 | PROG= fstyp | | 5 | PROG= fstyp |
6 | SRCS= apfs.c cd9660.c exfat.c ext2fs.c fstyp.c hammer.c hammer2.c hfsplus.c msdosfs.c ntfs.c ufs.c | | 6 | SRCS= apfs.c cd9660.c exfat.c ext2fs.c fstyp.c hammer.c hammer2.c hfsplus.c msdosfs.c ntfs.c ufs.c |
7 | | | 7 | |
8 | .if (${MKZFS} != "no") | | 8 | .if (${MKZFS} != "no") |
9 | SRCS+= zfs.c | | 9 | SRCS+= zfs.c |
10 | .endif | | 10 | .endif |
11 | | | 11 | |
12 | MAN= fstyp.8 | | 12 | MAN= fstyp.8 |
13 | | | 13 | |
14 | WARNS?= 6 | | 14 | WARNS?= 6 |
15 | | | 15 | |
16 | .if (${MKZFS} != "no") | | 16 | .if (${MKZFS} != "no") |
17 | COPTS.zfs.c+= -Wno-unknown-pragmas | | 17 | COPTS.zfs.c+= -Wno-unknown-pragmas |
18 | COPTS.zfs.c+= -Wno-sign-conversion | | 18 | COPTS.zfs.c+= -Wno-sign-conversion |
19 | COPTS.zfs.c+= -Wno-strict-prototypes | | 19 | COPTS.zfs.c+= -Wno-strict-prototypes |
20 | LDADD+= -lnvpair -lzfs | | 20 | LDADD+= -lnvpair |
| | | 21 | DPADD+= ${LIBNVPAIR} |
21 | | | 22 | |
22 | OSNET=${NETBSDSRCDIR}/external/cddl/osnet | | 23 | OSNET=${NETBSDSRCDIR}/external/cddl/osnet |
23 | CPPFLAGS+= -DHAVE_ZFS | | 24 | CPPFLAGS+= -DHAVE_ZFS |
24 | CPPFLAGS.zfs.c+= -I${NETBSDSRCDIR}/external | | 25 | CPPFLAGS.zfs.c+= -I${NETBSDSRCDIR}/external |
25 | CPPFLAGS.zfs.c+= -I${OSNET}/include | | 26 | CPPFLAGS.zfs.c+= -I${OSNET}/include |
26 | CPPFLAGS.zfs.c+= -I${OSNET}/sys | | 27 | CPPFLAGS.zfs.c+= -I${OSNET}/sys |
27 | CPPFLAGS.zfs.c+= -I${OSNET}/dist/head | | 28 | CPPFLAGS.zfs.c+= -I${OSNET}/dist/head |
28 | CPPFLAGS.zfs.c+= -I${OSNET}/dist/lib/libzpool/common | | 29 | CPPFLAGS.zfs.c+= -I${OSNET}/dist/lib/libzpool/common |
29 | CPPFLAGS.zfs.c+= -I${OSNET}/dist/uts/common | | 30 | CPPFLAGS.zfs.c+= -I${OSNET}/dist/uts/common |
30 | CPPFLAGS.zfs.c+= -I${OSNET}/dist/uts/common/fs/zfs | | 31 | CPPFLAGS.zfs.c+= -I${OSNET}/dist/uts/common/fs/zfs |
31 | CPPFLAGS.zfs.c+= -I${OSNET}/dist/lib/libnvpair | | 32 | CPPFLAGS.zfs.c+= -I${OSNET}/dist/lib/libnvpair |
32 | .endif | | 33 | .endif |
33 | | | 34 | |