freebsd-dev/lib/libpmcstat/Makefile
Bryan Drewery 672ea456f9 META_MODE: Fix trying to rebuild jevents due to missing .meta file.
The tool is built separately in buildworld in a subdirectory rather than
how other build-tools are done.  Subdirectory builds in lib/libpmcstat
remain broken since the tool cannot be auto-built from here.
2018-05-25 21:46:53 +00:00

39 lines
807 B
Makefile

# $FreeBSD$
PACKAGE=lib${LIB}
LIB= pmcstat
INTERNALLIB=
SRCS= \
libpmcstat_event.c \
libpmcstat_image.c \
libpmcstat_logging.c \
libpmcstat_process.c \
libpmcstat_string.c \
libpmcstat_symbol.c \
libpmcstat_pmu_util.c
INCS= libpmcstat.h
CFLAGS+= -I${.CURDIR}
.if ${MACHINE_CPUARCH} == "amd64"
.if ${MACHINE_CPUARCH} == "aarch64"
EVENT_ARCH="arm64"
.elif ${MACHINE_CPUARCH} == "amd64"
EVENT_ARCH="x86"
.elif ${MACHINE_CPUARCH} == "powerpc"
EVENT_ARCH="powerpc"
.endif
JEVENTS= ${BTOOLSPATH:U.}/pmu-events/jevents
# This file is built in a subdirectory so never try to rebuild
# it here due to missing meta file.
${JEVENTS}: .NOMETA
libpmcstat_events.c: ${JEVENTS}
${JEVENTS} ${EVENT_ARCH} ${.CURDIR}/pmu-events/arch libpmcstat_events.c
SRCS+= libpmcstat_events.c
.endif
.include <bsd.lib.mk>