NetBSD/lib/libpmc/Makefile
christos ba2647ff5b pmc_evid_, pmc_ctr_t etc are defined in <machine/types.h> but are not exposed
anymore by default since they violate the userland namespace. Either we
should create __pmc types, or a separate machine/pmc.h header.
2016-01-23 21:44:55 +00:00

19 lines
305 B
Makefile

# $NetBSD: Makefile,v 1.2 2016/01/23 21:44:55 christos Exp $
.include <bsd.own.mk>
MAN= pmc.3
.if exists(${.CURDIR}/pmc_${MACHINE_CPU}.c)
LIB= pmc
SRCS= pmc.c
SRCS+= pmc_${MACHINE_CPU}.c
CPPFLAGS+= -D_KERNTYPES
INCS= pmc.h
INCSDIR=/usr/include
.include <bsd.lib.mk>
.else
.include <bsd.man.mk>
.endif