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