pmc: Add include path for libpmcstat as it is an internallib

Reviewed by:	bapt
Differential Revision:	https://reviews.freebsd.org/D24173
This commit is contained in:
Emmanuel Vadot 2020-03-25 01:32:16 +00:00
parent e055e3367e
commit ee55186dfd
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=359292
4 changed files with 7 additions and 2 deletions

View File

@ -16,9 +16,10 @@ EVENT_ARCH="x86"
EVENT_ARCH="powerpc"
.endif
CFLAGS+= -I${SRCTOP}/${RELDIR:H}/libpmcstat
.if ${MK_DIRDEPS_BUILD} == "yes"
# avoid circular dependency
CFLAGS+= -I${SRCTOP}/${RELDIR:H}/libpmcstat
GENDIRDEPS_FILTER+= N${RELDIR:H}/libpmcstat
JEVENTS?= ${HOST_OBJTOP}/${RELDIR}/pmu-events/jevents
.else

View File

@ -10,6 +10,8 @@ SRCS= \
libpmcstat_process.c \
libpmcstat_string.c \
libpmcstat_symbol.c
INCS= libpmcstat.h
# If libpmcstat becomes public uncomment this line
#INCS= libpmcstat.h
.include <bsd.lib.mk>

View File

@ -9,6 +9,7 @@ WARNS?= 3
CXXFLAGS+= -O0
CXXSTD= c++14
CWARNFLAGS.gcc+= -Wno-redundant-decls
CFLAGS+= -I${SRCTOP}/lib/libpmcstat
LIBADD= kvm pmc m ncursesw pmcstat elf

View File

@ -5,6 +5,7 @@
PROG_CXX= pmcstat
MAN= pmcstat.8
CFLAGS+= -I${SRCTOP}/lib/libpmcstat
LIBADD= kvm pmc m ncursesw pmcstat elf
SRCS= pmcstat.c pmcstat.h pmcstat_log.c \