Annotation of researchv8dc/sys/boot/stand/makefile, revision 1.1

1.1     ! root        1: #      makefile        4.13    81/12/01
        !             2: #mt.c tm.c ts.c ut.c have been removed
        !             3: 
        !             4: DESTDIR=
        !             5: CFLAGS=        -O -DSTANDALONE ${COPTS} 
        !             6: COPTS= -DVAX780 -DVAX750 -DVAX7ZZ
        !             7: RELOC= 70000
        !             8: SRCS=  sys.c conf.c prf.c machdep.c \
        !             9:        autoconf.c hp.c ht.c mba.c rk.c up.c uba.c uda.c
        !            10: DRIVERS=autoconf.o hp.o ht.o mba.o rk.o up.o uba.o uda.o
        !            11: 
        !            12: ALL=   libsa.a srt0.o boot cat ls icheck mkfs restor \
        !            13:        tpicheck tpmkfs tprestor sboot
        !            14: 
        !            15: useful: boot
        !            16: install: boot
        !            17:        cp boot /
        !            18: 
        !            19: all: ${ALL}
        !            20: 
        !            21: libsa.a: sys.o conf.o ${DRIVERS} prf.o machdep.o
        !            22:        ar crv ${DESTDIR}libsa.a $?
        !            23:        ranlib ${DESTDIR}libsa.a
        !            24: 
        !            25: ${DRIVERS}:
        !            26:        cc -c -S ${COPTS} $*.c
        !            27:        /lib/c2 -i $*.s | as -o $*.o
        !            28:        rm $*.s
        !            29: 
        !            30: boot:  boot.o relsrt0.o ${DESTDIR}libsa.a
        !            31:        ld -N -T ${RELOC} relsrt0.o boot.o ${DESTDIR}libsa.a -lc
        !            32:        cp a.out b.out; strip b.out; dd if=b.out of=boot ibs=32 skip=1; rm b.out
        !            33: 
        !            34: sboot: boot.c relsrt0.o ${DESTDIR}libsa.a
        !            35:        cp boot.c sboot.c; chmod +w sboot.c
        !            36:        cc -c -O -DJUSTASK sboot.c
        !            37:        rm sboot.c
        !            38:        ld -N -T ${RELOC} relsrt0.o sboot.o ${DESTDIR}libsa.a -lc
        !            39:        cp a.out b.out; strip b.out; dd if=b.out of=sboot ibs=32 skip=1; rm b.out
        !            40: 
        !            41: cat:   cat.o srt0.o ${DESTDIR}libsa.a
        !            42:        ld -N srt0.o cat.o ${DESTDIR}libsa.a -lc
        !            43:        cp a.out b.out; strip b.out; dd if=b.out of=cat ibs=32 skip=1; rm b.out
        !            44: 
        !            45: try:   try.o srt0.o ${DESTDIR}libsa.a
        !            46:        ld -n srt0.o try.o ${DESTDIR}libsa.a -lc -o try
        !            47: 
        !            48: ls:    ls.o srt0.o ${DESTDIR}libsa.a
        !            49:        ld -N srt0.o ls.o ${DESTDIR}libsa.a -lc
        !            50:        cp a.out b.out; strip b.out; dd if=b.out of=ls ibs=32 skip=1; rm b.out
        !            51: 
        !            52: imptst: imptst.o srt0.o 
        !            53:        ld -N srt0.o imptst.o ${DESTDIR}libsa.a -lc
        !            54:        cp a.out b.out; strip b.out; dd if=b.out of=imptst ibs=32 skip=1; rm b.out
        !            55: 
        !            56: mkfs.o:        /usr/src/cmd/mkfs.c
        !            57:        cc ${CFLAGS} -c /usr/src/cmd/mkfs.c
        !            58: 
        !            59: mkfs:  mkfs.o srt0.o ${DESTDIR}libsa.a
        !            60:        ld -N srt0.o mkfs.o ${DESTDIR}libsa.a -lc
        !            61:        cp a.out b.out; strip b.out; dd if=b.out of=mkfs ibs=32 skip=1; rm b.out
        !            62: 
        !            63: restor.o: /usr/src/cmd/restor.c
        !            64:        cc ${CFLAGS} -c /usr/src/cmd/restor.c
        !            65: 
        !            66: restor:        restor.o srt0.o ${DESTDIR}libsa.a
        !            67:        ld -N srt0.o restor.o ${DESTDIR}libsa.a -lc
        !            68:        cp a.out b.out; strip b.out; dd if=b.out of=restor ibs=32 skip=1; rm b.out
        !            69: 
        !            70: icheck.o: /usr/src/cmd/icheck.c
        !            71:        cc ${CFLAGS} -c /usr/src/cmd/icheck.c
        !            72: 
        !            73: icheck: icheck.o srt0.o ${DESTDIR}libsa.a
        !            74:        ld -N srt0.o icheck.o ${DESTDIR}libsa.a -lc
        !            75:        cp a.out b.out; strip b.out; dd if=b.out of=icheck ibs=32 skip=1; rm b.out
        !            76: 
        !            77: tpmkfs:        mkfs.o tpsrt0.o ${DESTDIR}libsa.a
        !            78:        ld -N tpsrt0.o mkfs.o ${DESTDIR}libsa.a -lc
        !            79:        cp a.out b.out; strip b.out; dd if=b.out of=tpmkfs ibs=32 skip=1; rm b.out
        !            80: 
        !            81: tprestor: restor.o tpsrt0.o ${DESTDIR}libsa.a
        !            82:        ld -N tpsrt0.o restor.o ${DESTDIR}libsa.a -lc
        !            83:        cp a.out b.out; strip b.out; dd if=b.out of=tprestor ibs=32 skip=1; rm b.out
        !            84: 
        !            85: tpicheck: icheck.o tpsrt0.o ${DESTDIR}libsa.a
        !            86:        ld -N tpsrt0.o icheck.o ${DESTDIR}libsa.a -lc
        !            87:        cp a.out b.out; strip b.out; dd if=b.out of=tpicheck ibs=32 skip=1; rm b.out
        !            88: 
        !            89: srt0.o: srt0.c
        !            90:        cc -E -DRELOC=0x${RELOC} ${COPTS} srt0.c | as -o srt0.o
        !            91: 
        !            92: tpsrt0.o: srt0.c
        !            93:        cc -E -DRELOC=0x${RELOC} -DTP ${COPTS} srt0.c | as -o tpsrt0.o 
        !            94: 
        !            95: relsrt0.o: srt0.c
        !            96:        cc -E -DRELOC=0x${RELOC} -DREL ${COPTS} srt0.c | as -o relsrt0.o
        !            97: 
        !            98: print:
        !            99:        @pr -f makefile
        !           100:        @/usr/ucb/ls -l | pr -f
        !           101:        @pr -f *.h *.c
        !           102: 
        !           103: clean:
        !           104:        rm -f *.o *.exe *.i
        !           105:        rm -f a.out b.out boot cat ls icheck mkfs restor rpboot \
        !           106:            tpicheck tpmkfs tprestor sboot
        !           107: 
        !           108: lint:
        !           109:        lint ${COPTS} -hxbn boot.c ${SRCS} | \
        !           110:            grep -v 'possible pointer alignment' | \
        !           111:            grep -v 'struct/union .* never defined'
        !           112: 

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.