]> CyberLeo.Net >> Repos - FreeBSD/releng/8.1.git/blob - sys/modules/mem/Makefile
Copy stable/8 to releng/8.1 in preparation for 8.1-RC1.
[FreeBSD/releng/8.1.git] / sys / modules / mem / Makefile
1 # $FreeBSD$
2
3 .PATH: ${.CURDIR}/../../dev/mem
4 .PATH: ${.CURDIR}/../../${MACHINE}/${MACHINE}
5 .PATH: ${.CURDIR}/../../${MACHINE_ARCH}/${MACHINE_ARCH}
6
7 KMOD=   mem
8 SRCS=   memdev.c mem.c
9 .if ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "i386"
10 SRCS+=  memutil.c
11 .endif
12 .if ${MACHINE_ARCH} == "i386"
13 SRCS+=  i686_mem.c k6_mem.c
14 .endif
15 .if ${MACHINE_ARCH} == "amd64"
16 SRCS+=  amd64_mem.c
17 .endif
18 SRCS+=  bus_if.h device_if.h
19
20 .if ${MACHINE} == "sun4v"
21 SRCS+=          opt_global.h
22
23 .if defined(KERNBUILDDIR)
24 MKDEP=          -include ${KERNBUILDDIR}/opt_global.h
25 .else
26 CFLAGS+=        -include opt_global.h
27 MKDEP=          -include opt_global.h
28
29 opt_global.h:
30         echo "#define SUN4V 1" > ${.TARGET}
31 .endif
32 .endif
33
34 .include <bsd.kmod.mk>