Changeset View
Changeset View
Standalone View
Standalone View
head/lib/libpmc/Makefile
Show All 11 Lines | |||||
.if ${MACHINE_ARCH} == "aarch64" | .if ${MACHINE_ARCH} == "aarch64" | ||||
EVENT_ARCH="arm64" | EVENT_ARCH="arm64" | ||||
.elif ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "i386" | .elif ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "i386" | ||||
EVENT_ARCH="x86" | EVENT_ARCH="x86" | ||||
.elif ${MACHINE_ARCH} == "powerpc" | .elif ${MACHINE_ARCH} == "powerpc" | ||||
EVENT_ARCH="powerpc" | EVENT_ARCH="powerpc" | ||||
.endif | .endif | ||||
.if ${MK_DIRDEPS_BUILD} == "yes" | |||||
# avoid circular dependency | |||||
CFLAGS+= -I${RELDIR:H}/libpmcstat | |||||
GENDIRDEPS_FILTER+= N${RELDIR:H}/libpmcstat | |||||
JEVENTS?= ${HOST_OBJTOP}/${RELDIR}/pmu-events/jevents | |||||
.else | |||||
JEVENTS= ${BTOOLSPATH:U.}/pmu-events/jevents | JEVENTS= ${BTOOLSPATH:U.}/pmu-events/jevents | ||||
# This file is built in a subdirectory so never try to rebuild it here. | # This file is built in a subdirectory so never try to rebuild it here. | ||||
${JEVENTS}: .PHONY | ${JEVENTS}: .PHONY | ||||
.if make(*clean*) | .if make(*clean*) | ||||
SUBDIR+= pmu-events | SUBDIR+= pmu-events | ||||
.endif | |||||
.endif | .endif | ||||
libpmc_events.c: ${JEVENTS} | libpmc_events.c: ${JEVENTS} | ||||
${JEVENTS} ${EVENT_ARCH} ${.CURDIR}/pmu-events/arch libpmc_events.c | ${JEVENTS} ${EVENT_ARCH} ${.CURDIR}/pmu-events/arch libpmc_events.c | ||||
SRCS+= libpmc_events.c | SRCS+= libpmc_events.c | ||||
.endif | .endif | ||||
WARNS?= 3 | WARNS?= 3 | ||||
▲ Show 20 Lines • Show All 81 Lines • Show Last 20 Lines |