1# $FreeBSD$ 2 3.include <src.opts.mk> 4 5PACKAGE=lib${LIB} 6LIB= proc 7 8SRCS= 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 rtld_db util 28 29.if ${MK_CDDL} != "no" 30LIBADD+= ctf 31IGNORE_PRAGMA= YES 32CFLAGS+= -I${.CURDIR}/../../cddl/contrib/opensolaris/lib/libctf/common \ 33 -I${.CURDIR}/../../sys/cddl/contrib/opensolaris/uts/common \ 34 -I${.CURDIR}/../../sys/cddl/compat/opensolaris 35.else 36CFLAGS+= -DNO_CTF 37.endif 38 39SHLIB_MAJOR= 3 40 41MAN= 42 43.if ${MK_TESTS} != "no" 44SUBDIR+= tests 45.endif 46 47.include <bsd.lib.mk> 48