diff options
author | rpaulo <rpaulo@FreeBSD.org> | 2014-07-05 20:08:35 +0000 |
---|---|---|
committer | rpaulo <rpaulo@FreeBSD.org> | 2014-07-05 20:08:35 +0000 |
commit | c5e392f88d5591c4d92dbc05e224ec98ddb1d609 (patch) | |
tree | 2c4580e77b1a0c6015456f845709c606061f8b81 | |
parent | d354f1271b6f38213a605313dc78c79d336e1f17 (diff) | |
download | FreeBSD-src-c5e392f88d5591c4d92dbc05e224ec98ddb1d609.zip FreeBSD-src-c5e392f88d5591c4d92dbc05e224ec98ddb1d609.tar.gz |
bsd.dep.mk: add support for generating DTrace header files from .d files.
MFC after: 3 weeks
-rw-r--r-- | share/mk/bsd.dep.mk | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/share/mk/bsd.dep.mk b/share/mk/bsd.dep.mk index deac736..dea59e6 100644 --- a/share/mk/bsd.dep.mk +++ b/share/mk/bsd.dep.mk @@ -78,6 +78,7 @@ ${_S:R}.o: ${_S} .endfor .endif +# Lexical analyzers .for _LSRC in ${SRCS:M*.l:N*/*} .for _LC in ${_LSRC:R}.c ${_LC}: ${_LSRC} @@ -90,6 +91,7 @@ CLEANFILES+= ${_LC} .endfor .endfor +# Yacc grammars .for _YSRC in ${SRCS:M*.y:N*/*} .for _YC in ${_YSRC:R}.c SRCS:= ${SRCS:S/${_YSRC}/${_YC}/} @@ -117,6 +119,16 @@ ${_YC:R}.o: ${_YC} .endif .endfor .endfor + +# DTrace probe definitions +.for _DSRC in ${SRCS:M*.d:N*/*} +.for _DH in ${_DSRC:R}.h +${_DH}: ${_DSRC} + ${DTRACE} -xnolibs -h -s ${.ALLSRC} +SRCS:= ${SRCS:S/${_DSRC}/${_DH}/} +CLEANFILES+= ${_DH} +.endfor +.endfor .endif .if !target(depend) |