xref: /netbsd-src/external/bsd/libproc/lib/Makefile (revision 26057c7540c0f16ae7c4cb1d9e7111310ce53c91)
1*26057c75Schristos# $NetBSD: Makefile,v 1.4 2017/10/06 19:18:16 christos Exp $
252ebe1c2Schristos
352ebe1c2Schristos.include <bsd.own.mk>
452ebe1c2Schristos
552ebe1c2SchristosMKMAN=	no
652ebe1c2SchristosLIB=	proc
752ebe1c2Schristos
852ebe1c2SchristosSRCS=	proc_bkpt.c		\
952ebe1c2Schristos	proc_create.c		\
1052ebe1c2Schristos	proc_regs.c		\
1152ebe1c2Schristos	proc_sym.c		\
1252ebe1c2Schristos	proc_rtld.c		\
1352ebe1c2Schristos	proc_util.c
1452ebe1c2Schristos
1552ebe1c2SchristosINCS=	libproc.h
1652ebe1c2SchristosINCSDIR=/usr/include
1752ebe1c2Schristos
1852ebe1c2SchristosLIBPROCDIR=${.CURDIR}/../dist
1952ebe1c2Schristos
2052ebe1c2Schristos.PATH: ${LIBPROCDIR}
2152ebe1c2Schristos
2252ebe1c2SchristosCPPFLAGS+=	-I${LIBPROCDIR} -I${.CURDIR}/../../librtld_db
2352ebe1c2Schristos
2452ebe1c2Schristos.if ${MKCTF} != "no"
2552ebe1c2SchristosOSNET=${NETBSDSRCDIR}/external/cddl/osnet/
2652ebe1c2Schristos
2752ebe1c2SchristosLIBDPLIBS +=	ctf ${OSNET}/lib/libctf
2852ebe1c2Schristos
2952ebe1c2SchristosCPPFLAGS+=	-I${OSNET}/sys \
3052ebe1c2Schristos		-I${OSNET}/dist/uts/common \
3152ebe1c2Schristos		-I${OSNET}/dist/lib/libctf/common
3252ebe1c2Schristos.else
3352ebe1c2SchristosCPPFLAGS+=	-DNO_CTF
3452ebe1c2Schristos.endif
3552ebe1c2Schristos
36aba4e15cSmrg.if defined(NOCPLUSPLUS) || ${MKCXX} == "no"
3752ebe1c2SchristosCPPFLAGS+=	-DNO_CXA_DEMANGLE
3852ebe1c2Schristos.else
39dde3b33eSwizLIBISCXX=	yes
4052ebe1c2Schristos.endif
4152ebe1c2Schristos
4252ebe1c2SchristosLIBDPLIBS+=	elf ${NETBSDSRCDIR}/external/bsd/elftoolchain/lib/libelf
4352ebe1c2SchristosLIBDPLIBS+=	rtld_db ${NETBSDSRCDIR}/external/bsd/librtld_db/lib
4452ebe1c2SchristosLIBDPLIBS+=	util ${NETBSDSRCDIR}/lib/libutil
4552ebe1c2Schristos
46*26057c75SchristosSHLIB_MAJOR=	1
4752ebe1c2SchristosSHLIB_MINOR=	0
4852ebe1c2Schristos
4952ebe1c2Schristos.include <bsd.lib.mk>
50