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 18.if ${MK_CXX} == "no" 19CFLAGS+= -DNO_CXA_DEMANGLE 20.elif ${MK_LIBCPLUSPLUS} != "no" 21LIBADD+= cxxrt 22.else 23LIBADD+= supcplusplus 24.endif 25 26LIBADD+= elf rtld_db util 27 28.if ${MK_CDDL} != "no" 29LIBADD+= ctf 30IGNORE_PRAGMA= YES 31CFLAGS+= -I${.CURDIR}/../../cddl/contrib/opensolaris/lib/libctf/common \ 32 -I${.CURDIR}/../../sys/cddl/contrib/opensolaris/uts/common \ 33 -I${.CURDIR}/../../sys/cddl/compat/opensolaris 34.else 35CFLAGS+= -DNO_CTF 36.endif 37 38SHLIB_MAJOR= 3 39 40MAN= 41 42.if ${MK_TESTS} != "no" 43SUBDIR+= tests 44.endif 45 46.include <bsd.lib.mk> 47