mirror of
https://github.com/opnsense/src.git
synced 2026-03-03 22:01:37 -05:00
It is useful to have zfs utilities and lib in a separate package as it allow users to create image that can support ZFS (i.e. not with WITHOUT_ZFS in src.conf set) without bloating the default image with all zfs tools (for example for jails). Differential Revision: https://reviews.freebsd.org/D36225
33 lines
863 B
Makefile
33 lines
863 B
Makefile
# $FreeBSD$
|
|
|
|
.PATH: ${SRCTOP}/sys/contrib/openzfs/module/nvpair
|
|
.PATH: ${SRCTOP}/sys/contrib/openzfs/lib/libnvpair
|
|
.PATH: ${SRCTOP}/sys/contrib/openzfs/include
|
|
|
|
LIB= nvpair
|
|
LIBADD= spl
|
|
|
|
PACKAGE= zfs
|
|
# user
|
|
INCS= libnvpair.h
|
|
SRCS= libnvpair.c \
|
|
libnvpair_json.c \
|
|
nvpair_alloc_system.c
|
|
# kernel
|
|
SRCS+= nvpair_alloc_fixed.c \
|
|
nvpair.c \
|
|
fnvpair.c
|
|
|
|
WARNS?= 2
|
|
CFLAGS+= -DIN_BASE -DHAVE_RPC_TYPES
|
|
CFLAGS+= -I${SRCTOP}/sys/contrib/openzfs/include
|
|
CFLAGS+= -I${SRCTOP}/sys/contrib/openzfs/lib/libspl/include/
|
|
CFLAGS+= -I${SRCTOP}/sys/contrib/openzfs/lib/libspl/include/os/freebsd
|
|
CFLAGS+= -I${SRCTOP}/sys
|
|
CFLAGS+= -I${SRCTOP}/cddl/compat/opensolaris/include
|
|
CFLAGS+= -include ${SRCTOP}/sys/contrib/openzfs/include/os/freebsd/spl/sys/ccompile.h
|
|
CFLAGS+= -DHAVE_ISSETUGID -DHAVE_CONFIG_H -DHAVE_XDR_BYTESREC
|
|
|
|
|
|
CFLAGS.nvpair.c+= -UHAVE_RPC_TYPES
|
|
.include <bsd.lib.mk>
|