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+= -I${SRCTOP}/cddl/contrib/opensolaris/lib/libctf/common \ 33 -I${SRCTOP}/sys/cddl/contrib/opensolaris/uts/common \ 34 -I${SRCTOP}/sys/cddl/compat/opensolaris 35.else 36CFLAGS+= -DNO_CTF 37.endif 38 39SHLIB_MAJOR= 5 40 41MAN= 42 43HAS_TESTS= 44SUBDIR.${MK_TESTS}+= tests 45 46.include <bsd.lib.mk> 47