Changeset View
Changeset View
Standalone View
Standalone View
share/mk/bsd.dep.mk
Show First 20 Lines • Show All 149 Lines • ▼ Show 20 Lines | |||||
${_YC}: ${_YSRC} | ${_YC}: ${_YSRC} | ||||
${YACC} ${YFLAGS} ${YFLAGS.${_YSRC}} -o ${_YC} ${.ALLSRC} | ${YACC} ${YFLAGS} ${YFLAGS.${_YSRC}} -o ${_YC} ${.ALLSRC} | ||||
.endif | .endif | ||||
OBJS_DEPEND_GUESS.${_YC:R}.o+= ${_YC} | OBJS_DEPEND_GUESS.${_YC:R}.o+= ${_YC} | ||||
.endfor | .endfor | ||||
.endfor | .endfor | ||||
# DTrace probe definitions | # DTrace probe definitions | ||||
.if defined(SYSROOT) | |||||
DTRACEFLAGS+= -x syslibdir=${SYSROOT}/usr/lib/dtrace | |||||
brooks: I think `/usr/lib` should probably be `${LIBDIR_BASE}`. I don't think it matters in practice… | |||||
bdreweryAuthorUnsubmitted Done Inline ActionsAh! I'll keep it in mind for next time. Dropping this proposal. bdrewery: Ah! I'll keep it in mind for next time. Dropping this proposal. | |||||
.endif | |||||
.if ${SRCS:M*.d} | .if ${SRCS:M*.d} | ||||
CFLAGS+= -I${.OBJDIR} | CFLAGS+= -I${.OBJDIR} | ||||
.endif | .endif | ||||
.for _DSRC in ${SRCS:M*.d:N*/*} | .for _DSRC in ${SRCS:M*.d:N*/*} | ||||
.for _D in ${_DSRC:R} | .for _D in ${_DSRC:R} | ||||
SRCS+= ${_D}.h | SRCS+= ${_D}.h | ||||
${_D}.h: ${_DSRC} | ${_D}.h: ${_DSRC} | ||||
${DTRACE} ${DTRACEFLAGS} -h -s ${.ALLSRC} | ${DTRACE} ${DTRACEFLAGS} -h -s ${.ALLSRC} | ||||
▲ Show 20 Lines • Show All 204 Lines • Show Last 20 Lines |
I think /usr/lib should probably be ${LIBDIR_BASE}. I don't think it matters in practice today, but in CheriBSD we've removed the separate WORLDTMP for libcompat builds so a compat probe would need to link against /usr/lib32/dtrace.