diff options
| author | Yoshihiro Takahashi <nyan@FreeBSD.org> | 2000-05-10 13:57:22 +0000 |
|---|---|---|
| committer | Yoshihiro Takahashi <nyan@FreeBSD.org> | 2000-05-10 13:57:22 +0000 |
| commit | a5b52892d82ee6fa9e82bddace419d95cbcb859b (patch) | |
| tree | 1d1117b1ce033662e6bd4b90c48b6f28d7cd734e | |
| parent | 40f251bc6ddc3bf93dc788888baa047fa7994497 (diff) | |
Notes
| -rw-r--r-- | sys/conf/Makefile.pc98 | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/sys/conf/Makefile.pc98 b/sys/conf/Makefile.pc98 index 62798f423e73..b656e2c52535 100644 --- a/sys/conf/Makefile.pc98 +++ b/sys/conf/Makefile.pc98 @@ -105,6 +105,8 @@ SYSTEM_DEP+= $S/conf/ldscript.$M %CLEAN +.PHONY: all modules + all: ${KERNEL} .if !defined(DEBUG) @@ -121,6 +123,15 @@ ${FULLKERNEL}: ${SYSTEM_DEP} vers.o ${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 +.endif + .if !exists(.depend) ${SYSTEM_OBJS}: vnode_if.h ${BEFORE_DEPEND:M*.h} ${MFILES:T:S/.m$/.h/} .endif @@ -137,6 +148,9 @@ clean: vers.c vnode_if.c vnode_if.h \ ${MFILES:T:S/.m$/.c/} ${MFILES:T:S/.m$/.h/} \ ${CLEAN} +.if !defined(NO_MODULES) && exists(${.CURDIR}/../../modules) + cd ${.CURDIR}/../../modules && env MAKEOBJDIRPREFIX=${.CURDIR}/modules ${MAKE} clean +.endif #lint: /tmp param.c # @lint -hbxn -DGENERIC -Dvolatile= ${COPTS} \ @@ -187,9 +201,17 @@ depend: assym.s param.c vnode_if.h ${BEFORE_DEPEND} \ mkdep -a -f .newdep ${ASM_CFLAGS} ${SFILES} ${SYSTEM_SFILES} rm -f .depend mv -f .newdep .depend +.if !defined(NO_MODULES) && exists(${.CURDIR}/../../modules) + @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 && env MAKEOBJDIRPREFIX=${.CURDIR}/modules ${MAKE} cleandepend +.endif links: egrep '#if' ${CFILES} | sed -f $S/conf/defines | \ @@ -216,10 +238,16 @@ install install.debug: .endif 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 && 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 && env MAKEOBJDIRPREFIX=${.CURDIR}/modules ${MAKE} install +.endif config.o: ${NORMAL_C} |
