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