xref: /freebsd/lib/libproc/Makefile (revision a70cba95822f662d3f9da5119b6a0c433e8f70af)
12acd1880SJohn Birrell# $FreeBSD$
22acd1880SJohn Birrell
3c6063d0dSWarner Losh.include <src.opts.mk>
4cd906041SRui Paulo
5*a70cba95SGlen BarberPACKAGE=lib${LIB}
62acd1880SJohn BirrellLIB=	proc
72acd1880SJohn Birrell
88eb20f36SRui PauloSRCS=	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
27f8eb7ac9SBaptiste DaroussinLIBADD+=	elf rtld_db util
28f8eb7ac9SBaptiste Daroussin
2941da933cSMark Johnston.if ${MK_CDDL} != "no"
306b129086SBaptiste DaroussinLIBADD+=	ctf
3141da933cSMark JohnstonIGNORE_PRAGMA=	YES
3241da933cSMark JohnstonCFLAGS+=	-I${.CURDIR}/../../cddl/contrib/opensolaris/lib/libctf/common \
3341da933cSMark Johnston		-I${.CURDIR}/../../sys/cddl/contrib/opensolaris/uts/common \
3441da933cSMark Johnston		-I${.CURDIR}/../../sys/cddl/compat/opensolaris
3541da933cSMark Johnston.else
3641da933cSMark JohnstonCFLAGS+=	-DNO_CTF
3741da933cSMark Johnston.endif
3841da933cSMark Johnston
3941da933cSMark JohnstonSHLIB_MAJOR=	3
402acd1880SJohn Birrell
413bdf7758SWarner LoshMAN=
422acd1880SJohn Birrell
439351ac6dSMark Johnston.if ${MK_TESTS} != "no"
449351ac6dSMark JohnstonSUBDIR+=	tests
459351ac6dSMark Johnston.endif
469351ac6dSMark Johnston
472acd1880SJohn Birrell.include <bsd.lib.mk>
48