../machine => machine
[unix-history] / usr / src / sys / vax / conf / Makefile.vax
index 61e6ebb..9e055f6 100644 (file)
@@ -1,9 +1,9 @@
 #
 #
-# Copyright (c) 1980 Regents of the University of California.
+# Copyright (c) 1980, 1986 Regents of the University of California.
 # All rights reserved.  The Berkeley software License Agreement
 # specifies the terms and conditions for redistribution.
 #
 # All rights reserved.  The Berkeley software License Agreement
 # specifies the terms and conditions for redistribution.
 #
-#      @(#)Makefile.vax        6.19 (Berkeley) %G%
+#      @(#)Makefile.vax        7.10 (Berkeley) %G%
 #
 # Makefile for 4.3 BSD
 #
 #
 # Makefile for 4.3 BSD
 #
 # -DQUOTA      compile in file system quotas
 # -DUUDMA      compile in unibus tu58 pseudo-dma code
 #
 # -DQUOTA      compile in file system quotas
 # -DUUDMA      compile in unibus tu58 pseudo-dma code
 #
-C2=    /lib/c2
-LD=    /bin/ld
-INLINE=        ../vax/inline/inline
+C2=    /usr/libexec/c2
+LD=    /usr/pgrm/ld
+INLINECMD= ../vax/inline/inline
+INLINE=        ${INLINECMD} ${INLINEOPTS}
 TOUCH= touch -f -c
 
 INCLUDES= -I. -I../h
 TOUCH= touch -f -c
 
 INCLUDES= -I. -I../h
@@ -46,8 +47,8 @@ clean:
                errs linterrs makelinks
 
 lint: /tmp param.c
                errs linterrs makelinks
 
 lint: /tmp param.c
-       @lint -hbxn -DGENERIC ${COPTS} ${PARAM} ../vax/Locore.c \
-         ${CFILES} ../vax/swapgeneric.c ioconf.c param.c | \
+       @lint -hbxn -DGENERIC ${COPTS} ${PARAM} \
+         ../vax/Locore.c ${CFILES} ioconf.c param.c | \
            grep -v 'struct/union .* never defined' | \
            grep -v 'possible pointer alignment problem'
 
            grep -v 'struct/union .* never defined' | \
            grep -v 'possible pointer alignment problem'
 
@@ -61,8 +62,8 @@ lint: /tmp param.c
        cd ../vax/inline; make
 
 locore.o: assym.s ${AHEADS} ../vax/rpb.s ../vax/scb.s ubvec.s \
        cd ../vax/inline; make
 
 locore.o: assym.s ${AHEADS} ../vax/rpb.s ../vax/scb.s ubvec.s \
-    ../vax/locore.s ubglue.s ../vax/mtpr.h ../vax/trap.h ../machine/psl.h \
-    ../machine/pte.h ../vax/cpu.h mba.h
+    ../vax/locore.s ubglue.s ../vax/mtpr.h ../vax/trap.h machine/psl.h \
+    machine/pte.h ../vax/cpu.h mba.h
        cat assym.s ../vax/rpb.s ../vax/scb.s ubvec.s ../vax/locore.s \
            ubglue.s > locore.c
        cc -E -DLOCORE -I../vax ${COPTS} locore.c > locore.i
        cat assym.s ../vax/rpb.s ../vax/scb.s ubvec.s ../vax/locore.s \
            ubglue.s > locore.c
        cc -E -DLOCORE -I../vax ${COPTS} locore.c > locore.i
@@ -70,6 +71,9 @@ locore.o: assym.s ${AHEADS} ../vax/rpb.s ../vax/scb.s ubvec.s \
        @as -o locore.o ${AHEADS} locore.i
        @rm locore.i
 
        @as -o locore.o ${AHEADS} locore.i
        @rm locore.i
 
+emulate.o: ../vax/emulate.s
+       /lib/cpp -I. ${COPTS} ../vax/emulate.s | ${AS} -o emulate.o
+
 # the following is necessary because autoconf.o depends on #if GENERIC
 autoconf.o tu.o: Makefile
 
 # the following is necessary because autoconf.o depends on #if GENERIC
 autoconf.o tu.o: Makefile
 
@@ -79,35 +83,23 @@ clock.o machdep.o autoconf.o conf.o cons.o cpudata.o : Makefile
 crl.o flp.o mba.o uba.o vaxcpu.o : Makefile
 
 # depend on network configuration
 crl.o flp.o mba.o uba.o vaxcpu.o : Makefile
 
 # depend on network configuration
-af.o uipc_proto.o locore.o: Makefile
+af.o uipc_proto.o uipc_domain.o locore.o: Makefile
+
+# depends on kdb being configured
+trap.o:        Makefile
 
 # depend on maxusers
 assym.s: Makefile
 
 
 # depend on maxusers
 assym.s: Makefile
 
-assym.s: ../h/param.h ../machine/pte.h ../h/buf.h ../h/vmparam.h \
+assym.s: ../h/param.h machine/pte.h ../h/buf.h ../h/vmparam.h \
     ../h/vmmeter.h ../h/dir.h ../h/cmap.h ../h/map.h ../vaxuba/ubavar.h \
     ../vaxuba/ubareg.h ../h/proc.h ../h/msgbuf.h ../h/text.h ../h/user.h \
     ../h/vmmeter.h ../h/dir.h ../h/cmap.h ../h/map.h ../vaxuba/ubavar.h \
     ../vaxuba/ubareg.h ../h/proc.h ../h/msgbuf.h ../h/text.h ../h/user.h \
-    ../vax/rpb.h
+    ../vax/rpb.h machine/vmparam.h
        cc ${INCLUDES} ${IDENT} ${PARAM} ../vax/genassym.c
        ./a.out >assym.s; rm -f a.out
 
        cc ${INCLUDES} ${IDENT} ${PARAM} ../vax/genassym.c
        ./a.out >assym.s; rm -f a.out
 
-depend: 
-       -if [ ! -f assym.s ]; then touch assym.s; fi
-       ${CC} -M ${COPTS} ${CFILES} | \
-       sed -e ':loop' \
-           -e 's/\.\.\/[^ /]*\/\.\./../' \
-           -e 't loop' | \
-       awk ' { if ($$1 != prev) { print rec; rec = $$0; prev = $$1; } \
-               else { if (length(rec $$2) > 78) { print rec; rec = $$0; } \
-                      else rec = rec " " $$2 } } \
-             END { print rec } ' > makedep
-       echo '/^# DO NOT DELETE THIS LINE/+1,$$d' >eddep
-       echo '$$r makedep' >>eddep
-       echo 'w' >>eddep
-       cp Makefile Makefile.bak
-       ex - Makefile < eddep
-       rm eddep makedep
-
+depend:        assym.s
+       mkdep ${COPTS} ${CFILES}
 
 links:
        egrep '#if' ${CFILES} | sed -f ../conf/defines | \
 
 links:
        egrep '#if' ${CFILES} | sed -f ../conf/defines | \
@@ -120,7 +112,7 @@ links:
        sh makelinks && rm -f dontlink
 
 tags:
        sh makelinks && rm -f dontlink
 
 tags:
-       /usr/ucb/ctags ${CFILES}
+       @echo "see ../sys/Makefile for tags"
 
 print:
        @pr -f Makefile ../sys/TODO linterrs
 
 print:
        @pr -f Makefile ../sys/TODO linterrs
@@ -133,7 +125,7 @@ print:
        @cd ../vax/inline; make print
        @pr -f ${CFILES}
 
        @cd ../vax/inline; make print
        @pr -f ${CFILES}
 
-ioconf.o: ioconf.c ../h/param.h ../machine/pte.h ../h/buf.h ../h/map.h \
+ioconf.o: ioconf.c ../h/param.h machine/pte.h ../h/buf.h ../h/map.h \
     ../vaxmba/mbavar.h ../h/vm.h ../vaxuba/ubavar.h
        ${CC} -c -S ${COPTS} ioconf.c
        ${C2} ioconf.s | ../vax/inline/inline | ${AS} -o ioconf.o
     ../vaxmba/mbavar.h ../h/vm.h ../vaxuba/ubavar.h
        ${CC} -c -S ${COPTS} ioconf.c
        ${C2} ioconf.s | ../vax/inline/inline | ${AS} -o ioconf.o