eac32914a9
directory before the ${MACHINE_ARCH}/${MACHINE_ARCH} directory so that machine-specific files take precedence of architecture-specific ones. This fixes the build on sun4v which doesn't use the sparc64 version of mem.c. Tested by: make universe
21 lines
436 B
Makefile
21 lines
436 B
Makefile
# $FreeBSD$
|
|
|
|
.PATH: ${.CURDIR}/../../dev/mem
|
|
.PATH: ${.CURDIR}/../../${MACHINE}/${MACHINE}
|
|
.PATH: ${.CURDIR}/../../${MACHINE_ARCH}/${MACHINE_ARCH}
|
|
|
|
KMOD= mem
|
|
SRCS= memdev.c mem.c
|
|
.if ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "i386"
|
|
SRCS+= memutil.c
|
|
.endif
|
|
.if ${MACHINE_ARCH} == "i386"
|
|
SRCS+= i686_mem.c k6_mem.c
|
|
.endif
|
|
.if ${MACHINE_ARCH} == "amd64"
|
|
SRCS+= amd64_mem.c
|
|
.endif
|
|
SRCS+= bus_if.h device_if.h
|
|
|
|
.include <bsd.kmod.mk>
|