xref: /freebsd/cddl/lib/drti/Makefile (revision e9ac41698b2f322d55ccf9da50a3596edb2c1800)
1acc37ca1SEnji Cooper.PATH: ${SRCTOP}/cddl/contrib/opensolaris/lib/libdtrace/common
2ebe86aacSJohn Birrell
3*79ac3c12SEmmanuel VadotPACKAGE=	dtrace
4ebe86aacSJohn BirrellSRCS=		drti.c
5ebe86aacSJohn BirrellFILES=		${SRCS:R:S/$/.o/g}
6ebe86aacSJohn BirrellFILESOWN=	${LIBOWN}
7ebe86aacSJohn BirrellFILESGRP=	${LIBGRP}
8ebe86aacSJohn BirrellFILESMODE=	${LIBMODE}
9ebe86aacSJohn BirrellFILESDIR=	${LIBDIR}/dtrace
10029a7373SRui PauloCLEANFILES=	${FILES}
11fe893d53SBryan Drewery# These FILES qualify as libraries for the purpose of LIBRARIES_ONLY.
12fe893d53SBryan Drewery.undef LIBRARIES_ONLY
139e5787d2SMatt MacyCFLAGS+= -DIN_BASE
149e5787d2SMatt MacyCFLAGS+= -I${SRCTOP}/sys/contrib/openzfs/include
159e5787d2SMatt MacyCFLAGS+= -I${SRCTOP}/sys/contrib/openzfs/lib/libspl/include/
169e5787d2SMatt MacyCFLAGS+= -I${SRCTOP}/sys/contrib/openzfs/lib/libspl/include/os/freebsd
179e5787d2SMatt MacyCFLAGS+= -I${SRCTOP}/sys
189e5787d2SMatt MacyCFLAGS+= -include ${SRCTOP}/sys/contrib/openzfs/include/os/freebsd/spl/sys/ccompile.h
199e5787d2SMatt MacyCFLAGS+= -DHAVE_ISSETUGID
20acc37ca1SEnji CooperCFLAGS+=	-I${SRCTOP}/sys/cddl/compat/opensolaris \
21acc37ca1SEnji Cooper		-I${SRCTOP}/cddl/compat/opensolaris/include \
22ebe86aacSJohn Birrell		-I${OPENSOLARIS_USR_DISTDIR}/head \
23ebe86aacSJohn Birrell		-I${OPENSOLARIS_USR_DISTDIR}/lib/libctf/common \
24ebe86aacSJohn Birrell		-I${OPENSOLARIS_USR_DISTDIR}/lib/libdtrace/common \
25513bdf9aSRui Paulo		-I${OPENSOLARIS_SYS_DISTDIR}/uts/common \
268399e5f3SRui Paulo		-DPIC ${PICFLAG}
27513bdf9aSRui Paulo
28d04fbf25SRobert Watson.include <bsd.lib.mk>
29