diff options
-rw-r--r-- | sys/conf/Makefile.alpha | 5 | ||||
-rw-r--r-- | sys/conf/Makefile.i386 | 6 | ||||
-rw-r--r-- | sys/conf/Makefile.powerpc | 6 |
3 files changed, 17 insertions, 0 deletions
diff --git a/sys/conf/Makefile.alpha b/sys/conf/Makefile.alpha index 719a49e..7f7f2aa 100644 --- a/sys/conf/Makefile.alpha +++ b/sys/conf/Makefile.alpha @@ -104,6 +104,7 @@ SYSTEM_DEP+= $S/conf/ldscript.$M %CLEAN +.PHONY: all modules all: ${KERNEL} .if !defined(DEBUG) @@ -119,7 +120,11 @@ ${FULLKERNEL}: ${SYSTEM_DEP} vers.o @echo linking ${.TARGET} ${SYSTEM_LD} ${SYSTEM_LD_TAIL} + .if !defined(NO_MODULES) && exists(${.CURDIR}/../../modules) +all: modules + +modules: @mkdir -p ${.CURDIR}/modules cd ${.CURDIR}/../../modules && env MAKEOBJDIRPREFIX=${.CURDIR}/modules ${MAKE} obj cd ${.CURDIR}/../../modules && ${MAKE} all diff --git a/sys/conf/Makefile.i386 b/sys/conf/Makefile.i386 index 2fe7d10..74ade06 100644 --- a/sys/conf/Makefile.i386 +++ b/sys/conf/Makefile.i386 @@ -103,6 +103,8 @@ SYSTEM_DEP+= $S/conf/ldscript.$M %CLEAN +.PHONY: all modules + all: ${KERNEL} .if !defined(DEBUG) @@ -118,7 +120,11 @@ ${FULLKERNEL}: ${SYSTEM_DEP} vers.o @echo linking ${.TARGET} ${SYSTEM_LD} ${SYSTEM_LD_TAIL} + .if !defined(NO_MODULES) && exists(${.CURDIR}/../../modules) +all: modules + +modules: @mkdir -p ${.CURDIR}/modules cd ${.CURDIR}/../../modules && env MAKEOBJDIRPREFIX=${.CURDIR}/modules ${MAKE} obj cd ${.CURDIR}/../../modules && env MAKEOBJDIRPREFIX=${.CURDIR}/modules ${MAKE} all diff --git a/sys/conf/Makefile.powerpc b/sys/conf/Makefile.powerpc index 2fe7d10..74ade06 100644 --- a/sys/conf/Makefile.powerpc +++ b/sys/conf/Makefile.powerpc @@ -103,6 +103,8 @@ SYSTEM_DEP+= $S/conf/ldscript.$M %CLEAN +.PHONY: all modules + all: ${KERNEL} .if !defined(DEBUG) @@ -118,7 +120,11 @@ ${FULLKERNEL}: ${SYSTEM_DEP} vers.o @echo linking ${.TARGET} ${SYSTEM_LD} ${SYSTEM_LD_TAIL} + .if !defined(NO_MODULES) && exists(${.CURDIR}/../../modules) +all: modules + +modules: @mkdir -p ${.CURDIR}/modules cd ${.CURDIR}/../../modules && env MAKEOBJDIRPREFIX=${.CURDIR}/modules ${MAKE} obj cd ${.CURDIR}/../../modules && env MAKEOBJDIRPREFIX=${.CURDIR}/modules ${MAKE} all |