12acd1880SJohn Birrell# $FreeBSD$ 22acd1880SJohn Birrell 3c6063d0dSWarner Losh.include <src.opts.mk> 4cd906041SRui Paulo 52acd1880SJohn BirrellLIB= proc 62acd1880SJohn Birrell 78eb20f36SRui PauloSRCS= proc_bkpt.c \ 82acd1880SJohn Birrell proc_create.c \ 98eb20f36SRui Paulo proc_regs.c \ 102acd1880SJohn Birrell proc_sym.c \ 118eb20f36SRui Paulo proc_rtld.c \ 122acd1880SJohn Birrell proc_util.c 132acd1880SJohn Birrell 142acd1880SJohn BirrellINCS= libproc.h 152acd1880SJohn Birrell 1613c89dbfSRuslan ErmilovCFLAGS+= -I${.CURDIR} 172acd1880SJohn Birrell 183d12a343SDimitry Andric.if ${MK_CXX} == "no" 193d12a343SDimitry AndricCFLAGS+= -DNO_CXA_DEMANGLE 203d12a343SDimitry Andric.elif ${MK_LIBCPLUSPLUS} != "no" 21*6b129086SBaptiste DaroussinLIBADD+= cxxrt 22cd906041SRui Paulo.else 23*6b129086SBaptiste DaroussinLIBADD+= supcplusplus 24cd906041SRui Paulo.endif 25cd906041SRui Paulo 2641da933cSMark Johnston.if ${MK_CDDL} != "no" 27*6b129086SBaptiste DaroussinLIBADD+= ctf 2841da933cSMark JohnstonIGNORE_PRAGMA= YES 2941da933cSMark JohnstonCFLAGS+= -I${.CURDIR}/../../cddl/contrib/opensolaris/lib/libctf/common \ 3041da933cSMark Johnston -I${.CURDIR}/../../sys/cddl/contrib/opensolaris/uts/common \ 3141da933cSMark Johnston -I${.CURDIR}/../../sys/cddl/compat/opensolaris 3241da933cSMark Johnston.else 3341da933cSMark JohnstonCFLAGS+= -DNO_CTF 3441da933cSMark Johnston.endif 3541da933cSMark Johnston 3641da933cSMark JohnstonSHLIB_MAJOR= 3 372acd1880SJohn Birrell 383bdf7758SWarner LoshMAN= 392acd1880SJohn Birrell 409351ac6dSMark Johnston.if ${MK_TESTS} != "no" 419351ac6dSMark JohnstonSUBDIR+= tests 429351ac6dSMark Johnston.endif 439351ac6dSMark Johnston 442acd1880SJohn Birrell.include <bsd.lib.mk> 45