1# $FreeBSD$ 2 3.include "../../Makefile.inc" 4 5PROG= dtrace 6 7BINDIR?= /usr/sbin 8 9SRCS= dtrace.c 10 11WARNS= 1 12 13CFLAGS+= -I${.CURDIR}/../../../sys/cddl/compat/opensolaris \ 14 -I${.CURDIR}/../../../cddl/compat/opensolaris/include \ 15 -I${OPENSOLARIS_USR_DISTDIR}/head \ 16 -I${OPENSOLARIS_USR_DISTDIR}/lib/libdtrace/common \ 17 -I${OPENSOLARIS_USR_DISTDIR}/lib/libproc/common \ 18 -I${OPENSOLARIS_SYS_DISTDIR}/uts/common \ 19 -I${OPENSOLARIS_SYS_DISTDIR}/compat 20 21.PATH: ${OPENSOLARIS_USR_DISTDIR}/cmd/dtrace 22 23# Optional debugging stuff... 24#CFLAGS+= -DNEED_ERRLOC 25#YFLAGS+= -d 26 27LDFLAGS+= -pthread \ 28 -L${.OBJDIR}/../../lib/libdtrace \ 29 -L${.OBJDIR}/../../lib/libproc \ 30 -L${.OBJDIR}/../../lib/libctf \ 31 -L${.OBJDIR}/../../../lib/libelf 32 33LDADD+= -ldtrace -ly -ll -lproc -lctf -lelf -lz 34 35DPADD+= ${LIBDTRACE} ${LIBCTF} ${LIBELF} ${LIBPTHREAD} ${LIBL} ${LIBY} ${LIBZ} 36 37.include <bsd.prog.mk> 38