1# $FreeBSD$ 2 3.include <src.opts.mk> 4 5LIB= proc 6 7SRCS= proc_bkpt.c \ 8 proc_create.c \ 9 proc_regs.c \ 10 proc_sym.c \ 11 proc_rtld.c \ 12 proc_util.c 13 14INCS= libproc.h 15 16CFLAGS+= -I${.CURDIR} 17 18.if ${MK_CXX} == "no" 19CFLAGS+= -DNO_CXA_DEMANGLE 20.else 21LIBADD+= cxxrt 22.endif 23 24LIBADD+= elf procstat rtld_db util z 25 26.if ${MK_CDDL} != "no" 27LIBADD+= ctf 28IGNORE_PRAGMA= YES 29CFLAGS+= -DIN_BASE 30CFLAGS+= -I${SRCTOP}/sys/contrib/openzfs/include 31CFLAGS+= -I${SRCTOP}/sys/contrib/openzfs/lib/libspl/include/ 32CFLAGS+= -I${SRCTOP}/sys/contrib/openzfs/lib/libspl/include/os/freebsd 33CFLAGS+= -include ${SRCTOP}/sys/contrib/openzfs/include/os/freebsd/spl/sys/ccompile.h 34CFLAGS+= -DHAVE_ISSETUGID -DHAVE_BOOLEAN 35CFLAGS+= -I${SRCTOP}/cddl/contrib/opensolaris/lib/libctf/common \ 36 -I${SRCTOP}/sys/cddl/contrib/opensolaris/uts/common \ 37 -I${SRCTOP}/sys/cddl/compat/opensolaris 38.else 39CFLAGS+= -DNO_CTF 40.endif 41 42SHLIB_MAJOR= 5 43 44MAN= 45 46HAS_TESTS= 47SUBDIR.${MK_TESTS}+= tests 48 49.include <bsd.lib.mk> 50