diff options
author | marius <marius@FreeBSD.org> | 2008-07-24 14:07:52 +0000 |
---|---|---|
committer | marius <marius@FreeBSD.org> | 2008-07-24 14:07:52 +0000 |
commit | a1ffd780f3e26b54aecd0599dcec917026d625b3 (patch) | |
tree | 9c14e5bd01b56a364dd029e326dabdc864e55253 /sys/modules | |
parent | 424364633e837ee8dc14907f91734211526ab6fa (diff) | |
download | FreeBSD-src-a1ffd780f3e26b54aecd0599dcec917026d625b3.zip FreeBSD-src-a1ffd780f3e26b54aecd0599dcec917026d625b3.tar.gz |
Prefer the opt_global.h from KERNBUILDDIR if existent so we obtain all
macros that might be relevant.
Diffstat (limited to 'sys/modules')
-rw-r--r-- | sys/modules/mem/Makefile | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/modules/mem/Makefile b/sys/modules/mem/Makefile index 7f43d0c..812da14 100644 --- a/sys/modules/mem/Makefile +++ b/sys/modules/mem/Makefile @@ -19,11 +19,16 @@ SRCS+= bus_if.h device_if.h .if ${MACHINE} == "sun4v" SRCS+= opt_global.h + +.if defined(KERNBUILDDIR) +MKDEP= -include ${KERNBUILDDIR}/opt_global.h +.else CFLAGS+= -include opt_global.h MKDEP= -include opt_global.h opt_global.h: echo "#define SUN4V 1" > ${.TARGET} .endif +.endif .include <bsd.kmod.mk> |