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