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