xref: /freebsd/lib/libproc/Makefile (revision 76c6531c6549d171f3e4de9eed29aec18ac08b4b)
12acd1880SJohn Birrell# $FreeBSD$
22acd1880SJohn Birrell
3c6063d0dSWarner Losh.include <src.opts.mk>
4cd906041SRui Paulo
5a70cba95SGlen BarberPACKAGE=lib${LIB}
62acd1880SJohn BirrellLIB=	proc
72acd1880SJohn Birrell
8*76c6531cSMark JohnstonSRCS=	crc32.c			\
9*76c6531cSMark Johnston	proc_bkpt.c		\
102acd1880SJohn Birrell	proc_create.c		\
118eb20f36SRui Paulo	proc_regs.c		\
122acd1880SJohn Birrell	proc_sym.c		\
138eb20f36SRui Paulo	proc_rtld.c		\
142acd1880SJohn Birrell	proc_util.c
152acd1880SJohn Birrell
162acd1880SJohn BirrellINCS=	libproc.h
172acd1880SJohn Birrell
1813c89dbfSRuslan ErmilovCFLAGS+=	-I${.CURDIR}
192acd1880SJohn Birrell
203d12a343SDimitry Andric.if ${MK_CXX} == "no"
213d12a343SDimitry AndricCFLAGS+=	-DNO_CXA_DEMANGLE
223d12a343SDimitry Andric.elif ${MK_LIBCPLUSPLUS} != "no"
236b129086SBaptiste DaroussinLIBADD+=		cxxrt
24cd906041SRui Paulo.else
256b129086SBaptiste DaroussinLIBADD+=	supcplusplus
26cd906041SRui Paulo.endif
27cd906041SRui Paulo
284808a678SMark JohnstonLIBADD+=	elf procstat rtld_db util
29f8eb7ac9SBaptiste Daroussin
3041da933cSMark Johnston.if ${MK_CDDL} != "no"
316b129086SBaptiste DaroussinLIBADD+=	ctf
3241da933cSMark JohnstonIGNORE_PRAGMA=	YES
3341da933cSMark JohnstonCFLAGS+=	-I${.CURDIR}/../../cddl/contrib/opensolaris/lib/libctf/common \
3441da933cSMark Johnston		-I${.CURDIR}/../../sys/cddl/contrib/opensolaris/uts/common \
3541da933cSMark Johnston		-I${.CURDIR}/../../sys/cddl/compat/opensolaris
3641da933cSMark Johnston.else
3741da933cSMark JohnstonCFLAGS+=	-DNO_CTF
3841da933cSMark Johnston.endif
3941da933cSMark Johnston
4041da933cSMark JohnstonSHLIB_MAJOR=	3
412acd1880SJohn Birrell
423bdf7758SWarner LoshMAN=
432acd1880SJohn Birrell
449351ac6dSMark Johnston.if ${MK_TESTS} != "no"
459351ac6dSMark JohnstonSUBDIR+=	tests
469351ac6dSMark Johnston.endif
479351ac6dSMark Johnston
482acd1880SJohn Birrell.include <bsd.lib.mk>
49