4ef20db290
- Break the dependency on ../Makefile.inc for .PATH, and include ../Makefile.inc implicitly. This is required to ... - Set WARNS?=6 in top-level Makefile.inc - Remove now redundant WARNS settings, add WARNS?=0 where appropriate - Remove redundant SHLIB_MAJOR overrides - Use NO_MAN, not MK_MAN=no - Remove redundant inclusion of bsd.own.mk - Order Makefiles more according to style.Makefile(9) - Reduce diff of cddl Makefiles against each other No objection: pjd Approved by: ed (co-mentor)
27 lines
725 B
Makefile
27 lines
725 B
Makefile
# $FreeBSD$
|
|
|
|
.PATH: ${.CURDIR}/../../../cddl/contrib/opensolaris/cmd/dtrace
|
|
|
|
PROG= dtrace
|
|
SRCS= dtrace.c
|
|
BINDIR?= /usr/sbin
|
|
|
|
WARNS?= 1
|
|
|
|
CFLAGS+= -I${.CURDIR}/../../../sys/cddl/compat/opensolaris \
|
|
-I${.CURDIR}/../../../cddl/compat/opensolaris/include \
|
|
-I${OPENSOLARIS_USR_DISTDIR}/head \
|
|
-I${OPENSOLARIS_USR_DISTDIR}/lib/libdtrace/common \
|
|
-I${OPENSOLARIS_USR_DISTDIR}/lib/libproc/common \
|
|
-I${OPENSOLARIS_SYS_DISTDIR}/uts/common \
|
|
-I${OPENSOLARIS_SYS_DISTDIR}/compat
|
|
|
|
# Optional debugging stuff...
|
|
#CFLAGS+= -DNEED_ERRLOC
|
|
#YFLAGS+= -d
|
|
|
|
DPADD= ${LIBPTHREAD} ${LIBDTRACE} ${LIBY} ${LIBL} ${LIBPROC} ${LIBCTF} ${LIBELF} ${LIBZ}
|
|
LDADD= -lpthread -ldtrace -ly -ll -lproc -lctf -lelf -lz
|
|
|
|
.include <bsd.prog.mk>
|