# # Skeleton for version 7 # CFLAGS= -O -DTELL -DVFORK -DVMUNIX -DHZ=60 -I${INCLUDES} INCLUDES= XSTR= /usr/ucb/xstr ED= -ed AS= -as RM= -rm CXREF= /usr/ucb/cxref VGRIND= csh /usr/ucb/vgrind CTAGS= /usr/ucb/ctags # # strings.o must be last in OBJS since it can change when previous files compile # OBJS=sh.o sh.dol.o sh.err.o sh.exec.o sh.exp.o sh.func.o sh.glob.o sh.hist.o \ sh.lex.o sh.misc.o sh.parse.o sh.print.o sh.sem.o sh.set.o \ sh.wait.o alloc.o sh.init.o vaxprintf.o \ strings.o doprnt.o # For a 34 or 40 add to the above: getpwent.o getpwnam.o # # Special massaging of C files for sharing of strings # .c.o: ${CC} -E ${CFLAGS} $*.c | ${XSTR} -c - ${CC} -c ${CFLAGS} x.c mv x.o $*.o csh: ${OBJS} sh.local.h ${CC} -n ${OBJS} -o csh doprnt.o: doprnt.c cc -E doprnt.c > doprnt.s as -o doprnt.o doprnt.s rm -f doprnt.s # # strings.o and sh.init.o are specially processed to be shared # strings.o: strings ${XSTR} ${CC} -S xs.c ${ED} - <:rofix xs.s ${AS} -o strings.o xs.s ${RM} xs.s sh.init.o: ${CC} -E ${CFLAGS} sh.init.c | ${XSTR} -c - ${CC} ${CFLAGS} -S x.c ${ED} - <:rofix x.s ${AS} -o sh.init.o x.s ${RM} x.s lint: lint sh*.h sh*.c print: @pr READ_ME @pr makefile makefile.* @(size -l a.out; size *.o) | pr -h SIZES @${CXREF} sh*.c | pr -h XREF @ls -l | pr @pr sh*.h [a-rt-z]*.h sh*.c alloc.c vprint: @pr -l84 READ_ME @pr -l84 makefile makefile.* @(size -l a.out; size *.o) | pr -l84 -h SIZES @${CXREF} sh*.c | pr -l84 -h XREF @ls -l | pr -l84 @${CXREF} sh*.c | pr -l84 -h XREF @pr -l84 sh*.h [a-rt-z]*.h sh*.c alloc.c vgrind: ${VGRIND} -h "C Shell" sh*.h ${VGRIND} -h "C Shell" sh*.c ${VGRIND} -x -h Index index install: csh sh.local.h install -s csh ${DESTDIR}/bin/csh clean: ${RM} -f a.out strings x.c xs.c ${RM} -f *.o tags: /tmp ${CTAGS} sh*.c