xref: /freebsd/lib/libproc/Makefile (revision d511b20a693d77c1dc2491a62124471361eddd8e)
12acd1880SJohn Birrell# $FreeBSD$
22acd1880SJohn Birrell
3c6063d0dSWarner Losh.include <src.opts.mk>
4cd906041SRui Paulo
5a70cba95SGlen BarberPACKAGE=lib${LIB}
62acd1880SJohn BirrellLIB=	proc
72acd1880SJohn Birrell
876c6531cSMark JohnstonSRCS=	crc32.c			\
976c6531cSMark 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
335e9230beSEnji CooperCFLAGS+=	-I${SRCTOP}/cddl/contrib/opensolaris/lib/libctf/common \
345e9230beSEnji Cooper		-I${SRCTOP}/sys/cddl/contrib/opensolaris/uts/common \
355e9230beSEnji Cooper		-I${SRCTOP}/sys/cddl/compat/opensolaris
3641da933cSMark Johnston.else
3741da933cSMark JohnstonCFLAGS+=	-DNO_CTF
3841da933cSMark Johnston.endif
3941da933cSMark Johnston
40fe2521b9SMark JohnstonSHLIB_MAJOR=	4
412acd1880SJohn Birrell
423bdf7758SWarner LoshMAN=
432acd1880SJohn Birrell
44*d511b20aSEnji CooperHAS_TESTS=
454b330699SEnji CooperSUBDIR.${MK_TESTS}+= tests
469351ac6dSMark Johnston
472acd1880SJohn Birrell.include <bsd.lib.mk>
48