|
|
1.1 ! root 1: ! 2: DESTDIR=/DIST.1.2 ! 3: AS=/bin/as ! 4: CC=/bin/cc ! 5: LD=/bin/ld ! 6: INCLDIR=${DESTDIR}/usr/include ! 7: LIBDIR=${DESTDIR}/lib ! 8: ULIBDIR=${DESTDIR}/usr/lib ! 9: MAKEPARAM = AS=${AS} CC=${CC} LD=${LD} INCLDIR=${INCLDIR} LIBDIR=${LIBDIR} ULIBDIR=${ULIBDIR} DESTDIR=${DESTDIR} ! 10: LIBSDIR= ${DESTDIR}/usr/lib ! 11: LIBCDIR= ${DESTDIR}/lib ! 12: CFLAGS= -DSTANDALONE -DTAHOE ${COPTS} ! 13: COPTS= -O ! 14: RELOC= 70000 ! 15: MTARELOC= 98000 ! 16: BOOTRELOC= 100000 ! 17: SRCS= sys.c conf.c prf.c machdep.s ! 18: DRIVERS= udc.o cy.o vddc.o ! 19: LDT1MBSYSOPT= -T ${MTARELOC} -x ! 20: LDTSYSOPT= -T ${BOOTRELOC} -x ! 21: LDTOPT= -T ${RELOC} -e _entry -x ! 22: LDTSF= -N -x ! 23: ! 24: CFILES= boot.c cat.c conf.c ls.c prf.c \ ! 25: srt0.c sys.c vdformat.c ls.c \ ! 26: fastcopy.c devcopy.c cat.c \ ! 27: vddc.c cy.c ! 28: ! 29: ALL= boot.fsd boot.smd boot.xfd boot.xsd \ ! 30: boot1mb.fsd boot1mb.smd boot1mb.xfd boot1mb.xsd \ ! 31: cat ls devcopy fastcopy vdformat ! 32: ! 33: all: srt0.o ${LIBCDIR}/libc.a ${LIBSDIR}/libsa.a ${ALL} ! 34: ! 35: install: all ! 36: for i in ${ALL}; do install -m 644 $$i ${DESTDIR}/stand; done ! 37: rm -f ${DESTDIR}/boot; cp ${DESTDIR}/stand/boot.fsd ${DESTDIR}/boot ! 38: ! 39: clean: ! 40: rm -f *.o *.map *.bak a.out ! 41: cleansrc: ! 42: ! 43: rm -rf *.[csh] Makefile ! 44: ! 45: machdep.o: machdep.s ../machine/mtpr.h ../h/param.h ../machine/mem.h ! 46: /lib/cpp machdep.s | ${AS} -o machdep.o ! 47: ! 48: ${LIBSDIR}/libsa.a: sys.o conf.o ${DRIVERS} prf.o machdep.o ! 49: ar crv $@ $? ! 50: ranlib $@ ! 51: ! 52: ${LIBSDIR}/libsa.a: libsa.a ! 53: libsa.a: sys.o conf.o ${DRIVERS} prf.o machdep.o ! 54: ar crv $@ $? ! 55: ! 56: boot.fsd: boot.fsd.o bootsrt0.o ${LIBSDIR}/libsa.a ${LIBCDIR}/libc.a ! 57: ${LD} ${LDTSYSOPT} bootsrt0.o boot.fsd.o ${LIBSDIR}/libsa.a \ ! 58: ${LIBCDIR}/libc.a ! 59: dd if=a.out of=boot.fsd ibs=1024 skip=1 ! 60: ! 61: boot.smd: boot.smd.o bootsrt0.o ${LIBSDIR}/libsa.a ${LIBCDIR}/libc.a ! 62: ${LD} ${LDTSYSOPT} bootsrt0.o boot.smd.o ${LIBSDIR}/libsa.a \ ! 63: ${LIBCDIR}/libc.a ! 64: dd if=a.out of=boot.smd ibs=1024 skip=1 ! 65: ! 66: boot.xfd: boot.xfd.o bootsrt0.o ${LIBSDIR}/libsa.a ${LIBCDIR}/libc.a ! 67: ${LD} ${LDTSYSOPT} bootsrt0.o boot.xfd.o ${LIBSDIR}/libsa.a \ ! 68: ${LIBCDIR}/libc.a ! 69: dd if=a.out of=boot.xfd ibs=1024 skip=1 ! 70: ! 71: boot.xsd: boot.xsd.o bootsrt0.o ${LIBSDIR}/libsa.a ${LIBCDIR}/libc.a ! 72: ${LD} ${LDTSYSOPT} bootsrt0.o boot.xsd.o ${LIBSDIR}/libsa.a \ ! 73: ${LIBCDIR}/libc.a ! 74: dd if=a.out of=boot.xsd ibs=1024 skip=1 ! 75: ! 76: boot1mb.fsd: boot.fsd.o boot1mbsrt0.o ${LIBSDIR}/libsa.a ${LIBCDIR}/libc.a ! 77: ${LD} ${LDT1MBSYSOPT} boot1mbsrt0.o boot.fsd.o ${LIBSDIR}/libsa.a \ ! 78: ${LIBCDIR}/libc.a ! 79: dd if=a.out of=boot1mb.fsd ibs=1024 skip=1 ! 80: ! 81: boot1mb.smd: boot.smd.o boot1mbsrt0.o ${LIBSDIR}/libsa.a ${LIBCDIR}/libc.a ! 82: ${LD} ${LDT1MBSYSOPT} boot1mbsrt0.o boot.smd.o ${LIBSDIR}/libsa.a \ ! 83: ${LIBCDIR}/libc.a ! 84: dd if=a.out of=boot1mb.smd ibs=1024 skip=1 ! 85: ! 86: boot1mb.xfd: boot.xfd.o boot1mbsrt0.o ${LIBSDIR}/libsa.a ${LIBCDIR}/libc.a ! 87: ${LD} ${LDT1MBSYSOPT} boot1mbsrt0.o boot.xfd.o ${LIBSDIR}/libsa.a \ ! 88: ${LIBCDIR}/libc.a ! 89: dd if=a.out of=boot1mb.xfd ibs=1024 skip=1 ! 90: ! 91: boot1mb.xsd: boot.xsd.o boot1mbsrt0.o ${LIBSDIR}/libsa.a ${LIBCDIR}/libc.a ! 92: ${LD} ${LDT1MBSYSOPT} boot1mbsrt0.o boot.xsd.o ${LIBSDIR}/libsa.a \ ! 93: ${LIBCDIR}/libc.a ! 94: dd if=a.out of=boot1mb.xsd ibs=1024 skip=1 ! 95: ! 96: cat: cat.o srt0.o ${LIBSDIR}/libsa.a ${LIBCDIR}/libc.a ! 97: ${LD} ${LDTOPT} srt0.o cat.o ${LIBSDIR}/libsa.a ${LIBCDIR}/libc.a ! 98: cp a.out cat ! 99: strip cat ! 100: ! 101: ! 102: devcopy: devcopy.o srt0.o ${LIBSDIR}/libsa.a ${LIBCDIR}/libc.a ! 103: ${LD} ${LDTOPT} srt0.o devcopy.o ${LIBSDIR}/libsa.a ${LIBCDIR}/libc.a ! 104: cp a.out devcopy ! 105: strip devcopy ! 106: ! 107: fastcopy: fastcopy.o srt0.o ncy.o ${LIBSDIR}/libsa.a ${LIBCDIR}/libc.a ! 108: ${LD} ${LDTOPT} srt0.o fastcopy.o ncy.o ${LIBSDIR}/libsa.a ${LIBCDIR}/libc.a ! 109: mv a.out fastcopy ! 110: strip fastcopy ! 111: ! 112: xpformat: ../h/xpreg.h xpformat.o srt0.o ${LIBSDIR}/libsa.a ${LIBCDIR}/libc.a ! 113: ${LD} ${LDTOPT} srt0.o xpformat.o ${LIBSDIR}/libsa.a ${LIBCDIR}/libc.a ! 114: mv a.out xpformat ! 115: ! 116: vdformat: vdformat.o srt0.o ${LIBSDIR}/libsa.a ${LIBCDIR}/libc.a ! 117: ${LD} ${LDTOPT} srt0.o vdformat.o ${LIBSDIR}/libsa.a ${LIBCDIR}/libc.a ! 118: cp a.out vdformat ! 119: strip vdformat ! 120: ! 121: ls: ls.o srt0.o ${LIBSDIR}/libsa.a ${LIBCDIR}/libc.a ! 122: ${LD} ${LDTOPT} srt0.o ls.o ${LIBSDIR}/libsa.a ${LIBCDIR}/libc.a ! 123: mv a.out ls ! 124: strip ls ! 125: ! 126: boot.fsd.o: boot.c ! 127: ${CC} -c $(COPTS) -DFSD boot.c ! 128: mv boot.o $@ ! 129: ! 130: boot.smd.o: boot.c ! 131: ${CC} -c $(COPTS) -DSMD boot.c ! 132: mv boot.o $@ ! 133: ! 134: boot.xfd.o: boot.c ! 135: ${CC} -c $(COPTS) -DXFD boot.c ! 136: mv boot.o $@ ! 137: ! 138: boot.xsd.o: boot.c ! 139: ${CC} -c $(COPTS) -DXFD boot.c ! 140: mv boot.o $@ ! 141: ! 142: srt0.o: srt0.c ! 143: ${CC} -E -DRELOC=0x${RELOC} ${CFLAGS} srt0.c | ${AS} -o srt0.o ! 144: ! 145: bootsrt0.o: srt0.c ! 146: ${CC} -E -DRELOC=0x${BOOTRELOC} -DREL ${CFLAGS} srt0.c | ${AS} -o bootsrt0.o ! 147: ! 148: boot1mbsrt0.o: srt0.c ! 149: ${CC} -E -DRELOC=0x${MTARELOC} -DREL ${CFLAGS} srt0.c | ${AS} -o boot1mbsrt0.o ! 150: ! 151: sfrt0.o: sfrt0.c ! 152: ${CC} -E -DRELOC=0x${RELOC} -DREL ${CFLAGS} sfrt0.c | ${AS} -o sfrt0.o ! 153: ! 154: ncy.c: cy.c ! 155: ln cy.c ncy.c ! 156: ! 157: ncy.o: ncy.c ! 158: ${CC} -DNOBLOCK ${CFLAGS} -c ncy.c ! 159: ! 160: print: ! 161: @pr -f makefile ! 162: @/usr/ucb/ls -l | pr -f ! 163: @pr -f *.h *.c *.lst ! 164: ! 165: ! 166: depend: ! 167: grep '^#include' ${CFILES} | grep -v '<' | \ ! 168: sed 's/:[^"]*"\([^"]*\)".*/: \1/' | \ ! 169: sed 's/\.c/.o/' | \ ! 170: awk ' { if ($$1 != prev) { print rec; rec = $$0; prev = $$1; } \ ! 171: else { if (length(rec $$2) > 78) { print rec; rec = $$0; } \ ! 172: else rec = rec " " $$2 } } \ ! 173: END { print rec } ' > makedep ! 174: echo '/^# DO NOT DELETE THIS LINE/+1,$$d' >eddep ! 175: echo '$$r makedep' >>eddep ! 176: echo 'w' >>eddep ! 177: cp makefile makefile.bak ! 178: ed - makefile < eddep ! 179: rm -f eddep makedep ! 180: ! 181: # DO NOT DELETE THIS LINE -- make depend uses it ! 182: ! 183: boot.o: ../h/param.h ../h/inode.h ../h/fs.h ../h/vm.h ../machine/mtpr.h saio.h ! 184: boot.o: ../h/reboot.h ! 185: conf.o: ../machine/pte.h ../h/param.h ../h/inode.h ../h/fs.h saio.h ! 186: ls.o: ../h/param.h ../h/inode.h ../h/dir.h ../h/fs.h saio.h ! 187: prf.o: ../h/param.h ../machine/mtpr.h ../h/cp.h ! 188: srt0.o: ../machine/mtpr.h ! 189: sys.o: ../h/param.h ../h/inode.h ../h/fs.h ../h/dir.h ../machine/mtpr.h saio.h ! 190: vdformat.o: ../machine/mtpr.h ../h/param.h ../h/inode.h ../h/fs.h ../vba/vddc.h ! 191: vdformat.o: ../stand/saio.h ! 192: ls.o: ../h/param.h ../h/inode.h ../h/dir.h ../h/fs.h saio.h ! 193: vddc.o: ../machine/mtpr.h ../h/param.h ../h/inode.h ../h/fs.h ../vba/vddc.h ! 194: vddc.o: ../stand/saio.h ! 195: cy.o: ../h/param.h ../h/inode.h ../h/fs.h ../machine/pte.h ../machine/mtpr.h ! 196: cy.o: ../stand/saio.h ../stand/cyvar.h
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.