From a1ffd780f3e26b54aecd0599dcec917026d625b3 Mon Sep 17 00:00:00 2001 From: marius Date: Thu, 24 Jul 2008 14:07:52 +0000 Subject: [PATCH] Prefer the opt_global.h from KERNBUILDDIR if existent so we obtain all macros that might be relevant. --- sys/modules/mem/Makefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sys/modules/mem/Makefile b/sys/modules/mem/Makefile index 7f43d0c56b8f..812da1439363 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