Changeset View
Changeset View
Standalone View
Standalone View
cddl/lib/libzpool/Makefile
Show First 20 Lines • Show All 56 Lines • ▼ Show 20 Lines | |||||
CFLAGS+= -I${SRCTOP}/cddl/contrib/opensolaris/lib/libcmdutils | CFLAGS+= -I${SRCTOP}/cddl/contrib/opensolaris/lib/libcmdutils | ||||
# XXX: pthread doesn't have mutex_owned() equivalent, so we need to look | # XXX: pthread doesn't have mutex_owned() equivalent, so we need to look | ||||
# into libthr private structures. That's sooo evil, but it's only for | # into libthr private structures. That's sooo evil, but it's only for | ||||
# ZFS debugging tools needs. | # ZFS debugging tools needs. | ||||
CFLAGS+= -DWANTS_MUTEX_OWNED | CFLAGS+= -DWANTS_MUTEX_OWNED | ||||
CFLAGS+= -I${SRCTOP}/lib/libpthread/thread | CFLAGS+= -I${SRCTOP}/lib/libpthread/thread | ||||
CFLAGS+= -I${SRCTOP}/lib/libpthread/sys | CFLAGS+= -I${SRCTOP}/lib/libpthread/sys | ||||
CFLAGS+= -I${SRCTOP}/lib/libthr/arch/${MACHINE_CPUARCH}/include | CFLAGS+= -I${SRCTOP}/lib/libthr/arch/${MACHINE_CPUARCH}/include | ||||
CFLAGS+= -I${SRCTOP}/sys/contrib/zstd/lib | |||||
CFLAGS+= -I${SRCTOP}/sys/contrib/zstd/lib/common | |||||
LIBADD= md pthread z nvpair avl umem | LIBADD= md pthread z nvpair avl umem zstd | ||||
# atomic.S doesn't like profiling. | # atomic.S doesn't like profiling. | ||||
MK_PROFILE= no | MK_PROFILE= no | ||||
CSTD= c99 | CSTD= c99 | ||||
# Since there are many asserts in this library, it makes no sense to compile | # Since there are many asserts in this library, it makes no sense to compile | ||||
# it without debugging. | # it without debugging. | ||||
CFLAGS+= -g -DDEBUG=1 | CFLAGS+= -g -DDEBUG=1 | ||||
.include <bsd.lib.mk> | .include <bsd.lib.mk> |