Annotation of researchv10no/cmd/PDP11/Makefile, revision 1.1

1.1     ! root        1: BINDIR = /usr/bin
        !             2: LIBDIR = /usr/lib
        !             3: 
        !             4: AR = ar
        !             5: A_DOT_OUT = 11a.out
        !             6: 
        !             7: CC = cc
        !             8: CFLAGS = -O -DA_DOT_OUT=\"${A_DOT_OUT}\"
        !             9: 
        !            10: PATHFLAGS = BINDIR=${BINDIR} LIBDIR=${LIBDIR} \
        !            11:                AR=${AR} A_DOT_OUT=${A_DOT_OUT}
        !            12: C11FLAGS  = C0=11c0 C1=11c1 C2=11c2
        !            13: AS11FLAGS = AS1=11as AS2=11as2
        !            14: 
        !            15: all: 11as 11c \
        !            16:       11crt0.o 11cc 11ld 11nm 11ranlib \
        !            17:       11reloc 11size 11strip
        !            18:        @echo \`all\' is up to date: $?
        !            19: 
        !            20: init:          # Assumes that c compiler tape already installed
        !            21:        mv c 11c
        !            22:        mv as 11as
        !            23:        mv ld.c 11ld.c
        !            24:        mv ranlib.c 11ranlib.c
        !            25:        mv nm.c 11nm.c
        !            26: 
        !            27: 
        !            28: rmfpp:
        !            29:        grep -v fpp Makefile > nMakefile
        !            30:        rm -r fpp; mv nMakefile Makefile
        !            31: 
        !            32: .force1:
        !            33:        @touch .force1
        !            34: 
        !            35: 11as:  .force1
        !            36:        cd 11as; make all ${PATHFLAGS} ${AS11FLAGS}
        !            37:        @touch .force1
        !            38: 
        !            39: 11c:   .force1
        !            40:        cd 11c; make all ${PATHFLAGS} ${C11FLAGS}
        !            41:        @touch .force1
        !            42: 
        !            43: fpp:   inst11as inst11c inst11cc               # must be there before fpp
        !            44: fpp:   .force1
        !            45:        cd fpp; make all ${PATHFLAGS}
        !            46:        @touch .force1  ; echo weird way to tag fpp > /dev/null
        !            47: 
        !            48: 11crt0.o: 11crt0.s
        !            49:        11as -o 11crt0.o 11crt0.s
        !            50: 
        !            51: 11cc.c:        11cc.h
        !            52: 
        !            53: 11cc.h: 11cc.h.skel
        !            54:        sed -e '/BINPATH/s;~;${BINDIR};' \
        !            55:            -e '/LIBPATH/s;~;${LIBDIR};'  < 11cc.h.skel > 11cc.h
        !            56: 
        !            57: 11nm.c 11ranlib.c 11size.c 11strip.c: a.out.h  # 11ld and 11reloc should, too
        !            58: 
        !            59: 11cc:    11cc.c
        !            60: 11ld:    11ld.c
        !            61:        ${CC} -o 11ld ${CFLAGS} -DLIBPATH=\"${LIBDIR}\" \
        !            62:                                -DLIBPREFIX=\"/11lib\" 11ld.c
        !            63: 11nm:    11nm.c
        !            64: 11ranlib: 11ranlib.c
        !            65: 11reloc:  11reloc.c
        !            66: 11size:   11size.c
        !            67: 11strip:  11strip.c
        !            68: 
        !            69: 
        !            70: 11ranlib: 
        !            71:        ${CC} -o $@ ${CFLAGS} -DAR=\"${AR}\" [email protected]
        !            72: 
        !            73: 11cc 11nm 11reloc 11size 11strip:
        !            74:        ${CC} ${CFLAGS} -o $@ [email protected]
        !            75: 
        !            76: ${LIBDIR}/11crt0.o:    11crt0.o
        !            77:        cp 11crt0.o ${LIBDIR}
        !            78: 
        !            79: .force2:
        !            80:        @touch .force2
        !            81: 
        !            82: inst11as: .force2
        !            83:        cd 11as; make install ${PATHFLAGS} ${AS11FLAGS}
        !            84:        @touch .force2
        !            85: 
        !            86: inst11c: .force2
        !            87:        cd 11c; make install ${PATHFLAGS} ${C11FLAGS}
        !            88:        @touch .force2
        !            89: 
        !            90: instfpp: inst11as inst11c inst11cc inst11ranlib        # must be there before fpp
        !            91: instfpp: .force2
        !            92:        cd fpp; make install ${PATHFLAGS}
        !            93:        @touch .force2  ;  echo weird way to tag fpp > /dev/null
        !            94: 
        !            95: inst11crt0.o:  11crt0.o
        !            96:        cp 11crt0.o ${LIBDIR}
        !            97: inst11cc:      11cc
        !            98:        strip 11cc
        !            99:        cp 11cc ${BINDIR}
        !           100: inst11size:    11size
        !           101:        strip 11size
        !           102:        cp 11size ${BINDIR}
        !           103: inst11ld:      11ld
        !           104:        strip 11ld
        !           105:        cp 11ld ${BINDIR}
        !           106: inst11strip:   11strip
        !           107:        strip 11strip
        !           108:        cp 11strip ${BINDIR}
        !           109: inst11nm:      11nm
        !           110:        strip 11nm
        !           111:        cp 11nm ${BINDIR}
        !           112: inst11ranlib:  11ranlib
        !           113:        strip 11ranlib
        !           114:        cp 11ranlib ${BINDIR}
        !           115: inst11reloc:   11reloc
        !           116:        strip 11reloc
        !           117:        cp 11reloc ${BINDIR}
        !           118: 
        !           119: install: inst11as inst11c \
        !           120:         inst11crt0.o inst11cc inst11size inst11ld \
        !           121:         inst11strip inst11ranlib inst11reloc \
        !           122:         inst11nm
        !           123:         @echo The PDP11 package is installed
        !           124: 
        !           125: clean:
        !           126:        cd 11as; make clean ${AS11FLAGS}
        !           127:        cd 11c; make clean ${C11FLAGS}
        !           128:        cd fpp; make clean
        !           129:        -rm -f 11cc.h *.o make.out 11cc 11size 11ld 11strip 11nm 11ranlib \
        !           130:                11reloc .force1 .force2
        !           131: 
        !           132: print:
        !           133:        @cd 11as; make print
        !           134:        @cd 11c; make print
        !           135:        @cd fpp; make print
        !           136:        @pr Makefile *.h *.s *.c *.sh

unix.superglobalmegacorp.com

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