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" 21LDADD+= -lcxxrt 22DPADD+= ${LIBCXXRT} 23.else 24LDADD+= -lsupc++ 25DPADD+= ${LIBSTDCPLUSPLUS} 26.endif 27 28.if ${MK_CDDL} != "no" 29LDADD+= -lctf 30DPADD+= ${LIBCTF} 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