xref: /freebsd/lib/libproc/Makefile (revision f8eb7ac92cf6e2872819160ecef1276e0089d5c5)
12acd1880SJohn Birrell# $FreeBSD$
22acd1880SJohn Birrell
3c6063d0dSWarner Losh.include <src.opts.mk>
4cd906041SRui Paulo
52acd1880SJohn BirrellLIB=	proc
62acd1880SJohn Birrell
78eb20f36SRui PauloSRCS=	proc_bkpt.c		\
82acd1880SJohn Birrell	proc_create.c		\
98eb20f36SRui Paulo	proc_regs.c		\
102acd1880SJohn Birrell	proc_sym.c		\
118eb20f36SRui Paulo	proc_rtld.c		\
122acd1880SJohn Birrell	proc_util.c
132acd1880SJohn Birrell
142acd1880SJohn BirrellINCS=	libproc.h
152acd1880SJohn Birrell
1613c89dbfSRuslan ErmilovCFLAGS+=	-I${.CURDIR}
172acd1880SJohn Birrell
183d12a343SDimitry Andric.if ${MK_CXX} == "no"
193d12a343SDimitry AndricCFLAGS+=	-DNO_CXA_DEMANGLE
203d12a343SDimitry Andric.elif ${MK_LIBCPLUSPLUS} != "no"
216b129086SBaptiste DaroussinLIBADD+=		cxxrt
22cd906041SRui Paulo.else
236b129086SBaptiste DaroussinLIBADD+=	supcplusplus
24cd906041SRui Paulo.endif
25cd906041SRui Paulo
26*f8eb7ac9SBaptiste DaroussinLIBADD+=	elf rtld_db util
27*f8eb7ac9SBaptiste Daroussin
2841da933cSMark Johnston.if ${MK_CDDL} != "no"
296b129086SBaptiste DaroussinLIBADD+=	ctf
3041da933cSMark JohnstonIGNORE_PRAGMA=	YES
3141da933cSMark JohnstonCFLAGS+=	-I${.CURDIR}/../../cddl/contrib/opensolaris/lib/libctf/common \
3241da933cSMark Johnston		-I${.CURDIR}/../../sys/cddl/contrib/opensolaris/uts/common \
3341da933cSMark Johnston		-I${.CURDIR}/../../sys/cddl/compat/opensolaris
3441da933cSMark Johnston.else
3541da933cSMark JohnstonCFLAGS+=	-DNO_CTF
3641da933cSMark Johnston.endif
3741da933cSMark Johnston
3841da933cSMark JohnstonSHLIB_MAJOR=	3
392acd1880SJohn Birrell
403bdf7758SWarner LoshMAN=
412acd1880SJohn Birrell
429351ac6dSMark Johnston.if ${MK_TESTS} != "no"
439351ac6dSMark JohnstonSUBDIR+=	tests
449351ac6dSMark Johnston.endif
459351ac6dSMark Johnston
462acd1880SJohn Birrell.include <bsd.lib.mk>
47