|
|
1.1 ! root 1: # ! 2: # Skeleton for version 7 ! 3: # ! 4: CFLAGS= -O -Ddebug -DTELL -DVFORK ! 5: XSTR= /usr/ucb/xstr ! 6: ED= -ed ! 7: AS= -as ! 8: RM= -rm ! 9: CXREF= /usr/ucb/cxref ! 10: ! 11: # ! 12: # strings.o must be last in OBJS since it can change when previous files compile ! 13: # ! 14: OBJS=sh.o sh.dol.o sh.err.o sh.exec.o sh.exp.o sh.func.o sh.glob.o sh.hist.o \ ! 15: sh.lex.o sh.misc.o sh.parse.o sh.print.o sh.sem.o sh.set.o \ ! 16: sh.wait.o alloc.o sh.init.o printf.o getpwent.o getpwnam.o \ ! 17: strings.o ! 18: ! 19: # ! 20: # Special massaging of C files for sharing of strings ! 21: # ! 22: .c.o: ! 23: ${CC} -E ${CFLAGS} $*.c | ${XSTR} -c - ! 24: ${CC} -c ${CFLAGS} x.c ! 25: mv x.o $*.o ! 26: ! 27: csh: ${OBJS} sh.local.h ! 28: ${CC} -n ${OBJS} -o csh ! 29: ! 30: # ! 31: # strings.o and sh.init.o are specially processed to be shared ! 32: # ! 33: strings.o: strings ! 34: ${XSTR} ! 35: ${CC} -S xs.c ! 36: ${ED} - <:rofix xs.s ! 37: ${AS} -o strings.o xs.s ! 38: ${RM} xs.s ! 39: ! 40: sh.init.o: ! 41: ${CC} -E ${CFLAGS} sh.init.c | ${XSTR} -c - ! 42: ${CC} ${CFLAGS} -S x.c ! 43: ${ED} - <:rofix x.s ! 44: ${AS} -o sh.init.o x.s ! 45: ${RM} x.s ! 46: ! 47: lint: ! 48: lint sh*.h sh*.c ! 49: ! 50: print: ! 51: @pr READ_ME ! 52: @pr makefile makefile.* ! 53: @(size -l a.out; size *.o) | pr -h SIZES ! 54: @${CXREF} sh*.c | pr -h XREF ! 55: @ls -l | pr ! 56: @pr sh*.h [a-rt-z]*.h sh*.c alloc.c ! 57: ! 58: install: csh sh.local.h ! 59: install -s csh ${DESTDIR}/bin/oldcsh ! 60: ! 61: clean: ! 62: ${RM} -f a.out strings x.c xs.c ! 63: ${RM} -f *.o
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.