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