xref: /freebsd/cddl/usr.bin/ctfdump/Makefile (revision e9ac41698b2f322d55ccf9da50a3596edb2c1800)
1acc37ca1SEnji Cooper.PATH: ${SRCTOP}/cddl/contrib/opensolaris/tools/ctf/common
2acc37ca1SEnji Cooper.PATH: ${SRCTOP}/cddl/contrib/opensolaris/tools/ctf/dump
3d30b4ed2SJohn Birrell
4*f0408cd9SEmmanuel VadotPACKAGE=	ctf-tools
5d30b4ed2SJohn BirrellPROG=		ctfdump
6d30b4ed2SJohn BirrellSRCS=		dump.c \
7d30b4ed2SJohn Birrell		symbol.c \
8d30b4ed2SJohn Birrell		utils.c
9d30b4ed2SJohn Birrell
109e5787d2SMatt MacyCFLAGS+= -DIN_BASE
119e5787d2SMatt MacyCFLAGS+= -I${SRCTOP}/sys/contrib/openzfs/include
129e5787d2SMatt MacyCFLAGS+= -I${SRCTOP}/sys/contrib/openzfs/lib/libspl/include/
139e5787d2SMatt MacyCFLAGS+= -I${SRCTOP}/sys/contrib/openzfs/lib/libspl/include/os/freebsd
149e5787d2SMatt MacyCFLAGS+= -I${SRCTOP}/sys
159e5787d2SMatt MacyCFLAGS+= -I${SRCTOP}/cddl/compat/opensolaris/include
16d30b4ed2SJohn BirrellCFLAGS+=	-I${OPENSOLARIS_USR_DISTDIR} \
17d30b4ed2SJohn Birrell		-I${OPENSOLARIS_SYS_DISTDIR} \
18d30b4ed2SJohn Birrell		-I${OPENSOLARIS_USR_DISTDIR}/head \
19d30b4ed2SJohn Birrell		-I${OPENSOLARIS_USR_DISTDIR}/cmd/mdb/tools/common \
20acc37ca1SEnji Cooper		-I${SRCTOP}/sys/cddl/compat/opensolaris \
21acc37ca1SEnji Cooper		-I${SRCTOP}/cddl/compat/opensolaris/include \
22d30b4ed2SJohn Birrell		-I${OPENSOLARIS_USR_DISTDIR}/tools/ctf/common \
23d30b4ed2SJohn Birrell		-I${OPENSOLARIS_SYS_DISTDIR}/uts/common
249e5787d2SMatt MacyCFLAGS+= -DHAVE_ISSETUGID
25d30b4ed2SJohn Birrell
26dc4eeb59SBaptiste DaroussinLIBADD=		elf z
27d30b4ed2SJohn Birrell
28d30b4ed2SJohn Birrell.include <bsd.prog.mk>
29