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

Indexes created Sun Nov 30 08:09:32 GMT 2025