Makefile revision 1.4
1# $NetBSD: Makefile,v 1.4 2010/02/22 12:21:27 tron 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 30COPTS.dtrace.c += -Wno-stack-protector 31 32LDFLAGS+= -pthread 33 34LIBCTF_OBJDIR!= cd ${.CURDIR}/../../lib/libctf && ${PRINTOBJDIR} 35LDFLAGS+= -L${LIBDTRACE_OBJDIR} -ldtrace 36 37LIBDTRACE_OBJDIR!= cd ${.CURDIR}/../../lib/libdtrace && ${PRINTOBJDIR} 38LDFLAGS+= -L${LIBCTF_OBJDIR} -lctf 39 40LDADD+= -ly -ll -lelf -lz 41 42.include <bsd.prog.mk> 43