diff options
| author | Simon J. Gerraty <sjg@FreeBSD.org> | 2019-12-11 17:38:15 +0000 |
|---|---|---|
| committer | Simon J. Gerraty <sjg@FreeBSD.org> | 2019-12-11 17:38:15 +0000 |
| commit | 312809fe7fefbc8d5caa2b59089a5d9266378057 (patch) | |
| tree | d27e6f766ba2a6b544e5529b800f0313971983b2 /lib/libpmc | |
| parent | 2c9a9dfc187d171de6b92654d71b977f067ed641 (diff) | |
Notes
Diffstat (limited to 'lib/libpmc')
| -rw-r--r-- | lib/libpmc/Makefile | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/libpmc/Makefile b/lib/libpmc/Makefile index 47f82a6f7cc9b..cb3ea17c38318 100644 --- a/lib/libpmc/Makefile +++ b/lib/libpmc/Makefile @@ -17,12 +17,20 @@ EVENT_ARCH="x86" EVENT_ARCH="powerpc" .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 + # This file is built in a subdirectory so never try to rebuild it here. ${JEVENTS}: .PHONY .if make(*clean*) SUBDIR+= pmu-events .endif +.endif libpmc_events.c: ${JEVENTS} ${JEVENTS} ${EVENT_ARCH} ${.CURDIR}/pmu-events/arch libpmc_events.c |
