12acd1880SJohn Birrell# $FreeBSD$ 22acd1880SJohn Birrell 3c6063d0dSWarner Losh.include <src.opts.mk> 4cd906041SRui Paulo 52acd1880SJohn BirrellLIB= proc 62acd1880SJohn Birrell 7*0bbf2702SXin LISRCS= 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 20cd906041SRui Paulo.else 215cf6f1c4SAlex RichardsonLIBADD+= cxxrt 22cd906041SRui Paulo.endif 23cd906041SRui Paulo 24*0bbf2702SXin LILIBADD+= elf procstat rtld_db util z 25f8eb7ac9SBaptiste Daroussin 2641da933cSMark Johnston.if ${MK_CDDL} != "no" 276b129086SBaptiste DaroussinLIBADD+= ctf 2841da933cSMark JohnstonIGNORE_PRAGMA= YES 299e5787d2SMatt MacyCFLAGS+= -DIN_BASE 309e5787d2SMatt MacyCFLAGS+= -I${SRCTOP}/sys/contrib/openzfs/include 319e5787d2SMatt MacyCFLAGS+= -I${SRCTOP}/sys/contrib/openzfs/lib/libspl/include/ 329e5787d2SMatt MacyCFLAGS+= -I${SRCTOP}/sys/contrib/openzfs/lib/libspl/include/os/freebsd 339e5787d2SMatt MacyCFLAGS+= -include ${SRCTOP}/sys/contrib/openzfs/include/os/freebsd/spl/sys/ccompile.h 349e5787d2SMatt MacyCFLAGS+= -DHAVE_ISSETUGID -DHAVE_BOOLEAN 355e9230beSEnji CooperCFLAGS+= -I${SRCTOP}/cddl/contrib/opensolaris/lib/libctf/common \ 365e9230beSEnji Cooper -I${SRCTOP}/sys/cddl/contrib/opensolaris/uts/common \ 375e9230beSEnji Cooper -I${SRCTOP}/sys/cddl/compat/opensolaris 3841da933cSMark Johnston.else 3941da933cSMark JohnstonCFLAGS+= -DNO_CTF 4041da933cSMark Johnston.endif 4141da933cSMark Johnston 425577b8a7SMark JohnstonSHLIB_MAJOR= 5 432acd1880SJohn Birrell 443bdf7758SWarner LoshMAN= 452acd1880SJohn Birrell 46d511b20aSEnji CooperHAS_TESTS= 474b330699SEnji CooperSUBDIR.${MK_TESTS}+= tests 489351ac6dSMark Johnston 492acd1880SJohn Birrell.include <bsd.lib.mk> 50