NetBSD/sys/modules/arch/compatsubdir.mk
mrg a2c4975d63 build evbppc modules in 3 different flavours:
- oea (default)
	- ibm4xx
	- booke

this, together with earlier machine_module[] work, should allow evbppc
platforms to use modules.
2011-06-15 09:45:58 +00:00

31 lines
684 B
Makefile

# $NetBSD: compatsubdir.mk,v 1.1 2011/06/15 09:45:59 mrg Exp $
# Build netbsd kernel modules.
.include <bsd.own.mk>
.if ${MKCOMPATMODULES} != "no"
.if !make(includes)
# make sure we get an objdir built early enough
.include <bsd.prog.mk>
MAKEDIRTARGETENV=
.if defined(MAKEOBJDIRPREFIX)
MAKEDIRTARGETENV+= unset MAKEOBJDIRPREFIX &&
.endif
MAKEDIRTARGETENV+= MAKEOBJDIR='$${.CURDIR:C,^${NETBSDSRCDIR},${.OBJDIR},}'
MAKEDIRTARGETENV+= MKOBJDIRS=yes MKSHARE=no
MAKEDIRTARGETENV+= BSD_MK_COMPAT_FILE=${BSD_MK_COMPAT_FILE} MKCOMPATMODULES=no
.if defined(BOOTSTRAP_SUBDIRS)
SUBDIR= ${BOOTSTRAP_SUBDIRS}
.else
SUBDIR= ../../../../modules
.endif
.include <bsd.subdir.mk>
.endif
.endif