1# $FreeBSD$ 2 3.PATH: ${SRCTOP}/sys/contrib/openzfs/lib/libzfsbootenv 4.PATH: ${SRCTOP}/sys/contrib/openzfs/include 5 6PACKAGE= zfs 7LIB= zfsbootenv 8SHLIB_MAJOR= 1 9 10LIBADD= zfs 11LIBADD+= nvpair 12 13INCS= libzfsbootenv.h 14USER_C= \ 15 lzbe_device.c \ 16 lzbe_util.c \ 17 lzbe_pair.c 18 19SRCS= $(USER_C) 20 21CSTD= c99 22CFLAGS+= -DIN_BASE 23CFLAGS+= -I${SRCTOP}/sys/contrib/openzfs/include 24CFLAGS+= -I${SRCTOP}/sys/contrib/openzfs/lib/libspl/include/ 25CFLAGS+= -I${SRCTOP}/sys/contrib/openzfs/lib/libspl/include/os/freebsd 26CFLAGS+= -I${SRCTOP}/cddl/compat/opensolaris/include 27CFLAGS+= -I${SRCTOP}/sys/contrib/openzfs/module/icp/include 28CFLAGS+= -include ${SRCTOP}/sys/contrib/openzfs/include/os/freebsd/spl/sys/ccompile.h 29CFLAGS+= -DHAVE_ISSETUGID 30CFLAGS+= -include ${SRCTOP}/sys/modules/zfs/zfs_config.h 31CFLAGS+= -I${SRCTOP}/sys/contrib/openzfs/include/os/freebsd/zfs 32CFLAGS.lzbe_device.c= -Wno-cast-qual 33CFLAGS.lzbe_util.c= -Wno-cast-qual 34CFLAGS.lzbe_pair.c= -Wno-cast-qual 35 36.include <bsd.lib.mk> 37