../machine => machine
[unix-history] / usr / src / sys / vax / conf / Makefile.vax
index 0d3cbbd..9e055f6 100644 (file)
@@ -1,15 +1,20 @@
-#      Makefile.vax    6.6     %G%
 #
 #
-# Makefile for 4.2 BSD
+# 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.
+#
+#      @(#)Makefile.vax        7.10 (Berkeley) %G%
+#
+# Makefile for 4.3 BSD
 #
 # This makefile is constructed from a machine description:
 #
 # This makefile is constructed from a machine description:
-#      config machine
+#      config machineid
 # Most changes should be made in the machine description
 #      /sys/conf/``machineid''
 # after which you should do
 #       config machineid
 # Generic makefile changes should be made in
 # Most changes should be made in the machine description
 #      /sys/conf/``machineid''
 # after which you should do
 #       config machineid
 # Generic makefile changes should be made in
-#      /sys/conf/makefile
+#      /sys/conf/Makefile.``machinetype''
 # after which config should be rerun for all machines.
 #
 # N.B.: NO DEPENDENCIES ON FOLLOWING FLAGS ARE VISIBLE TO MAKEFILE
 # after which config should be rerun for all machines.
 #
 # N.B.: NO DEPENDENCIES ON FOLLOWING FLAGS ARE VISIBLE TO MAKEFILE
 # -DTRACE      compile in kernel tracing hooks
 # -DQUOTA      compile in file system quotas
 # -DUUDMA      compile in unibus tu58 pseudo-dma code
 # -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
+C2=    /usr/libexec/c2
+LD=    /usr/pgrm/ld
+INLINECMD= ../vax/inline/inline
+INLINE=        ${INLINECMD} ${INLINEOPTS}
 TOUCH= touch -f -c
 
 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
@@ -39,9 +46,9 @@ clean:
        rm -f eddep *vmunix tags *.o locore.i [a-tv-z]*.s \
                errs linterrs makelinks
 
        rm -f eddep *vmunix tags *.o locore.i [a-tv-z]*.s \
                errs linterrs makelinks
 
-lint: /tmp
-       @lint -hbxn -I. -DGENERIC ${COPTS} ../vax/Locore.c \
-         ${CFILES} ../vax/swapgeneric.c ioconf.c | \
+lint: /tmp 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'
 
@@ -49,67 +56,50 @@ lint: /tmp
        grep -v '^#' ../vax/symbols.raw \
            | sed 's/^  //' | sort -u > ../vax/symbols.sort
 
        grep -v '^#' ../vax/symbols.raw \
            | sed 's/^  //' | sort -u > ../vax/symbols.sort
 
-../vax/asm: ../vax/asm.c
-       ${CC} -o ../vax/asm -O ../vax/asm.c
+../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 \
+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
+       cat assym.s ../vax/rpb.s ../vax/scb.s ubvec.s ../vax/locore.s \
            ubglue.s > locore.c
            ubglue.s > locore.c
-       cc -E -I. -DLOCORE ${COPTS} locore.c > locore.i
+       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
 
+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
 # the following is necessary because autoconf.o depends on #if GENERIC
-autoconf.o tu.o: makefile
+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
 # depend on network configuration
-af.o : makefile
+af.o uipc_proto.o uipc_domain.o locore.o: Makefile
+
+# depends on kdb being configured
+trap.o:        Makefile
+
 # depend on maxusers
 # depend on maxusers
-assym.s: makefile
+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
-       cc ${IDENT} ${PARAM} ../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/namei.h: ../h/uio.h
-       ${TOUCH} ../h/namei.h
-../h/user.h: ../vax/pcb.h ../h/dmap.h ../h/types.h ../h/namei.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 -e 's/:[^"]*"\([^"]*\)".*/: \1/' \
-           -e 's/\.c/.o/' \
-           -e 's,../[a-zA-Z]*/,,' | \
-       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
-       ed - makefile < eddep
-       rm eddep makedep
+    ../vax/rpb.h machine/vmparam.h
+       cc ${INCLUDES} ${IDENT} ${PARAM} ../vax/genassym.c
+       ./a.out >assym.s; rm -f a.out
 
 
+depend:        assym.s
+       mkdep ${COPTS} ${CFILES}
 
 links:
        egrep '#if' ${CFILES} | sed -f ../conf/defines | \
 
 links:
        egrep '#if' ${CFILES} | sed -f ../conf/defines | \
@@ -122,29 +112,31 @@ links:
        sh makelinks && rm -f dontlink
 
 tags:
        sh makelinks && rm -f dontlink
 
 tags:
-       /usr/ucb/ctags ${CFILES}
+       @echo "see ../sys/Makefile for tags"
 
 print:
 
 print:
-       @pr -f makefile ../sys/TODO linterrs
+       @pr -f Makefile ../sys/TODO linterrs
        @/usr/ucb/ctags -x ${CFILES} | pr -f -h XREF
        @(size vmunix *.o) | pr -f -h sizes
        @ls -ls | pr -f
        @cd ../h; ls -ls | pr -f ; pr -f *.m *.h
        @echo 'once upon a time ...'
        @/usr/ucb/ctags -x ${CFILES} | pr -f -h XREF
        @(size vmunix *.o) | pr -f -h sizes
        @ls -ls | pr -f
        @cd ../h; ls -ls | pr -f ; pr -f *.m *.h
        @echo 'once upon a time ...'
-       @cd ../vax; pr -f asm.c Locore.c scb.s locore.s
+       @cd ../vax; pr -f Locore.c scb.s locore.s
+       @cd ../vax/inline; make print
        @pr -f ${CFILES}
 
        @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
     ../vaxmba/mbavar.h ../h/vm.h ../vaxuba/ubavar.h
-       ${CC} -I. -c -S ${COPTS} ioconf.c
-       ${C2} ioconf.s | ../vax/asm | ${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
        rm -f ioconf.s
 
 param.c: ../conf/param.c
+       -rm -f param.c
        cp ../conf/param.c .
 
        cp ../conf/param.c .
 
-param.o: param.c makefile
-       ${CC} -I. -c ${CFLAGS} ${PARAM} param.c
+param.o: param.c Makefile
+       ${CC} -c ${CFLAGS} ${PARAM} param.c
 
 %RULES
 
 
 %RULES