aboutsummaryrefslogtreecommitdiff
path: root/cddl
diff options
context:
space:
mode:
authorAlex Richardson <Alexander.Richardson@cl.cam.ac.uk>2021-01-06 15:39:10 +0000
committerAlex Richardson <arichardson@FreeBSD.org>2021-01-07 09:26:21 +0000
commit1f6612b444e3fc54697a4ef3167efdddff6944ea (patch)
treed15f312852e69e6d0108441f64acba7d40ab6a53 /cddl
parent74bd20769706041108a573601cf0b61c755bdc56 (diff)
downloadsrc-1f6612b444e3fc54697a4ef3167efdddff6944ea.tar.gz
src-1f6612b444e3fc54697a4ef3167efdddff6944ea.zip
Install dtrace.h and dependencies
This makes the minimum amount of changes to allow inclusion of dtrace.h without all the solaris compatibility headers. Installing dtrace.h allows compiling consumers of libdtrace (e.g. https://github.com/tmetsch/python-dtrace) without requiring a copy of the source tree. For python-dtrace I worked around this in https://github.com/tmetsch/python-dtrace/commit/58019c9a12022203a9ffda286dd8b41f1a5ace42 but being able to build the library without installed sources would be extremely useful. Reviewed By: gnn Differential Revision: https://reviews.freebsd.org/D27884
Diffstat (limited to 'cddl')
-rw-r--r--cddl/lib/libdtrace/Makefile7
1 files changed, 7 insertions, 0 deletions
diff --git a/cddl/lib/libdtrace/Makefile b/cddl/lib/libdtrace/Makefile
index d0184185ff74..efd73751e2c0 100644
--- a/cddl/lib/libdtrace/Makefile
+++ b/cddl/lib/libdtrace/Makefile
@@ -64,6 +64,13 @@ FILES= ${DSRCS}
FILESDIR= /usr/lib/dtrace
FILESMODE= ${NOBINMODE}
+INCSGROUPS= INCS SYSINCS
+SYSINCSDIR= ${INCLUDEDIR}/sys
+INCS+= ${SRCTOP}/cddl/contrib/opensolaris/lib/libdtrace/common/dtrace.h
+SYSINCS+= ${SRCTOP}/sys/cddl/contrib/opensolaris/uts/common/sys/dtrace.h
+SYSINCS+= ${SRCTOP}/sys/cddl/contrib/opensolaris/uts/common/sys/ctf_api.h
+SYSINCS+= ${SRCTOP}/sys/cddl/contrib/opensolaris/uts/common/sys/ctf.h
+
WARNS?= 1
CFLAGS+= -DIN_BASE