1# 2# $FreeBSD$ 3# 4 5.PATH: ${.CURDIR}/../../dev/hwpmc 6 7KMOD= hwpmc 8 9SRCS= hwpmc_mod.c hwpmc_logging.c vnode_if.h 10 11WARNS?= 2 12 13.if ${MACHINE_ARCH} == "amd64" 14SRCS+= hwpmc_amd.c hwpmc_piv.c hwpmc_x86.c 15SRCS+= device_if.h bus_if.h 16.endif 17 18.if ${MACHINE_ARCH} == "arm" 19SRCS+= hwpmc_arm.c 20.endif 21 22.if ${MACHINE_ARCH} == "i386" 23SRCS+= hwpmc_amd.c hwpmc_piv.c hwpmc_ppro.c hwpmc_pentium.c hwpmc_x86.c 24SRCS+= device_if.h bus_if.h 25.endif 26 27.if ${MACHINE_ARCH} == "ia64" 28SRCS+= hwpmc_ia64.c 29.endif 30 31.if ${MACHINE_ARCH} == "powerpc" 32SRCS+= hwpmc_powerpc.c 33.endif 34 35.if ${MACHINE_ARCH} == "sparc64" 36SRCS+= hwpmc_sparc64.c 37.endif 38 39.include <bsd.kmod.mk> 40