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} == "alpha" 14SRCS+= hwpmc_alpha.c 15.endif 16 17.if ${MACHINE_ARCH} == "amd64" 18SRCS+= hwpmc_amd.c hwpmc_piv.c hwpmc_x86.c 19SRCS+= device_if.h bus_if.h 20.endif 21 22.if ${MACHINE_ARCH} == "arm" 23SRCS+= hwpmc_arm.c 24.endif 25 26.if ${MACHINE_ARCH} == "i386" 27SRCS+= hwpmc_amd.c hwpmc_piv.c hwpmc_ppro.c hwpmc_pentium.c hwpmc_x86.c 28SRCS+= device_if.h bus_if.h 29.endif 30 31.if ${MACHINE_ARCH} == "ia64" 32SRCS+= hwpmc_ia64.c 33.endif 34 35.if ${MACHINE_ARCH} == "powerpc" 36SRCS+= hwpmc_powerpc.c 37.endif 38 39.if ${MACHINE_ARCH} == "sparc64" 40SRCS+= hwpmc_sparc64.c 41.endif 42 43.include <bsd.kmod.mk> 44