1147191Sjkoshy# 2145256Sjkoshy# $FreeBSD: releng/10.2/sys/modules/hwpmc/Makefile 263132 2014-03-14 02:37:07Z jhibbits $ 3145256Sjkoshy# 4145256Sjkoshy 5145607Sjkoshy.PATH: ${.CURDIR}/../../dev/hwpmc 6145256Sjkoshy 7145256SjkoshyKMOD= hwpmc 8145256Sjkoshy 9233628SfabientSRCS= hwpmc_mod.c hwpmc_logging.c hwpmc_soft.c vnode_if.h 10145256Sjkoshy 11211690Simp.if ${MACHINE_CPUARCH} == "amd64" 12185363SjkoshySRCS+= hwpmc_amd.c hwpmc_core.c hwpmc_intel.c hwpmc_piv.c hwpmc_tsc.c 13206089SfabientSRCS+= hwpmc_x86.c hwpmc_uncore.c 14147191SjkoshySRCS+= device_if.h bus_if.h 15145256Sjkoshy.endif 16145256Sjkoshy 17211690Simp.if ${MACHINE_CPUARCH} == "arm" 18147191SjkoshySRCS+= hwpmc_arm.c 19147191Sjkoshy.endif 20147191Sjkoshy 21211690Simp.if ${MACHINE_CPUARCH} == "i386" 22185363SjkoshySRCS+= hwpmc_amd.c hwpmc_core.c hwpmc_intel.c hwpmc_piv.c hwpmc_ppro.c 23206089SfabientSRCS+= hwpmc_pentium.c hwpmc_tsc.c hwpmc_x86.c hwpmc_uncore.c 24147191SjkoshySRCS+= device_if.h bus_if.h 25147191Sjkoshy.endif 26147191Sjkoshy 27211690Simp.if ${MACHINE_CPUARCH} == "ia64" 28147191SjkoshySRCS+= hwpmc_ia64.c 29147191Sjkoshy.endif 30147191Sjkoshy 31209991Snwhitehorn.if ${MACHINE_CPUARCH} == "powerpc" 32263132SjhibbitsSRCS+= hwpmc_powerpc.c hwpmc_mpc7xxx.c hwpmc_ppc970.c 33147191Sjkoshy.endif 34147191Sjkoshy 35211690Simp.if ${MACHINE_CPUARCH} == "sparc64" 36147191SjkoshySRCS+= hwpmc_sparc64.c 37147191Sjkoshy.endif 38147191Sjkoshy 39145256Sjkoshy.include <bsd.kmod.mk> 40