2004-08-01 11:40:54 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
.PATH: ${.CURDIR}/../../dev/mem
|
2006-10-16 22:09:48 +00:00
|
|
|
.PATH: ${.CURDIR}/../../${MACHINE}/${MACHINE}
|
2004-08-01 11:40:54 +00:00
|
|
|
.PATH: ${.CURDIR}/../../${MACHINE_ARCH}/${MACHINE_ARCH}
|
|
|
|
|
|
|
|
KMOD= mem
|
|
|
|
SRCS= memdev.c mem.c
|
2004-08-04 18:30:31 +00:00
|
|
|
.if ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "i386"
|
|
|
|
SRCS+= memutil.c
|
|
|
|
.endif
|
2004-09-28 07:26:00 +00:00
|
|
|
.if ${MACHINE_ARCH} == "i386"
|
|
|
|
SRCS+= i686_mem.c k6_mem.c
|
|
|
|
.endif
|
|
|
|
.if ${MACHINE_ARCH} == "amd64"
|
|
|
|
SRCS+= amd64_mem.c
|
|
|
|
.endif
|
2004-12-29 08:44:30 +00:00
|
|
|
SRCS+= bus_if.h device_if.h
|
2004-08-01 11:40:54 +00:00
|
|
|
|
2008-07-22 09:56:45 +00:00
|
|
|
.if ${MACHINE} == "sun4v"
|
|
|
|
SRCS+= opt_global.h
|
2008-07-24 14:07:52 +00:00
|
|
|
|
|
|
|
.if defined(KERNBUILDDIR)
|
|
|
|
MKDEP= -include ${KERNBUILDDIR}/opt_global.h
|
|
|
|
.else
|
2008-07-22 09:56:45 +00:00
|
|
|
CFLAGS+= -include opt_global.h
|
|
|
|
MKDEP= -include opt_global.h
|
|
|
|
|
|
|
|
opt_global.h:
|
|
|
|
echo "#define SUN4V 1" > ${.TARGET}
|
|
|
|
.endif
|
2008-07-24 14:07:52 +00:00
|
|
|
.endif
|
2008-07-22 09:56:45 +00:00
|
|
|
|
2004-08-01 11:40:54 +00:00
|
|
|
.include <bsd.kmod.mk>
|