Makefile revision 1.14
1# $NetBSD: Makefile,v 1.14 2020/04/04 13:15:48 christos Exp $ 2 3# $FreeBSD: head/cddl/usr.sbin/dtrace/Makefile 314654 2017-03-04 11:30:04Z ngie $ 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-format-extra-args 33 34COPTS.dtrace.c += -Wno-shadow 35COPTS.dtrace.c += ${${ACTIVE_CC} == "gcc" :? -Wno-discarded-qualifiers :} 36COPTS.dtrace.c += ${${ACTIVE_CC} == "gcc" :? -Wno-unused-but-set-variable :} 37COPTS.dtrace.c += ${${ACTIVE_CC} == "clang" :? -Wno-incompatible-pointer-types-discards-qualifiers :} 38COPTS.dtrace.c += -Wno-missing-field-initializers 39COPTS.dtrace.c += -Wno-format 40 41LDFLAGS+= -pthread 42 43PROGDPLIBS+= ctf ${.CURDIR}/../../lib/libctf 44PROGDPLIBS+= dtrace ${.CURDIR}/../../lib/libdtrace 45PROGDPLIBS+= elf ${NETBSDSRCDIR}/external/bsd/elftoolchain/lib/libelf 46PROGDPLIBS+= proc ${NETBSDSRCDIR}/external/bsd/libproc/lib 47PROGDPLIBS+= y ${NETBSDSRCDIR}/lib/liby 48PROGDPLIBS+= l ${NETBSDSRCDIR}/external/bsd/flex/lib 49PROGDPLIBS+= z ${NETBSDSRCDIR}/lib/libz 50 51.include <bsd.prog.mk> 52