xref: /freebsd/cddl/lib/libctf/Makefile (revision 24e4dcf4ba5e9dedcf89efd358ea3e1fe5867020)
1acc37ca1SEnji Cooper.PATH: ${SRCTOP}/cddl/contrib/opensolaris/common/ctf
2acc37ca1SEnji Cooper.PATH: ${SRCTOP}/cddl/contrib/opensolaris/lib/libctf/common
3acc37ca1SEnji Cooper.PATH: ${SRCTOP}/sys/cddl/contrib/opensolaris/common/ctf
4ebe86aacSJohn Birrell
5*24e4dcf4SLexi WinterPACKAGE=	ctf
6*24e4dcf4SLexi WinterLIB_PACKAGE=
7ebe86aacSJohn BirrellLIB=		ctf
8ebe86aacSJohn BirrellSRCS=		ctf_create.c \
9ebe86aacSJohn Birrell		ctf_decl.c \
10ebe86aacSJohn Birrell		ctf_error.c \
11ebe86aacSJohn Birrell		ctf_hash.c \
12ebe86aacSJohn Birrell		ctf_labels.c \
13ebe86aacSJohn Birrell		ctf_lib.c \
14ebe86aacSJohn Birrell		ctf_lookup.c \
15ebe86aacSJohn Birrell		ctf_open.c \
16ebe86aacSJohn Birrell		ctf_subr.c \
17ebe86aacSJohn Birrell		ctf_types.c \
18ebe86aacSJohn Birrell		ctf_util.c
1938d120bcSMark JohnstonMAN=		ctf.5
20ebe86aacSJohn Birrell
2158406fffSAlan SomersWARNS?=		2
22ebe86aacSJohn BirrellCFLAGS+=	-DCTF_OLD_VERSIONS
23ebe86aacSJohn Birrell
249e5787d2SMatt MacyCFLAGS+= -DIN_BASE
259e5787d2SMatt MacyCFLAGS+= -I${SRCTOP}/sys/contrib/openzfs/include
269e5787d2SMatt MacyCFLAGS+= -I${SRCTOP}/sys/contrib/openzfs/lib/libspl/include/
279e5787d2SMatt MacyCFLAGS+= -I${SRCTOP}/sys/contrib/openzfs/lib/libspl/include/os/freebsd
289e5787d2SMatt MacyCFLAGS+= -include ${SRCTOP}/sys/contrib/openzfs/include/os/freebsd/spl/sys/ccompile.h
299e5787d2SMatt MacyCFLAGS+= -DHAVE_ISSETUGID
309e5787d2SMatt Macy
31acc37ca1SEnji CooperCFLAGS+=	-I${SRCTOP}/sys/cddl/compat/opensolaris \
32acc37ca1SEnji Cooper		-I${SRCTOP}/cddl/compat/opensolaris/include \
33ebe86aacSJohn Birrell		-I${OPENSOLARIS_USR_DISTDIR}/head \
34ebe86aacSJohn Birrell		-I${OPENSOLARIS_USR_DISTDIR}/common/ctf \
35ebe86aacSJohn Birrell		-I${OPENSOLARIS_USR_DISTDIR}/lib/libctf/common \
36ebe86aacSJohn Birrell		-I${OPENSOLARIS_SYS_DISTDIR}/uts/common
37ebe86aacSJohn Birrell
389e5787d2SMatt MacyLIBADD+=	spl z
391189b87fSJohn-Mark Gurney
40ebe86aacSJohn Birrell.include <bsd.lib.mk>
41