Makefile revision 1.2
1# $NetBSD: Makefile,v 1.2 2010/02/21 01:46:36 darran Exp $ 2 3# $FreeBSD: src/cddl/usr.sbin/dtrace/Makefile,v 1.1.4.1 2009/08/03 08:13:06 kensmith Exp $ 4 5.include "../../Makefile.inc" 6 7PROG= dtrace 8 9BINDIR?= /usr/sbin 10 11SRCS= dtrace.c 12 13#WARNS= 1 14 15CFLAGS+= -I${OSNETDIR}/sys \ 16 -I${OSNETDIR}/include \ 17 -I${OPENSOLARIS_USR_DISTDIR}/head \ 18 -I${OPENSOLARIS_USR_DISTDIR}/lib/libdtrace/common \ 19 -I${OPENSOLARIS_USR_DISTDIR}/lib/libproc/common \ 20 -I${OPENSOLARIS_SYS_DISTDIR}/uts/common \ 21 -I${OPENSOLARIS_SYS_DISTDIR}/compat \ 22 23.PATH: ${OPENSOLARIS_USR_DISTDIR}/cmd/dtrace 24 25# Optional debugging stuff... 26#CFLAGS+= -DNEED_ERRLOC 27#YFLAGS+= -d 28 29LDFLAGS+= -pthread \ 30 -L${OSNETDIR}/lib/libdtrace \ 31 -L${OSNETDIR}/lib/libctf 32 33LDADD+= -ldtrace -ly -ll -lctf -lelf -lz 34 35#LDFLAGS+= -pthread \ 36 -L${.OBJDIR}/../../lib/libdtrace \ 37 -L${.OBJDIR}/../../lib/libproc \ 38 -L${.OBJDIR}/../../lib/libctf \ 39 -L${.OBJDIR}/../../../lib/libelf 40 41#LDADD+= -ldtrace -ly -ll -lproc -lctf -lelf -lz 42 43#DPADD+= ${LIBDTRACE} ${LIBCTF} ${LIBELF} ${LIBPTHREAD} ${LIBL} ${LIBY} ${LIBZ} 44 45.include <bsd.prog.mk> 46