c6e071ef3a
Use MACHINE_CPUARCH in preference to MACHINE_ARCH. The former is the source code location of the machine, the latter the binary output. In general, we want to use MACHINE_CPUARCH instead of MACHINE_ARCH unless we're tesitng for a specific target. The isn't even moot for i386/amd64 where there's momemntum towards a MACHINE_CPUARCH == x86, although a specific cleanup for that likely would be needed...
40 lines
764 B
Makefile
40 lines
764 B
Makefile
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
.PATH: ${.CURDIR}/../../dev/hwpmc
|
|
|
|
KMOD= hwpmc
|
|
|
|
SRCS= hwpmc_mod.c hwpmc_logging.c vnode_if.h
|
|
|
|
.if ${MACHINE_CPUARCH} == "amd64"
|
|
SRCS+= hwpmc_amd.c hwpmc_core.c hwpmc_intel.c hwpmc_piv.c hwpmc_tsc.c
|
|
SRCS+= hwpmc_x86.c hwpmc_uncore.c
|
|
SRCS+= device_if.h bus_if.h
|
|
.endif
|
|
|
|
.if ${MACHINE_CPUARCH} == "arm"
|
|
SRCS+= hwpmc_arm.c
|
|
.endif
|
|
|
|
.if ${MACHINE_CPUARCH} == "i386"
|
|
SRCS+= hwpmc_amd.c hwpmc_core.c hwpmc_intel.c hwpmc_piv.c hwpmc_ppro.c
|
|
SRCS+= hwpmc_pentium.c hwpmc_tsc.c hwpmc_x86.c hwpmc_uncore.c
|
|
SRCS+= device_if.h bus_if.h
|
|
.endif
|
|
|
|
.if ${MACHINE_CPUARCH} == "ia64"
|
|
SRCS+= hwpmc_ia64.c
|
|
.endif
|
|
|
|
.if ${MACHINE_CPUARCH} == "powerpc"
|
|
SRCS+= hwpmc_powerpc.c
|
|
.endif
|
|
|
|
.if ${MACHINE_CPUARCH} == "sparc64"
|
|
SRCS+= hwpmc_sparc64.c
|
|
.endif
|
|
|
|
.include <bsd.kmod.mk>
|