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