1# $FreeBSD$ 2 3.PATH: ${.CURDIR}/../../dev/mem 4.PATH: ${.CURDIR}/../../${MACHINE}/${MACHINE} 5.PATH: ${.CURDIR}/../../${MACHINE_CPUARCH}/${MACHINE_CPUARCH} 6 7KMOD= mem 8SRCS= mem.c memdev.c memutil.c 9.if ${MACHINE_CPUARCH} == "i386" 10SRCS+= i686_mem.c k6_mem.c 11.endif 12.if ${MACHINE_CPUARCH} == "amd64" 13SRCS+= amd64_mem.c 14.endif 15SRCS+= bus_if.h device_if.h 16 17.if ${MACHINE} == "sun4v" 18SRCS+= opt_global.h 19 20.if defined(KERNBUILDDIR) 21MKDEP= -include ${KERNBUILDDIR}/opt_global.h 22.else 23CFLAGS+= -include opt_global.h 24MKDEP= -include opt_global.h 25 26opt_global.h: 27 echo "#define SUN4V 1" > ${.TARGET} 28.endif 29.endif 30 31.include <bsd.kmod.mk> 32