generate dependencies for genassym/assym.s automatically
authorMike Karels <karels@ucbvax.Berkeley.EDU>
Thu, 7 Sep 1989 02:36:01 +0000 (18:36 -0800)
committerMike Karels <karels@ucbvax.Berkeley.EDU>
Thu, 7 Sep 1989 02:36:01 +0000 (18:36 -0800)
SCCS-vsn: sys/vax/conf/Makefile.vax 7.14
SCCS-vsn: sys/tahoe/conf/Makefile.tahoe 1.20

usr/src/sys/tahoe/conf/Makefile.tahoe
usr/src/sys/vax/conf/Makefile.vax

index e484ce2..253f416 100644 (file)
@@ -75,15 +75,15 @@ assym.s machdep.o: Makefile
 # depends on KDB (cons.o also depends on GENERIC)
 trap.o cons.o: Makefile
 
 # depends on KDB (cons.o also depends on GENERIC)
 trap.o cons.o: Makefile
 
-assym.s: ../sys/param.h ../tahoe/pte.h ../sys/buf.h ../sys/vmparam.h \
-    ../sys/vmmeter.h ../ufs/dir.h ../sys/cmap.h ../sys/map.h \
-    ../tahoevba/vbaparam.h ../sys/proc.h ../sys/msgbuf.h ../tahoe/scb.h \
-    machine/vmparam.h
-       ${CC} ${INCLUDES} -DKERNEL ${IDENT} ${PARAM} ../tahoe/genassym.c
-       ./a.out >assym.s; rm -f a.out
-
-depend:        assym.s
+assym.s: genassym
+       ./genassym >assym.s
+
+genassym:
+       cc ${INCLUDES} ${IDENT} ${PARAM} -o genassym ../tahoe/genassym.c
+
+depend: assym.s
        mkdep ${COPTS} ${CFILES} ioconf.c
        mkdep ${COPTS} ${CFILES} ioconf.c
+       mkdep -a -p ${INCLUDES} ${IDENT} ${PARAM} ../tahoe/genassym.c
 
 links:
        egrep '#if' ${CFILES} | sed -f ../conf/defines | \
 
 links:
        egrep '#if' ${CFILES} | sed -f ../conf/defines | \
index 555427c..b28df0d 100644 (file)
@@ -91,15 +91,15 @@ trap.o:     Makefile
 # depend on maxusers
 assym.s: Makefile
 
 # depend on maxusers
 assym.s: Makefile
 
-assym.s: ../sys/param.h machine/pte.h ../sys/buf.h ../sys/vmparam.h \
-    ../sys/vmmeter.h ../ufs/dir.h ../sys/cmap.h ../sys/map.h \
-    ../vaxuba/ubavar.h ../vaxuba/ubareg.h ../sys/proc.h ../sys/msgbuf.h \
-    ../sys/text.h ../sys/user.h ../vax/rpb.h machine/vmparam.h
-       cc ${INCLUDES} ${IDENT} ${PARAM} ../vax/genassym.c
-       ./a.out >assym.s; rm -f a.out
-
-depend:        assym.s
+assym.s: genassym
+       ./genassym >assym.s
+
+genassym:
+       cc ${INCLUDES} ${IDENT} ${PARAM} -o genassym ../vax/genassym.c
+
+depend: assym.s
        mkdep ${COPTS} ${CFILES} ioconf.c
        mkdep ${COPTS} ${CFILES} ioconf.c
+       mkdep -a -p ${INCLUDES} ${IDENT} ${PARAM} ../vax/genassym.c
 
 links:
        egrep '#if' ${CFILES} | sed -f ../conf/defines | \
 
 links:
        egrep '#if' ${CFILES} | sed -f ../conf/defines | \