From 6f77b2defce99e1a9092ae01da2af17c61f0e0f2 Mon Sep 17 00:00:00 2001 From: Peter Wemm Date: Sun, 12 Dec 1999 16:43:05 +0000 Subject: Use a seperate -c and -h mode. The vnode_if.c file is compiled only into the kernel while the vnode_if.h header is a bunch of inlines to call the code that is in the kernel. Generating the .h file on the fly is kinda bogus because it has to match the one compiled into the kernel. IMHO we should have kern/vnode_if.c and sys/vnode_if.h committed in the tree but that's another battle. --- sys/alpha/conf/Makefile.alpha | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'sys/alpha/conf') diff --git a/sys/alpha/conf/Makefile.alpha b/sys/alpha/conf/Makefile.alpha index a0193bc458b2..06657d4bc6ee 100644 --- a/sys/alpha/conf/Makefile.alpha +++ b/sys/alpha/conf/Makefile.alpha @@ -218,7 +218,8 @@ __reml.S: ${S}/alpha/alpha/divrem.m4 ${SYSTEM_OBJS} genassym.o vers.o: opt_global.h -depend: assym.s param.c vnode_if.h ${BEFORE_DEPEND} +depend: assym.s param.c vnode_if.h ${BEFORE_DEPEND} \ + ${CFILES} ${SYSTEM_CFILES} ${GEN_CFILES} ${SFILES} ${SYSTEM_SFILES} rm -f .newdep mkdep -a -f .newdep ${CFLAGS} ${CFILES} ${SYSTEM_CFILES} mkdep -a -f .newdep ${GEN_CFLAGS} ${GEN_CFILES} @@ -288,9 +289,11 @@ vers.c: $S/conf/newvers.sh $S/sys/param.h ${SYSTEM_DEP} vers.o: ${NORMAL_C} -.ORDER: vnode_if.c vnode_if.h -vnode_if.c vnode_if.h: $S/kern/vnode_if.sh $S/kern/vnode_if.src - sh $S/kern/vnode_if.sh $S/kern/vnode_if.src +vnode_if.c: $S/kern/vnode_if.sh $S/kern/vnode_if.src + perl $S/kern/vnode_if.sh -h $S/kern/vnode_if.src + +vnode_if.h: $S/kern/vnode_if.sh $S/kern/vnode_if.src + perl $S/kern/vnode_if.sh -h $S/kern/vnode_if.src vnode_if.o: ${NORMAL_C} -- cgit v1.3