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 18LIBADD+= cxxrt elf procstat rtld_db util z 19 20.if ${MK_CDDL} != "no" 21LIBADD+= ctf 22IGNORE_PRAGMA= YES 23CFLAGS+= -DIN_BASE 24CFLAGS+= -I${SRCTOP}/sys/contrib/openzfs/include 25CFLAGS+= -I${SRCTOP}/sys/contrib/openzfs/lib/libspl/include/ 26CFLAGS+= -I${SRCTOP}/sys/contrib/openzfs/lib/libspl/include/os/freebsd 27CFLAGS+= -include ${SRCTOP}/sys/contrib/openzfs/include/os/freebsd/spl/sys/ccompile.h 28CFLAGS+= -DHAVE_ISSETUGID -DHAVE_BOOLEAN 29CFLAGS+= -I${SRCTOP}/cddl/contrib/opensolaris/lib/libctf/common \ 30 -I${SRCTOP}/sys/cddl/contrib/opensolaris/uts/common \ 31 -I${SRCTOP}/sys/cddl/compat/opensolaris 32.else 33CFLAGS+= -DNO_CTF 34.endif 35 36SHLIB_MAJOR= 5 37 38MAN= 39 40HAS_TESTS= 41SUBDIR.${MK_TESTS}+= tests 42 43.include <bsd.lib.mk> 44