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