]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - cddl/lib/libctf/Makefile
Merge OpenZFS support in to HEAD.
[FreeBSD/FreeBSD.git] / cddl / lib / libctf / Makefile
1 # $FreeBSD$
2
3 .PATH: ${SRCTOP}/cddl/contrib/opensolaris/common/ctf
4 .PATH: ${SRCTOP}/cddl/contrib/opensolaris/lib/libctf/common
5 .PATH: ${SRCTOP}/sys/cddl/contrib/opensolaris/common/ctf
6
7 LIB=            ctf
8 SRCS=           ctf_create.c \
9                 ctf_decl.c \
10                 ctf_error.c \
11                 ctf_hash.c \
12                 ctf_labels.c \
13                 ctf_lib.c \
14                 ctf_lookup.c \
15                 ctf_open.c \
16                 ctf_subr.c \
17                 ctf_types.c \
18                 ctf_util.c
19 MAN=            ctf.5
20
21 WARNS?=         2
22 CFLAGS+=        -DCTF_OLD_VERSIONS
23
24 CFLAGS+= -DIN_BASE
25 CFLAGS+= -I${SRCTOP}/sys/contrib/openzfs/lib/libspl/include/os/freebsd/spl
26 CFLAGS+= -I${SRCTOP}/sys/contrib/openzfs/include
27 CFLAGS+= -I${SRCTOP}/sys/contrib/openzfs/lib/libspl/include/
28 CFLAGS+= -I${SRCTOP}/sys/contrib/openzfs/lib/libspl/include/os/freebsd
29 CFLAGS+= -include ${SRCTOP}/sys/contrib/openzfs/include/os/freebsd/spl/sys/ccompile.h
30 CFLAGS+= -DHAVE_ISSETUGID
31
32 CFLAGS+=        -I${SRCTOP}/sys/cddl/compat/opensolaris \
33                 -I${SRCTOP}/cddl/compat/opensolaris/include \
34                 -I${OPENSOLARIS_USR_DISTDIR}/head \
35                 -I${OPENSOLARIS_USR_DISTDIR}/common/ctf \
36                 -I${OPENSOLARIS_USR_DISTDIR}/lib/libctf/common \
37                 -I${OPENSOLARIS_SYS_DISTDIR}/uts/common
38
39 LIBADD+=        spl z
40
41 .include <bsd.lib.mk>