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