Makefile revision 1.3
1# $NetBSD: Makefile,v 1.3 2010/02/21 11:00:02 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 <bsd.own.mk> 6.include "../../Makefile.inc" 7 8PROG= dtrace 9 10BINDIR?= /usr/sbin 11 12SRCS= dtrace.c 13 14#WARNS= 1 15 16CFLAGS+= -I${OSNETDIR}/sys \ 17 -I${OSNETDIR}/include \ 18 -I${OPENSOLARIS_USR_DISTDIR}/head \ 19 -I${OPENSOLARIS_USR_DISTDIR}/lib/libdtrace/common \ 20 -I${OPENSOLARIS_USR_DISTDIR}/lib/libproc/common \ 21 -I${OPENSOLARIS_SYS_DISTDIR}/uts/common \ 22 -I${OPENSOLARIS_SYS_DISTDIR}/compat \ 23 24.PATH: ${OPENSOLARIS_USR_DISTDIR}/cmd/dtrace 25 26# Optional debugging stuff... 27#CFLAGS+= -DNEED_ERRLOC 28#YFLAGS+= -d 29 30 31LDFLAGS+= -pthread 32 33LIBCTF_OBJDIR!= cd ${.CURDIR}/../../lib/libctf && ${PRINTOBJDIR} 34LDFLAGS+= -L${LIBDTRACE_OBJDIR} -ldtrace 35 36LIBDTRACE_OBJDIR!= cd ${.CURDIR}/../../lib/libdtrace && ${PRINTOBJDIR} 37LDFLAGS+= -L${LIBCTF_OBJDIR} -lctf 38 39LDADD+= -ly -ll -lelf -lz 40 41.include <bsd.prog.mk> 42