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 21cd906041SRui Paulo.else 22*5cf6f1c4SAlex RichardsonLIBADD+= cxxrt 23cd906041SRui Paulo.endif 24cd906041SRui Paulo 254808a678SMark JohnstonLIBADD+= elf procstat rtld_db util 26f8eb7ac9SBaptiste Daroussin 2741da933cSMark Johnston.if ${MK_CDDL} != "no" 286b129086SBaptiste DaroussinLIBADD+= ctf 2941da933cSMark JohnstonIGNORE_PRAGMA= YES 309e5787d2SMatt MacyCFLAGS+= -DIN_BASE 319e5787d2SMatt MacyCFLAGS+= -I${SRCTOP}/sys/contrib/openzfs/include 329e5787d2SMatt MacyCFLAGS+= -I${SRCTOP}/sys/contrib/openzfs/lib/libspl/include/ 339e5787d2SMatt MacyCFLAGS+= -I${SRCTOP}/sys/contrib/openzfs/lib/libspl/include/os/freebsd 349e5787d2SMatt MacyCFLAGS+= -include ${SRCTOP}/sys/contrib/openzfs/include/os/freebsd/spl/sys/ccompile.h 359e5787d2SMatt MacyCFLAGS+= -DHAVE_ISSETUGID -DHAVE_BOOLEAN 365e9230beSEnji CooperCFLAGS+= -I${SRCTOP}/cddl/contrib/opensolaris/lib/libctf/common \ 375e9230beSEnji Cooper -I${SRCTOP}/sys/cddl/contrib/opensolaris/uts/common \ 385e9230beSEnji Cooper -I${SRCTOP}/sys/cddl/compat/opensolaris 3941da933cSMark Johnston.else 4041da933cSMark JohnstonCFLAGS+= -DNO_CTF 4141da933cSMark Johnston.endif 4241da933cSMark Johnston 435577b8a7SMark JohnstonSHLIB_MAJOR= 5 442acd1880SJohn Birrell 453bdf7758SWarner LoshMAN= 462acd1880SJohn Birrell 47d511b20aSEnji CooperHAS_TESTS= 484b330699SEnji CooperSUBDIR.${MK_TESTS}+= tests 499351ac6dSMark Johnston 502acd1880SJohn Birrell.include <bsd.lib.mk> 51