need PARAM for locore.c when linting
[unix-history] / usr / src / sys / vax / conf / Makefile.vax
index b48f875..b2da082 100644 (file)
@@ -1,27 +1,36 @@
-#      Makefile.vax    4.5     %G%
 #
 #
-# Makefile for 4.1c bsd
+# Copyright (c) 1980 Regents of the University of California.
+# All rights reserved.  The Berkeley software License Agreement
+# specifies the terms and conditions for redistribution.
+#
+#      @(#)Makefile.vax        6.14 (Berkeley) %G%
+#
+# Makefile for 4.3 BSD
 #
 # This makefile is constructed from a machine description:
 #      config machine
 # Most changes should be made in the machine description
 #
 # This makefile is constructed from a machine description:
 #      config machine
 # Most changes should be made in the machine description
-#      /usr/sys/conf/``machineid''
+#      /sys/conf/``machineid''
 # after which you should do
 #       config machineid
 # Generic makefile changes should be made in
 # after which you should do
 #       config machineid
 # Generic makefile changes should be made in
-#      /usr/sys/conf/makefile
+#      /sys/conf/makefile
 # after which config should be rerun for all machines.
 #
 # N.B.: NO DEPENDENCIES ON FOLLOWING FLAGS ARE VISIBLE TO MAKEFILE
 #      IF YOU CHANGE THE DEFINITION OF ANY OF THESE RECOMPILE EVERYTHING
 #
 # -DTRACE      compile in kernel tracing hooks
 # after which config should be rerun for all machines.
 #
 # N.B.: NO DEPENDENCIES ON FOLLOWING FLAGS ARE VISIBLE TO MAKEFILE
 #      IF YOU CHANGE THE DEFINITION OF ANY OF THESE RECOMPILE EVERYTHING
 #
 # -DTRACE      compile in kernel tracing hooks
+# -DQUOTA      compile in file system quotas
+# -DUUDMA      compile in unibus tu58 pseudo-dma code
+# -DSWABIPS    compile in code to byte swap ip packets on 3Mb/s Ethernet
 #
 C2=    /lib/c2
 LD=    /bin/ld
 TOUCH= touch -f -c
 
 #
 C2=    /lib/c2
 LD=    /bin/ld
 TOUCH= touch -f -c
 
-COPTS= ${IDENT} -DKERNEL
+INCLUDES= -I. -I../h
+COPTS= ${INCLUDES} ${IDENT} -DKERNEL
 CFLAGS=        -O ${COPTS}
 
 AHEADS=        ../vax/pcb.m
 CFLAGS=        -O ${COPTS}
 
 AHEADS=        ../vax/pcb.m
@@ -33,24 +42,30 @@ AHEADS=     ../vax/pcb.m
 %LOAD
 
 clean:
 %LOAD
 
 clean:
-       rm -f eddep *vmunix* tags *.o locore.i [a-tv-z]*.s \
+       rm -f eddep *vmunix tags *.o locore.i [a-tv-z]*.s \
                errs linterrs makelinks
 
 lint: /tmp
                errs linterrs makelinks
 
 lint: /tmp
-       @lint -hbxn -I. -DGENERIC ${COPTS} ../vax/Locore.c \
+       @lint -hbxn -DGENERIC ${COPTS} ${PARAM} ../vax/Locore.c \
          ${CFILES} ../vax/swapgeneric.c ioconf.c | \
            grep -v 'struct/union .* never defined' | \
            grep -v 'possible pointer alignment problem'
 
          ${CFILES} ../vax/swapgeneric.c ioconf.c | \
            grep -v 'struct/union .* never defined' | \
            grep -v 'possible pointer alignment problem'
 
-../conf/symbols.sort: ../conf/symbols.raw
-       grep -v '^#' ../conf/symbols.raw \
-           | sed 's/^  //' | sort -u > ../conf/symbols.sort
-
-locore.o: assym.s ${AHEADS} ../vax/scb.s ../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/scb.s ../vax/locore.s ubglue.s > locore.c
-       cc -E -I. -DLOCORE ${COPTS} locore.c > locore.i
+../vax/symbols.sort: ../vax/symbols.raw
+       grep -v '^#' ../vax/symbols.raw \
+           | sed 's/^  //' | sort -u > ../vax/symbols.sort
+
+../vax/inline/inline: ../vax/inline/inline.h ../vax/inline/langpats.c
+../vax/inline/inline: ../vax/inline/libcpats.c ../vax/inline/machdep.c
+../vax/inline/inline: ../vax/inline/machpats.c ../vax/inline/main.c
+       cd ../vax/inline; make
+
+locore.o: assym.s ${AHEADS} ../vax/rpb.s ../vax/scb.s ../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 ../vax/locore.s \
+           ubglue.s > locore.c
+       cc -E -DLOCORE -I../vax ${COPTS} locore.c > locore.i
        @echo 'as -o locore.o $${AHEADS} locore.i'
        @as -o locore.o ${AHEADS} locore.i
        @rm locore.i
        @echo 'as -o locore.o $${AHEADS} locore.i'
        @as -o locore.o ${AHEADS} locore.i
        @rm locore.i
@@ -60,41 +75,35 @@ autoconf.o tu.o: makefile
 
 # the following are necessary because the files depend on the types of
 # vax cpu's included in the system configuration
 
 # the following are necessary because the files depend on the types of
 # vax cpu's included in the system configuration
-clock.o machdep.o autoconf.o conf.o cons.o flp.o mba.o uba.o vaxcpu.o : makefile
+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
 af.o : makefile
 # depend on network configuration
 af.o : makefile
+# depend on maxusers
+assym.s: makefile
 
 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 \
 
 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 \
-    ../h/proc.h ../h/msgbuf.h
-       cc ${IDENT} ../vax/genassym.c; ./a.out >assym.s; rm -f a.out
-
-../h/param.h: /usr/include/signal.h
-       ${TOUCH} ../h/param.h
-../h/tty.h:  ../h/ttychars.h ../h/ttydev.h
-       ${TOUCH} ../h/tty.h
-../h/ioctl.h: /usr/include/sgtty.h ../h/ttychars.h ../h/ttydev.h
-       ${TOUCH} ../h/ioctl.h
-../h/user.h: ../vax/pcb.h ../h/dmap.h ../h/types.h \
-    /usr/include/errno.h
-       ${TOUCH} ../h/user.h
-../h/vm.h: ../h/vmmac.h ../h/vmmeter.h ../h/vmparam.h ../h/vmsystm.h
-       ${TOUCH} ../h/vm.h
-
-depend:
-       grep '^#include' ${CFILES} | grep -v '<' | \
-             sed 's/:[^"]*"\([^"]*\)".*/: \1/' | \
-             sed 's/\.c/.o/' | sed 's,../[a-z]*/,,' | \
+    ../vaxuba/ubareg.h ../h/proc.h ../h/msgbuf.h ../h/text.h ../h/user.h \
+    ../vax/rpb.h
+       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
        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 '$$r makedep' >>eddep
        echo '/^# DO NOT DELETE THIS LINE/+1,$$d' >eddep
        echo '$$r makedep' >>eddep
        echo 'w' >>eddep
        cp makefile makefile.bak
        echo '/^# DO NOT DELETE THIS LINE/+1,$$d' >eddep
        echo '$$r makedep' >>eddep
        echo 'w' >>eddep
        cp makefile makefile.bak
-       ed - makefile < eddep
+       ex - makefile < eddep
        rm eddep makedep
 
 
        rm eddep makedep
 
 
@@ -118,20 +127,21 @@ print:
        @ls -ls | pr -f
        @cd ../h; ls -ls | pr -f ; pr -f *.m *.h
        @echo 'once upon a time ...'
        @ls -ls | pr -f
        @cd ../h; ls -ls | pr -f ; pr -f *.m *.h
        @echo 'once upon a time ...'
-       @cd ../sys; pr -f asm.sed Locore.c scb.s locore.s
+       @cd ../vax; pr -f Locore.c scb.s locore.s
+       @cd ../vax/inline; make print
        @pr -f ${CFILES}
 
 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
        @pr -f ${CFILES}
 
 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} -I. -c -S ${COPTS} ioconf.c
-       ${C2} ioconf.s | sed -f ../vax/asm.sed | ${AS} -o ioconf.o
+       ${CC} -c -S ${COPTS} ioconf.c
+       ${C2} ioconf.s | ../vax/inline/inline | ${AS} -o ioconf.o
        rm -f ioconf.s
 
 param.c: ../conf/param.c
        cp ../conf/param.c .
 
 param.o: param.c makefile
        rm -f ioconf.s
 
 param.c: ../conf/param.c
        cp ../conf/param.c .
 
 param.o: param.c makefile
-       ${CC} -I. -c ${CFLAGS} ${PARAM} param.c
+       ${CC} -c ${CFLAGS} ${PARAM} param.c
 
 %RULES
 
 
 %RULES