Deleted Added
full compact
Makefile (180781) Makefile (211690)
1# $FreeBSD: head/sys/modules/mem/Makefile 180781 2008-07-24 14:07:52Z marius $
1# $FreeBSD: head/sys/modules/mem/Makefile 211690 2010-08-23 06:13:29Z imp $
2
3.PATH: ${.CURDIR}/../../dev/mem
4.PATH: ${.CURDIR}/../../${MACHINE}/${MACHINE}
2
3.PATH: ${.CURDIR}/../../dev/mem
4.PATH: ${.CURDIR}/../../${MACHINE}/${MACHINE}
5.PATH: ${.CURDIR}/../../${MACHINE_ARCH}/${MACHINE_ARCH}
5.PATH: ${.CURDIR}/../../${MACHINE_CPUARCH}/${MACHINE_CPUARCH}
6
7KMOD= mem
8SRCS= memdev.c mem.c
6
7KMOD= mem
8SRCS= memdev.c mem.c
9.if ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "i386"
9.if ${MACHINE_CPUARCH} == "amd64" || ${MACHINE_CPUARCH} == "i386"
10SRCS+= memutil.c
11.endif
10SRCS+= memutil.c
11.endif
12.if ${MACHINE_ARCH} == "i386"
12.if ${MACHINE_CPUARCH} == "i386"
13SRCS+= i686_mem.c k6_mem.c
14.endif
13SRCS+= i686_mem.c k6_mem.c
14.endif
15.if ${MACHINE_ARCH} == "amd64"
15.if ${MACHINE_CPUARCH} == "amd64"
16SRCS+= amd64_mem.c
17.endif
18SRCS+= bus_if.h device_if.h
19
20.if ${MACHINE} == "sun4v"
21SRCS+= opt_global.h
22
23.if defined(KERNBUILDDIR)
24MKDEP= -include ${KERNBUILDDIR}/opt_global.h
25.else
26CFLAGS+= -include opt_global.h
27MKDEP= -include opt_global.h
28
29opt_global.h:
30 echo "#define SUN4V 1" > ${.TARGET}
31.endif
32.endif
33
34.include <bsd.kmod.mk>
16SRCS+= amd64_mem.c
17.endif
18SRCS+= bus_if.h device_if.h
19
20.if ${MACHINE} == "sun4v"
21SRCS+= opt_global.h
22
23.if defined(KERNBUILDDIR)
24MKDEP= -include ${KERNBUILDDIR}/opt_global.h
25.else
26CFLAGS+= -include opt_global.h
27MKDEP= -include opt_global.h
28
29opt_global.h:
30 echo "#define SUN4V 1" > ${.TARGET}
31.endif
32.endif
33
34.include <bsd.kmod.mk>