# $NetBSD: Makefile,v 1.3.8.1 2017/10/11 22:49:49 snj Exp $ .include MKMAN= no LIB= proc SRCS= proc_bkpt.c \ proc_create.c \ proc_regs.c \ proc_sym.c \ proc_rtld.c \ proc_util.c INCS= libproc.h INCSDIR=/usr/include LIBPROCDIR=${.CURDIR}/../dist .PATH: ${LIBPROCDIR} CPPFLAGS+= -I${LIBPROCDIR} -I${.CURDIR}/../../librtld_db .if ${MKCTF} != "no" OSNET=${NETBSDSRCDIR}/external/cddl/osnet/ LIBDPLIBS += ctf ${OSNET}/lib/libctf CPPFLAGS+= -I${OSNET}/sys \ -I${OSNET}/dist/uts/common \ -I${OSNET}/dist/lib/libctf/common .else CPPFLAGS+= -DNO_CTF .endif .if defined(NOCPLUSPLUS) || ${MKCXX} == "no" CPPFLAGS+= -DNO_CXA_DEMANGLE .else LIBISCXX= yes .endif LIBDPLIBS+= elf ${NETBSDSRCDIR}/external/bsd/elftoolchain/lib/libelf LIBDPLIBS+= rtld_db ${NETBSDSRCDIR}/external/bsd/librtld_db/lib LIBDPLIBS+= util ${NETBSDSRCDIR}/lib/libutil SHLIB_MAJOR= 1 SHLIB_MINOR= 0 .include