1# $FreeBSD$ 2 3.PATH: ${.CURDIR}/../../../cddl/contrib/opensolaris/cmd/dtrace 4 5PROG= dtrace 6SRCS= dtrace.c 7BINDIR?= /usr/sbin 8 9WARNS?= 1 10 11CFLAGS+= -I${.CURDIR}/../../../sys/cddl/compat/opensolaris \ 12 -I${.CURDIR}/../../../cddl/compat/opensolaris/include \ 13 -I${OPENSOLARIS_USR_DISTDIR}/head \ 14 -I${OPENSOLARIS_USR_DISTDIR}/lib/libdtrace/common \ 15 -I${OPENSOLARIS_USR_DISTDIR}/lib/libproc/common \ 16 -I${OPENSOLARIS_SYS_DISTDIR}/uts/common \ 17 -I${OPENSOLARIS_SYS_DISTDIR}/compat 18 19# Optional debugging stuff... 20#CFLAGS+= -DNEED_ERRLOC 21#YFLAGS+= -d 22 23DPADD= ${LIBPTHREAD} ${LIBDTRACE} ${LIBY} ${LIBL} ${LIBPROC} \ 24 ${LIBCTF} ${LIBELF} ${LIBZ} ${LIBUTIL} ${LIBRTLD_DB} 25LDADD= -lpthread -ldtrace -ly -ll -lproc -lctf -lelf -lz -lutil \ 26 -lrtld_db 27 28.include <bsd.prog.mk> 29