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
|
|
|
|
|
2010-07-31 16:10:20 +00:00
|
|
|
SRCS= 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
|
|
|
|
|
2015-05-19 22:23:15 +00:00
|
|
|
LIBADD+= elf rtld_db util
|
|
|
|
|
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
|
|
|
|
CFLAGS+= -I${.CURDIR}/../../cddl/contrib/opensolaris/lib/libctf/common \
|
|
|
|
-I${.CURDIR}/../../sys/cddl/contrib/opensolaris/uts/common \
|
|
|
|
-I${.CURDIR}/../../sys/cddl/compat/opensolaris
|
|
|
|
.else
|
|
|
|
CFLAGS+= -DNO_CTF
|
|
|
|
.endif
|
|
|
|
|
|
|
|
SHLIB_MAJOR= 3
|
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
|
|
|
|
2014-09-21 21:25:41 +00:00
|
|
|
.if ${MK_TESTS} != "no"
|
|
|
|
SUBDIR+= tests
|
|
|
|
.endif
|
|
|
|
|
2008-05-22 02:10:14 +00:00
|
|
|
.include <bsd.lib.mk>
|