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