12acd1880SJohn Birrell# $FreeBSD$ 22acd1880SJohn Birrell 3c6063d0dSWarner Losh.include <src.opts.mk> 4cd906041SRui Paulo 52acd1880SJohn BirrellLIB= proc 62acd1880SJohn Birrell 776c6531cSMark JohnstonSRCS= crc32.c \ 876c6531cSMark Johnston proc_bkpt.c \ 92acd1880SJohn Birrell proc_create.c \ 108eb20f36SRui Paulo proc_regs.c \ 112acd1880SJohn Birrell proc_sym.c \ 128eb20f36SRui Paulo proc_rtld.c \ 132acd1880SJohn Birrell proc_util.c 142acd1880SJohn Birrell 152acd1880SJohn BirrellINCS= libproc.h 162acd1880SJohn Birrell 1713c89dbfSRuslan ErmilovCFLAGS+= -I${.CURDIR} 182acd1880SJohn Birrell 193d12a343SDimitry Andric.if ${MK_CXX} == "no" 203d12a343SDimitry AndricCFLAGS+= -DNO_CXA_DEMANGLE 213d12a343SDimitry Andric.elif ${MK_LIBCPLUSPLUS} != "no" 226b129086SBaptiste DaroussinLIBADD+= cxxrt 23cd906041SRui Paulo.else 246b129086SBaptiste DaroussinLIBADD+= supcplusplus 25cd906041SRui Paulo.endif 26cd906041SRui Paulo 274808a678SMark JohnstonLIBADD+= elf procstat rtld_db util 28f8eb7ac9SBaptiste Daroussin 2941da933cSMark Johnston.if ${MK_CDDL} != "no" 306b129086SBaptiste DaroussinLIBADD+= ctf 3141da933cSMark JohnstonIGNORE_PRAGMA= YES 32*9e5787d2SMatt MacyCFLAGS+= -DIN_BASE 33*9e5787d2SMatt MacyCFLAGS+= -I${SRCTOP}/sys/contrib/openzfs/include 34*9e5787d2SMatt MacyCFLAGS+= -I${SRCTOP}/sys/contrib/openzfs/lib/libspl/include/ 35*9e5787d2SMatt MacyCFLAGS+= -I${SRCTOP}/sys/contrib/openzfs/lib/libspl/include/os/freebsd 36*9e5787d2SMatt MacyCFLAGS+= -include ${SRCTOP}/sys/contrib/openzfs/include/os/freebsd/spl/sys/ccompile.h 37*9e5787d2SMatt MacyCFLAGS+= -DHAVE_ISSETUGID -DHAVE_BOOLEAN 385e9230beSEnji CooperCFLAGS+= -I${SRCTOP}/cddl/contrib/opensolaris/lib/libctf/common \ 395e9230beSEnji Cooper -I${SRCTOP}/sys/cddl/contrib/opensolaris/uts/common \ 405e9230beSEnji Cooper -I${SRCTOP}/sys/cddl/compat/opensolaris 4141da933cSMark Johnston.else 4241da933cSMark JohnstonCFLAGS+= -DNO_CTF 4341da933cSMark Johnston.endif 4441da933cSMark Johnston 455577b8a7SMark JohnstonSHLIB_MAJOR= 5 462acd1880SJohn Birrell 473bdf7758SWarner LoshMAN= 482acd1880SJohn Birrell 49d511b20aSEnji CooperHAS_TESTS= 504b330699SEnji CooperSUBDIR.${MK_TESTS}+= tests 519351ac6dSMark Johnston 522acd1880SJohn Birrell.include <bsd.lib.mk> 53