2005-06-09 19:45:09 +00:00
|
|
|
#
|
2005-04-19 04:01:25 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2005-04-28 00:53:45 +00:00
|
|
|
.PATH: ${.CURDIR}/../../dev/hwpmc
|
2005-04-19 04:01:25 +00:00
|
|
|
|
|
|
|
KMOD= hwpmc
|
|
|
|
|
2005-06-09 19:45:09 +00:00
|
|
|
SRCS= hwpmc_mod.c hwpmc_logging.c vnode_if.h
|
2005-04-19 04:01:25 +00:00
|
|
|
|
|
|
|
.if ${MACHINE_ARCH} == "amd64"
|
2008-11-09 17:37:54 +00:00
|
|
|
SRCS+= hwpmc_amd.c hwpmc_intel.c hwpmc_piv.c hwpmc_tsc.c hwpmc_x86.c
|
2005-06-09 19:45:09 +00:00
|
|
|
SRCS+= device_if.h bus_if.h
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${MACHINE_ARCH} == "arm"
|
|
|
|
SRCS+= hwpmc_arm.c
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${MACHINE_ARCH} == "i386"
|
2008-11-09 17:37:54 +00:00
|
|
|
SRCS+= hwpmc_amd.c hwpmc_intel.c hwpmc_piv.c hwpmc_ppro.c hwpmc_pentium.c
|
|
|
|
SRCS+= hwpmc_tsc.c hwpmc_x86.c
|
2005-06-09 19:45:09 +00:00
|
|
|
SRCS+= device_if.h bus_if.h
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${MACHINE_ARCH} == "ia64"
|
|
|
|
SRCS+= hwpmc_ia64.c
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${MACHINE_ARCH} == "powerpc"
|
|
|
|
SRCS+= hwpmc_powerpc.c
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${MACHINE_ARCH} == "sparc64"
|
|
|
|
SRCS+= hwpmc_sparc64.c
|
2005-04-19 04:01:25 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.kmod.mk>
|