|
|
1.1 ! root 1: # ! 2: # Unix version 7. ! 3: CFLAGS=-O -DV7 -DVFORK ! 4: XSTR=/usr/ucb/xstr ! 5: DESTDIR= ! 6: CTAGS=/usr/ucb/ctags -w ! 7: ED=-ed ! 8: AS=-as ! 9: RM=-rm ! 10: OBJS=aux.o cmd1.o cmd2.o cmd3.o cmdtab.o collect.o edit.o fio.o \ ! 11: getname.o head.o v7.local.o lock.o optim.o names.o lex.o list.o main.o \ ! 12: quit.o send.o strings.o temp.o tty.o vars.o version.o \ ! 13: errlst.o str.o ! 14: ! 15: SRCS=aux.c cmd1.c cmd2.c cmd3.c cmdtab.c collect.c edit.c fio.c \ ! 16: getname.c head.c v7.local.c lock.c optim.c names.c lex.c list.c main.c \ ! 17: quit.c send.c strings.c temp.c tty.c vars.c version.c \ ! 18: errlst.c str.c ! 19: ! 20: # ! 21: # Special massaging of C files for sharing of strings ! 22: # ! 23: .c.o: ! 24: ${CC} -E ${CFLAGS} $*.c | ${XSTR} -c - ! 25: ${CC} -c ${CFLAGS} x.c ! 26: mv x.o $*.o ! 27: ! 28: all: Mail fmt ! 29: ! 30: install: all ! 31: install -s Mail $(DESTDIR)/usr/ucb ! 32: rm -f ${DESTDIR}/usr/ucb/mail ! 33: ln ${DESTDIR}/usr/ucb/Mail ${DESTDIR}/usr/ucb/mail ! 34: install -s fmt $(DESTDIR)/usr/ucb ! 35: ! 36: Mail: $(OBJS) tags ! 37: $(CC) -z -n -o Mail $(OBJS) ! 38: @size Mail ! 39: ! 40: tags: ! 41: ${CTAGS} *.c; ! 42: ! 43: clean: ! 44: $(RM) -f *.o ! 45: rm -f Mail a.out fmt x.c xs.c tags ! 46: cp /dev/null strings ! 47: cp /dev/null version.c ! 48: ! 49: lint: ! 50: lint $(CFLAGS) $(SRCS) ! 51: ! 52: fmt: fmt.c head.c ! 53: $(CC) fmt.c head.c -o fmt ! 54: $(RM) fmt.o head.o ! 55: size fmt ! 56: ! 57: str.o: strings ! 58: $(XSTR) ! 59: $(CC) -S xs.c ! 60: $(ED) - <:rofix xs.s ! 61: $(AS) -o str.o xs.s ! 62: $(RM) xs.s ! 63: ! 64: cmdtab.o: cmdtab.c ! 65: $(CC) -S $(CFLAGS) cmdtab.c ! 66: $(ED) - <:rofix cmdtab.s ! 67: $(AS) -o cmdtab.o cmdtab.s ! 68: $(RM) cmdtab.s ! 69: ! 70: errlst.o: errlst.c ! 71: ${CC} -E ${CFLAGS} errlst.c | ${XSTR} -c - ! 72: ${CC} ${CFLAGS} -S x.c ! 73: ${ED} - <:rofix x.s ! 74: ${AS} -o errlst.o x.s ! 75: ${RM} x.s ! 76: ! 77: # ! 78: # Make the version file. /tmp is always changing. ! 79: # ! 80: version.c: /tmp ! 81: /bin/sh version > version.c ! 82: ! 83: print: ! 84: @pr rcv.h def.h glob.h local.h v7.local.h $(SRCS) ! 85: @pr fmt.c
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.