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