Annotation of 41BSD/sys/stand/makefile, revision 1.1

1.1     ! root        1: #      makefile        4.1     11/9/80
        !             2: 
        !             3: DESTDIR=
        !             4: CFLAGS = -O -DSTANDALONE
        !             5: RELOC= 70000
        !             6: DRIVERS=hp.o ht.o mba.o up.o uba.o
        !             7: 
        !             8: all:   /usr/lib/libsa.a srt0.o boot cat ls icheck mkfs restor \
        !             9:        tpicheck tpmkfs tprestor sboot
        !            10: 
        !            11: /usr/lib/libsa.a:      sys.o conf.o hp.o ht.o mba.o up.o uba.o prf.o machdep.o 
        !            12:        ar crv ${DESTDIR}/usr/lib/libsa.a $?
        !            13:        ranlib ${DESTDIR}/usr/lib/libsa.a
        !            14: 
        !            15: ${DRIVERS}:
        !            16:        cc -c -S ${COPTS} $*.c
        !            17:        /lib/c2 -i $*.s $*.os
        !            18:        as -o $*.o $*.os
        !            19:        rm $*.s $*.os
        !            20: 
        !            21: boot:  boot.o relsrt0.o ${DESTDIR}/usr/lib/libsa.a
        !            22:        ld -N -T ${RELOC} relsrt0.o boot.o -lsa -lc
        !            23:        cp a.out b.out; strip b.out; dd if=b.out of=boot ibs=32 skip=1; rm b.out
        !            24: 
        !            25: sboot: boot.c relsrt0.o ${DESTDIR}/usr/lib/libsa.a
        !            26:        cp boot.c sboot.c
        !            27:        cc -c -O -DJUSTASK sboot.c
        !            28:        rm sboot.c
        !            29:        ld -N -T ${RELOC} relsrt0.o sboot.o -lsa -lc
        !            30:        cp a.out b.out; strip b.out; dd if=b.out of=sboot ibs=32 skip=1; rm b.out
        !            31: 
        !            32: cat:   cat.o srt0.o ${DESTDIR}/usr/lib/libsa.a
        !            33:        ld -N srt0.o cat.o -lsa -lc
        !            34:        cp a.out b.out; strip b.out; dd if=b.out of=cat ibs=32 skip=1; rm b.out
        !            35: 
        !            36: ls:    ls.o srt0.o ${DESTDIR}/usr/lib/libsa.a
        !            37:        ld -N srt0.o ls.o -lsa -lc
        !            38:        cp a.out b.out; strip b.out; dd if=b.out of=ls ibs=32 skip=1; rm b.out
        !            39: 
        !            40: mkfs.o:        /usr/src/cmd/mkfs.c
        !            41:        cc ${CFLAGS} -c /usr/src/cmd/mkfs.c
        !            42: 
        !            43: mkfs:  mkfs.o srt0.o ${DESTDIR}/usr/lib/libsa.a
        !            44:        ld -N srt0.o mkfs.o -lsa -lc
        !            45:        cp a.out b.out; strip b.out; dd if=b.out of=mkfs ibs=32 skip=1; rm b.out
        !            46: 
        !            47: restor.o: /usr/src/cmd/restor.c
        !            48:        cc ${CFLAGS} -c /usr/src/cmd/restor.c
        !            49: 
        !            50: restor:        restor.o srt0.o ${DESTDIR}/usr/lib/libsa.a
        !            51:        ld -N srt0.o restor.o -lsa -lc
        !            52:        cp a.out b.out; strip b.out; dd if=b.out of=restor ibs=32 skip=1; rm b.out
        !            53: 
        !            54: icheck.o: /usr/src/cmd/icheck.c
        !            55:        cc ${CFLAGS} -c /usr/src/cmd/icheck.c
        !            56: 
        !            57: icheck: icheck.o srt0.o ${DESTDIR}/usr/lib/libsa.a
        !            58:        ld -N srt0.o icheck.o -lsa -lc
        !            59:        cp a.out b.out; strip b.out; dd if=b.out of=icheck ibs=32 skip=1; rm b.out
        !            60: 
        !            61: tpmkfs:        mkfs.o tpsrt0.o ${DESTDIR}/usr/lib/libsa.a
        !            62:        ld -N tpsrt0.o mkfs.o -lsa -lc
        !            63:        cp a.out b.out; strip b.out; dd if=b.out of=tpmkfs ibs=32 skip=1; rm b.out
        !            64: 
        !            65: tprestor: restor.o tpsrt0.o ${DESTDIR}/usr/lib/libsa.a
        !            66:        ld -N tpsrt0.o restor.o -lsa -lc
        !            67:        cp a.out b.out; strip b.out; dd if=b.out of=tprestor ibs=32 skip=1; rm b.out
        !            68: 
        !            69: tpicheck: icheck.o tpsrt0.o ${DESTDIR}/usr/lib/libsa.a
        !            70:        ld -N tpsrt0.o icheck.o -lsa -lc
        !            71:        cp a.out b.out; strip b.out; dd if=b.out of=tpicheck ibs=32 skip=1; rm b.out
        !            72: 
        !            73: srt0.o: rel.m ../h/mtpr.m ../h/mba.m ../h/uba.m srt0.s
        !            74:        as -o srt0.o rel.m ../h/mtpr.m ../h/mba.m ../h/uba.m srt0.s
        !            75: 
        !            76: tpsrt0.o: rel.m ../h/mtpr.m ../h/mba.m ../h/uba.m tpsrt0.s
        !            77:        as -o tpsrt0.o rel.m ../h/mtpr.m ../h/mba.m ../h/uba.m tpsrt0.s
        !            78: 
        !            79: relsrt0.o: rel.m ../h/mtpr.m ../h/mba.m ../h/uba.m relsrt0.s
        !            80:        as -o relsrt0.o rel.m ../h/mtpr.m ../h/mba.m ../h/uba.m relsrt0.s
        !            81: 
        !            82: rpboot: rpboot.s
        !            83:        as rpboot.s
        !            84:        cp a.out b.out; strip b.out; dd if=b.out of=rpboot bs=32 skip=1; rm b.out
        !            85: print:
        !            86:        @pr makefile
        !            87:        @/usr/ucb/ls -l | pr
        !            88:        @pr *.h
        !            89:        @pr *.m *.s
        !            90:        @pr *.c
        !            91: 
        !            92: vgrindt:
        !            93:        @vgrind -t -n makefile;
        !            94:        @vgrind -t *.h;
        !            95:        @vgrind -t -n *.m *.s;
        !            96:        @vgrind -t *.c;
        !            97: 
        !            98: clean:
        !            99:        rm -f *.o *.exe
        !           100:        rm -f a.out b.out boot cat ls icheck mkfs restor rpboot \
        !           101:            tpicheck tpmkfs tprestor sboot
        !           102: 
        !           103: install:
        !           104:        cp tprestor ${DESTDIR}/sys/restor
        !           105:        cp tpicheck ${DESTDIR}/sys/icheck
        !           106:        cp tpmkfs ${DESTDIR}/sys/mkfs
        !           107:        cp sboot ${DESTDIR}/sys/boot
        !           108:        cp boot icheck mkfs restor cat ls ../floppy

unix.superglobalmegacorp.com

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