2008-05-21 22:10:14 -04:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
2014-05-06 00:22:01 -04:00
|
|
|
.include <src.opts.mk>
|
2012-09-05 23:19:48 -04:00
|
|
|
|
2016-02-04 16:16:35 -05:00
|
|
|
PACKAGE=lib${LIB}
|
2008-05-21 22:10:14 -04:00
|
|
|
LIB= proc
|
|
|
|
|
|
2016-12-05 23:18:09 -05:00
|
|
|
SRCS= crc32.c \
|
|
|
|
|
proc_bkpt.c \
|
2008-05-21 22:10:14 -04:00
|
|
|
proc_create.c \
|
2010-07-31 12:10:20 -04:00
|
|
|
proc_regs.c \
|
2008-05-21 22:10:14 -04:00
|
|
|
proc_sym.c \
|
2010-07-31 12:10:20 -04:00
|
|
|
proc_rtld.c \
|
2008-05-21 22:10:14 -04:00
|
|
|
proc_util.c
|
|
|
|
|
|
|
|
|
|
INCS= libproc.h
|
|
|
|
|
|
2010-02-25 17:16:30 -05:00
|
|
|
CFLAGS+= -I${.CURDIR}
|
2008-05-21 22:10:14 -04:00
|
|
|
|
2014-07-09 13:31:57 -04:00
|
|
|
.if ${MK_CXX} == "no"
|
|
|
|
|
CFLAGS+= -DNO_CXA_DEMANGLE
|
|
|
|
|
.elif ${MK_LIBCPLUSPLUS} != "no"
|
2014-11-25 06:07:26 -05:00
|
|
|
LIBADD+= cxxrt
|
2012-09-05 23:19:48 -04:00
|
|
|
.else
|
2014-11-25 06:07:26 -05:00
|
|
|
LIBADD+= supcplusplus
|
2012-09-05 23:19:48 -04:00
|
|
|
.endif
|
|
|
|
|
|
2016-07-29 23:09:23 -04:00
|
|
|
LIBADD+= elf procstat rtld_db util
|
2015-05-19 18:23:15 -04:00
|
|
|
|
2014-10-03 19:20:37 -04:00
|
|
|
.if ${MK_CDDL} != "no"
|
2014-11-25 06:07:26 -05:00
|
|
|
LIBADD+= ctf
|
2014-10-03 19:20:37 -04:00
|
|
|
IGNORE_PRAGMA= YES
|
2017-01-19 23:37:22 -05:00
|
|
|
CFLAGS+= -I${SRCTOP}/cddl/contrib/opensolaris/lib/libctf/common \
|
|
|
|
|
-I${SRCTOP}/sys/cddl/contrib/opensolaris/uts/common \
|
|
|
|
|
-I${SRCTOP}/sys/cddl/compat/opensolaris
|
2014-10-03 19:20:37 -04:00
|
|
|
.else
|
|
|
|
|
CFLAGS+= -DNO_CTF
|
|
|
|
|
.endif
|
|
|
|
|
|
2016-12-05 23:23:32 -05:00
|
|
|
SHLIB_MAJOR= 4
|
2008-05-21 22:10:14 -04:00
|
|
|
|
2014-04-13 01:21:56 -04:00
|
|
|
MAN=
|
2008-05-21 22:10:14 -04:00
|
|
|
|
2014-09-21 17:25:41 -04:00
|
|
|
.if ${MK_TESTS} != "no"
|
|
|
|
|
SUBDIR+= tests
|
|
|
|
|
.endif
|
|
|
|
|
|
2008-05-21 22:10:14 -04:00
|
|
|
.include <bsd.lib.mk>
|