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