ce33c57d6c
While nothing was wrong with libnvpair.h, libzfs_core.h was only guarded by MK_CDDL rather than MK_CDDL && MK_ZFS. Rather than ugl'if'ying include/Makefile to impose the extra restriction, just move the non-sys/ includes into INCS with the respect lib builds. This has the added bonus of allowing third party packagers to try and split these libs out of the FreeBSD-runtime package, if they are so inclined. The sys/ include was left alone- generally userland libraries shouldn't install kernel headers. MFC after: 1 week
37 lines
1.2 KiB
Makefile
37 lines
1.2 KiB
Makefile
# $FreeBSD$
|
|
|
|
.PATH: ${SRCTOP}/cddl/compat/opensolaris/misc
|
|
.PATH: ${SRCTOP}/sys/cddl/contrib/opensolaris/common/zfs
|
|
.PATH: ${SRCTOP}/sys/cddl/contrib/opensolaris/uts/common/fs/zfs
|
|
.PATH: ${SRCTOP}/cddl/contrib/opensolaris/lib/libzfs_core/common
|
|
.PATH: ${SRCTOP}/cddl/contrib/opensolaris/lib/libzfs/common
|
|
|
|
LIB= zfs_core
|
|
LIBADD= nvpair
|
|
|
|
INCS= libzfs_core.h
|
|
SRCS= libzfs_core.c \
|
|
libzfs_core_compat.c \
|
|
zfs_ioctl_compat.c
|
|
|
|
SRCS+= libzfs_compat.c
|
|
|
|
WARNS?= 0
|
|
CSTD= c99
|
|
CFLAGS+= -DZFS_NO_ACL
|
|
CFLAGS+= -I${SRCTOP}/sbin/mount
|
|
CFLAGS+= -I${SRCTOP}/sys/cddl/compat/opensolaris
|
|
CFLAGS+= -I${SRCTOP}/cddl/compat/opensolaris/include
|
|
CFLAGS+= -I${SRCTOP}/cddl/compat/opensolaris/lib/libumem
|
|
CFLAGS+= -I${SRCTOP}/cddl/contrib/opensolaris/lib/libzpool/common
|
|
CFLAGS+= -I${SRCTOP}/sys/cddl/contrib/opensolaris/common/zfs
|
|
CFLAGS+= -I${SRCTOP}/sys/cddl/contrib/opensolaris/uts/common/fs/zfs
|
|
CFLAGS+= -I${SRCTOP}/cddl/contrib/opensolaris/head
|
|
CFLAGS+= -I${SRCTOP}/sys/cddl/contrib/opensolaris/uts/common
|
|
CFLAGS+= -I${SRCTOP}/cddl/contrib/opensolaris/lib/libnvpair
|
|
CFLAGS+= -I${SRCTOP}/cddl/contrib/opensolaris/lib/libuutil/common
|
|
CFLAGS+= -I${SRCTOP}/cddl/contrib/opensolaris/lib/libzfs_core/common
|
|
CFLAGS+= -I${SRCTOP}/cddl/contrib/opensolaris/lib/libzfs/common
|
|
|
|
.include <bsd.lib.mk>
|