diff options
author | obrien <obrien@FreeBSD.org> | 2000-05-04 21:12:28 +0000 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 2000-05-04 21:12:28 +0000 |
commit | 4d19687a3ca4bdeefac4dc2c2a3467fd8bcfdf60 (patch) | |
tree | ec87cd5182bd501ed3bb42243360d54f42fc0a50 /sys | |
parent | 83f52e170f54d5268e32b23668a378a8a7c762bf (diff) | |
download | FreeBSD-src-4d19687a3ca4bdeefac4dc2c2a3467fd8bcfdf60.zip FreeBSD-src-4d19687a3ca4bdeefac4dc2c2a3467fd8bcfdf60.tar.gz |
Set MAKEOBJDIRPREFIX to modules/ in the current directory and build modules
there.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/conf/Makefile.i386 | 16 | ||||
-rw-r--r-- | sys/conf/Makefile.powerpc | 16 |
2 files changed, 20 insertions, 12 deletions
diff --git a/sys/conf/Makefile.i386 b/sys/conf/Makefile.i386 index b3c4b5f..2fe7d10 100644 --- a/sys/conf/Makefile.i386 +++ b/sys/conf/Makefile.i386 @@ -119,7 +119,9 @@ ${FULLKERNEL}: ${SYSTEM_DEP} vers.o ${SYSTEM_LD} ${SYSTEM_LD_TAIL} .if !defined(NO_MODULES) && exists(${.CURDIR}/../../modules) - cd ${.CURDIR}/../../modules && ${MAKE} all + @mkdir -p ${.CURDIR}/modules + cd ${.CURDIR}/../../modules && env MAKEOBJDIRPREFIX=${.CURDIR}/modules ${MAKE} obj + cd ${.CURDIR}/../../modules && env MAKEOBJDIRPREFIX=${.CURDIR}/modules ${MAKE} all .endif .if !exists(.depend) @@ -139,7 +141,7 @@ clean: ${MFILES:T:S/.m$/.c/} ${MFILES:T:S/.m$/.h/} \ ${CLEAN} .if !defined(NO_MODULES) && exists(${.CURDIR}/../../modules) - cd ${.CURDIR}/../../modules && ${MAKE} clean + cd ${.CURDIR}/../../modules && env MAKEOBJDIRPREFIX=${.CURDIR}/modules ${MAKE} clean .endif #lint: /tmp param.c @@ -191,13 +193,15 @@ depend: assym.s param.c vnode_if.h ${BEFORE_DEPEND} \ rm -f .depend mv -f .newdep .depend .if !defined(NO_MODULES) && exists(${.CURDIR}/../../modules) - cd ${.CURDIR}/../../modules && ${MAKE} depend + @mkdir -p ${.CURDIR}/modules + cd ${.CURDIR}/../../modules && env MAKEOBJDIRPREFIX=${.CURDIR}/modules ${MAKE} obj + cd ${.CURDIR}/../../modules && env MAKEOBJDIRPREFIX=${.CURDIR}/modules ${MAKE} depend .endif cleandepend: rm -f .depend .if !defined(NO_MODULES) && exists(${.CURDIR}/../../modules) - cd ${.CURDIR}/../../modules && ${MAKE} cleandepend + cd ${.CURDIR}/../../modules && env MAKEOBJDIRPREFIX=${.CURDIR}/modules ${MAKE} cleandepend .endif links: @@ -226,14 +230,14 @@ install install.debug: install -c -m 555 -o root -g wheel -fschg \ ${KERNEL}${.TARGET:S/install//} ${DESTDIR}/${KERNEL} .if !defined(NO_MODULES) && exists(${.CURDIR}/../../modules) - cd ${.CURDIR}/../../modules && ${MAKE} install + cd ${.CURDIR}/../../modules && env MAKEOBJDIRPREFIX=${.CURDIR}/modules ${MAKE} install .endif reinstall reinstall.debug: install -c -m 555 -o root -g wheel -fschg \ ${KERNEL}${.TARGET:S/reinstall//} ${DESTDIR}/${KERNEL} .if !defined(NO_MODULES) && exists(${.CURDIR}/../../modules) - cd ${.CURDIR}/../../modules && ${MAKE} install + cd ${.CURDIR}/../../modules && env MAKEOBJDIRPREFIX=${.CURDIR}/modules ${MAKE} install .endif config.o: diff --git a/sys/conf/Makefile.powerpc b/sys/conf/Makefile.powerpc index b3c4b5f..2fe7d10 100644 --- a/sys/conf/Makefile.powerpc +++ b/sys/conf/Makefile.powerpc @@ -119,7 +119,9 @@ ${FULLKERNEL}: ${SYSTEM_DEP} vers.o ${SYSTEM_LD} ${SYSTEM_LD_TAIL} .if !defined(NO_MODULES) && exists(${.CURDIR}/../../modules) - cd ${.CURDIR}/../../modules && ${MAKE} all + @mkdir -p ${.CURDIR}/modules + cd ${.CURDIR}/../../modules && env MAKEOBJDIRPREFIX=${.CURDIR}/modules ${MAKE} obj + cd ${.CURDIR}/../../modules && env MAKEOBJDIRPREFIX=${.CURDIR}/modules ${MAKE} all .endif .if !exists(.depend) @@ -139,7 +141,7 @@ clean: ${MFILES:T:S/.m$/.c/} ${MFILES:T:S/.m$/.h/} \ ${CLEAN} .if !defined(NO_MODULES) && exists(${.CURDIR}/../../modules) - cd ${.CURDIR}/../../modules && ${MAKE} clean + cd ${.CURDIR}/../../modules && env MAKEOBJDIRPREFIX=${.CURDIR}/modules ${MAKE} clean .endif #lint: /tmp param.c @@ -191,13 +193,15 @@ depend: assym.s param.c vnode_if.h ${BEFORE_DEPEND} \ rm -f .depend mv -f .newdep .depend .if !defined(NO_MODULES) && exists(${.CURDIR}/../../modules) - cd ${.CURDIR}/../../modules && ${MAKE} depend + @mkdir -p ${.CURDIR}/modules + cd ${.CURDIR}/../../modules && env MAKEOBJDIRPREFIX=${.CURDIR}/modules ${MAKE} obj + cd ${.CURDIR}/../../modules && env MAKEOBJDIRPREFIX=${.CURDIR}/modules ${MAKE} depend .endif cleandepend: rm -f .depend .if !defined(NO_MODULES) && exists(${.CURDIR}/../../modules) - cd ${.CURDIR}/../../modules && ${MAKE} cleandepend + cd ${.CURDIR}/../../modules && env MAKEOBJDIRPREFIX=${.CURDIR}/modules ${MAKE} cleandepend .endif links: @@ -226,14 +230,14 @@ install install.debug: install -c -m 555 -o root -g wheel -fschg \ ${KERNEL}${.TARGET:S/install//} ${DESTDIR}/${KERNEL} .if !defined(NO_MODULES) && exists(${.CURDIR}/../../modules) - cd ${.CURDIR}/../../modules && ${MAKE} install + cd ${.CURDIR}/../../modules && env MAKEOBJDIRPREFIX=${.CURDIR}/modules ${MAKE} install .endif reinstall reinstall.debug: install -c -m 555 -o root -g wheel -fschg \ ${KERNEL}${.TARGET:S/reinstall//} ${DESTDIR}/${KERNEL} .if !defined(NO_MODULES) && exists(${.CURDIR}/../../modules) - cd ${.CURDIR}/../../modules && ${MAKE} install + cd ${.CURDIR}/../../modules && env MAKEOBJDIRPREFIX=${.CURDIR}/modules ${MAKE} install .endif config.o: |