xref: /freebsd/lib/libproc/Makefile (revision e9ac41698b2f322d55ccf9da50a3596edb2c1800)
1c6063d0dSWarner Losh.include <src.opts.mk>
2cd906041SRui Paulo
32acd1880SJohn BirrellLIB=	proc
42acd1880SJohn Birrell
50bbf2702SXin LISRCS=	proc_bkpt.c		\
62acd1880SJohn Birrell	proc_create.c		\
78eb20f36SRui Paulo	proc_regs.c		\
82acd1880SJohn Birrell	proc_sym.c		\
98eb20f36SRui Paulo	proc_rtld.c		\
102acd1880SJohn Birrell	proc_util.c
112acd1880SJohn Birrell
122acd1880SJohn BirrellINCS=	libproc.h
132acd1880SJohn Birrell
1413c89dbfSRuslan ErmilovCFLAGS+=	-I${.CURDIR}
152acd1880SJohn Birrell
16ac4c695aSEd MasteLIBADD+=	cxxrt elf procstat rtld_db util z
17f8eb7ac9SBaptiste Daroussin
1841da933cSMark Johnston.if ${MK_CDDL} != "no"
196b129086SBaptiste DaroussinLIBADD+=	ctf
2041da933cSMark JohnstonIGNORE_PRAGMA=	YES
219e5787d2SMatt MacyCFLAGS+= -DIN_BASE
229e5787d2SMatt MacyCFLAGS+= -I${SRCTOP}/sys/contrib/openzfs/include
239e5787d2SMatt MacyCFLAGS+= -I${SRCTOP}/sys/contrib/openzfs/lib/libspl/include/
249e5787d2SMatt MacyCFLAGS+= -I${SRCTOP}/sys/contrib/openzfs/lib/libspl/include/os/freebsd
259e5787d2SMatt MacyCFLAGS+= -include ${SRCTOP}/sys/contrib/openzfs/include/os/freebsd/spl/sys/ccompile.h
26*41c233deSKyle EvansCFLAGS+= -DHAVE_ISSETUGID -DHAVE_BOOLEAN -DHAVE_STRLCAT -DHAVE_STRLCPY
275e9230beSEnji CooperCFLAGS+=	-I${SRCTOP}/cddl/contrib/opensolaris/lib/libctf/common \
285e9230beSEnji Cooper		-I${SRCTOP}/sys/cddl/contrib/opensolaris/uts/common \
295e9230beSEnji Cooper		-I${SRCTOP}/sys/cddl/compat/opensolaris
3041da933cSMark Johnston.else
3141da933cSMark JohnstonCFLAGS+=	-DNO_CTF
3241da933cSMark Johnston.endif
3341da933cSMark Johnston
345577b8a7SMark JohnstonSHLIB_MAJOR=	5
352acd1880SJohn Birrell
363bdf7758SWarner LoshMAN=
372acd1880SJohn Birrell
38d511b20aSEnji CooperHAS_TESTS=
394b330699SEnji CooperSUBDIR.${MK_TESTS}+= tests
409351ac6dSMark Johnston
412acd1880SJohn Birrell.include <bsd.lib.mk>
42