Changeset View
Changeset View
Standalone View
Standalone View
head/lib/libpmc/Makefile
Show All 26 Lines | |||||
# 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 | .endif | ||||
libpmc_events.c: ${JEVENTS} | libpmc_events.c: ${JEVENTS} .META | ||||
${JEVENTS} ${EVENT_ARCH} ${.CURDIR}/pmu-events/arch libpmc_events.c | ${JEVENTS} ${EVENT_ARCH} ${.CURDIR}/pmu-events/arch ${.TARGET}.tmp | ||||
if [ ! -e ${.TARGET} ] || ! cmp -s ${.TARGET} ${.TARGET}.tmp; then \ | |||||
mv -f ${.TARGET}.tmp ${.TARGET}; \ | |||||
fi | |||||
CLEANFILES+= libpmc_events.c libpmc_events.c.tmp | |||||
SRCS+= libpmc_events.c | SRCS+= libpmc_events.c | ||||
.endif | .endif | ||||
WARNS?= 3 | WARNS?= 3 | ||||
CFLAGS+= -I${.CURDIR} | CFLAGS+= -I${.CURDIR} | ||||
CWARNFLAGS.gcc+= -Wno-shadow -Wno-cast-align | CWARNFLAGS.gcc+= -Wno-shadow -Wno-cast-align | ||||
# Silence warnings about usage of deprecated std::auto_ptr | # Silence warnings about usage of deprecated std::auto_ptr | ||||
▲ Show 20 Lines • Show All 76 Lines • Show Last 20 Lines |