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