X-Git-Url: https://git.subgeniuskitty.com/unix-history/.git/blobdiff_plain/d737d5e591f2b82c2e945209c735eb0897a84927..8ac5ef83d560cd75345101acaafdeab2c3f55e54:/usr/src/sys/vax/stand/Makefile diff --git a/usr/src/sys/vax/stand/Makefile b/usr/src/sys/vax/stand/Makefile index d236fc2bf6..ec789ae8da 100644 --- a/usr/src/sys/vax/stand/Makefile +++ b/usr/src/sys/vax/stand/Makefile @@ -1,4 +1,4 @@ -# Makefile 4.17 82/12/19 +# Makefile 4.22 83/01/23 DESTDIR=/ CFLAGS= -O -DSTANDALONE ${COPTS} @@ -6,11 +6,15 @@ COPTS= -DVAX780 -DVAX750 -DVAX730 RELOC= 70000 SRCS= sys.c conf.c prf.c machdep.c \ autoconf.c hp.c ht.c idc.c mba.c mt.c rk.c tm.c ts.c \ - up.c uba.c uda.c ut.c + up.c uba.c uda.c ut.c \ + drtest.c upchk.c up.new.c DRIVERS=autoconf.o hp.o ht.o idc.o mba.o mt.o rk.o tm.o ts.o \ up.o uba.o uda.o ut.o +NEWDRIVERS=hp.new.o up.new.o -ALL= /usr/lib/libsa.a srt0.o boot tpboot copy tpcopy boothp boothk bootup +ALL= /usr/lib/libsa.a srt0.o boot tpboot copy tpcopy \ + boothp boothk bootup \ + updrtest hpdrtest upchk hpchk all: ${ALL} @@ -18,7 +22,7 @@ all: ${ALL} ar crv /usr/lib/libsa.a $? ranlib /usr/lib/libsa.a -${DRIVERS}: savax.h +${NEWDRIVERS} ${DRIVERS}: savax.h cc -c -S ${COPTS} $*.c /lib/c2 -i $*.s | as -o $*.o rm $*.s @@ -67,6 +71,29 @@ bootconf.o: ../h/fs.h saio.h ../vaxmba/mbareg.h copy: copy.o srt0.o conf.o /usr/lib/libsa.a ld -N -o copy srt0.o copy.o conf.o -lsa -lc +# eventually we'll merge hpchk and upchk into one program +#chk: chk.o srt0.o conf.o hp.new.o up.new.o /usr/lib/libsa.a +# ld -N -o chk srt0.o chk.o conf.o hp.new.o up.new.o -lsa -lc +# +hpchk: chk.o srt0.o confhp.o hp.new.o dkbad.o /usr/lib/libsa.a + ld -N -o hpchk srt0.o chk.o confhp.o hp.new.o dkbad.o -lsa -lc + +upchk: chk.o srt0.o confup.o up.new.o dkbad.o /usr/lib/libsa.a + ld -N -o upchk srt0.o chk.o confup.o up.new.o dkbad.o -lsa -lc + +# eventually we'll merge hpdrtest and updrtest into one program +#drtest:drtest.o srt0.o conf.o hp.new.o up.new.o /usr/lib/libsa.a +# ld -N -o drtest srt0.o drtest.o conf.o hp.new.o up.new.o -lsa -lc +# +updrtest: drtest.o srt0.o confup.o up.new.o dkbad.o /usr/lib/libsa.a + ld -N -o updrtest srt0.o drtest.o confup.o up.new.o dkbad.o -lsa -lc + +hpdrtest: drtest.o srt0.o confhp.o hp.new.o dkbad.o /usr/lib/libsa.a + ld -N -o hpdrtest srt0.o drtest.o confhp.o hp.new.o dkbad.o -lsa -lc + +dkbad.o: ../vax/dkbad.c + ${CC} -c ${CFLAGS} ../vax/dkbad.c + # bootstrap from ether ### not yet, rosin, not yet ### @@ -129,8 +156,9 @@ print: clean: rm -f *.o *.exe *.i errs - rm -f a.out b.out boot cat tpboot tpcopy + rm -f a.out b.out boot cat tpboot tpcopy copy rm -f boot[a-z]? conf[a-wyz][a-z].c + rm -f *chk *drtest core sboot bootconf.c lint: lint ${COPTS} -hxbn boot.c ${SRCS} | \ @@ -142,6 +170,12 @@ install: ${ALL} cp tpboot ${DESTDIR}/tp/boot cp copy a.out; strip a.out; dd if=a.out of=../floppy/copy bs=32 skip=1 cp boot a.out; strip a.out; dd if=a.out of=../floppy/boot bs=32 skip=1 + cp upchk a.out; strip a.out; dd if=a.out of=../floppy/upchk bs=32 skip=1 + cp hpchk a.out; strip a.out; dd if=a.out of=../floppy/hpchk bs=32 skip=1 + cp hpdrtest a.out; strip a.out; \ + dd if=a.out of=../floppy/hpdrtest bs=32 skip=1 + cp updrtest a.out; strip a.out; \ + dd if=a.out of=../floppy/updrtest bs=32 skip=1 cp bootup boothk boothp ${DESTDIR}/usr/mdec # beware...