xref: /freebsd/lib/libproc/Makefile (revision 41c233dec6c15c543d3042c06833c1623456743c)
12acd1880SJohn Birrell
2c6063d0dSWarner Losh.include <src.opts.mk>
3cd906041SRui Paulo
42acd1880SJohn BirrellLIB=	proc
52acd1880SJohn Birrell
60bbf2702SXin LISRCS=	proc_bkpt.c		\
72acd1880SJohn Birrell	proc_create.c		\
88eb20f36SRui Paulo	proc_regs.c		\
92acd1880SJohn Birrell	proc_sym.c		\
108eb20f36SRui Paulo	proc_rtld.c		\
112acd1880SJohn Birrell	proc_util.c
122acd1880SJohn Birrell
132acd1880SJohn BirrellINCS=	libproc.h
142acd1880SJohn Birrell
1513c89dbfSRuslan ErmilovCFLAGS+=	-I${.CURDIR}
162acd1880SJohn Birrell
17ac4c695aSEd MasteLIBADD+=	cxxrt elf procstat rtld_db util z
18f8eb7ac9SBaptiste Daroussin
1941da933cSMark Johnston.if ${MK_CDDL} != "no"
206b129086SBaptiste DaroussinLIBADD+=	ctf
2141da933cSMark JohnstonIGNORE_PRAGMA=	YES
229e5787d2SMatt MacyCFLAGS+= -DIN_BASE
239e5787d2SMatt MacyCFLAGS+= -I${SRCTOP}/sys/contrib/openzfs/include
249e5787d2SMatt MacyCFLAGS+= -I${SRCTOP}/sys/contrib/openzfs/lib/libspl/include/
259e5787d2SMatt MacyCFLAGS+= -I${SRCTOP}/sys/contrib/openzfs/lib/libspl/include/os/freebsd
269e5787d2SMatt MacyCFLAGS+= -include ${SRCTOP}/sys/contrib/openzfs/include/os/freebsd/spl/sys/ccompile.h
27*41c233deSKyle EvansCFLAGS+= -DHAVE_ISSETUGID -DHAVE_BOOLEAN -DHAVE_STRLCAT -DHAVE_STRLCPY
285e9230beSEnji CooperCFLAGS+=	-I${SRCTOP}/cddl/contrib/opensolaris/lib/libctf/common \
295e9230beSEnji Cooper		-I${SRCTOP}/sys/cddl/contrib/opensolaris/uts/common \
305e9230beSEnji Cooper		-I${SRCTOP}/sys/cddl/compat/opensolaris
3141da933cSMark Johnston.else
3241da933cSMark JohnstonCFLAGS+=	-DNO_CTF
3341da933cSMark Johnston.endif
3441da933cSMark Johnston
355577b8a7SMark JohnstonSHLIB_MAJOR=	5
362acd1880SJohn Birrell
373bdf7758SWarner LoshMAN=
382acd1880SJohn Birrell
39d511b20aSEnji CooperHAS_TESTS=
404b330699SEnji CooperSUBDIR.${MK_TESTS}+= tests
419351ac6dSMark Johnston
422acd1880SJohn Birrell.include <bsd.lib.mk>
43