|
|
1.1 ! root 1: # ! 2: # Copyright (c) 1980 Regents of the University of California. ! 3: # All rights reserved. The Berkeley software License Agreement ! 4: # specifies the terms and conditions for redistribution. ! 5: # ! 6: # @(#)Makefile 5.3 (Berkeley) 1/11/86 ! 7: # ! 8: # Berkeley Mail ! 9: # ! 10: CFLAGS= -O -DVMUNIX -DV7 ! 11: XSTR= /usr/ucb/xstr ! 12: DESTDIR= ! 13: CTAGS= /usr/ucb/ctags -w ! 14: VPRINT= /usr/ucb/print ! 15: LIBES= ! 16: AS= -as ! 17: RM= -rm ! 18: OBJS= version.o aux.o cmd1.o cmd2.o cmd3.o cmdtab.o collect.o \ ! 19: config.o edit.o fio.o \ ! 20: getname.o head.o v7.local.o lex.o list.o main.o \ ! 21: names.o optim.o popen.o quit.o send.o strings.o temp.o tty.o \ ! 22: vars.o str.o ! 23: SRCS= aux.c cmd1.c cmd2.c cmd3.c cmdtab.c collect.c config.c edit.c fio.c \ ! 24: getname.c head.c v7.local.c lex.c list.c main.c \ ! 25: names.c optim.c popen.c quit.c send.c strings.c temp.c tty.c vars.c \ ! 26: version.c ! 27: HDRS= rcv.h configdefs.h def.h glob.h v7.local.h local.h ! 28: ALL= Mail fmt ! 29: S = $(SRCS) $(HDRS) ! 30: ! 31: # ! 32: # Special massaging of C files for sharing of strings ! 33: # ! 34: .c.o: ! 35: ${CC} -E ${CFLAGS} $*.c | ${XSTR} -c - ! 36: ${CC} -c ${CFLAGS} x.c ! 37: mv x.o $*.o ! 38: @$(RM) -f x.c ! 39: ! 40: all: ${ALL} ! 41: ! 42: Mail: $S $(OBJS) ! 43: $(RM) -f Mail ! 44: @echo Loading ... ! 45: @$(CC) -o Mail $(OBJS) $(LIBES) ! 46: @size Mail ! 47: ! 48: install: all ! 49: install -s Mail ${DESTDIR}/usr/ucb/Mail ! 50: cp misc/Mail.* ${DESTDIR}/usr/lib ! 51: install -s fmt ${DESTDIR}/usr/ucb/fmt ! 52: cd ${DESTDIR}/usr/ucb; rm -f mail; ln Mail mail ! 53: ! 54: version.o: version.c ! 55: $(CC) -c -R version.c ! 56: ! 57: $S: ! 58: sccs get $@; ! 59: ! 60: srcs: $S ! 61: ! 62: tags: $(SRCS) ! 63: ${CTAGS} $(SRCS); ! 64: ! 65: clean: ! 66: $(RM) -f *.o ! 67: rm -f Mail a.out fmt x.c xs.c tags core xhead.c ! 68: cp /dev/null strings ! 69: ! 70: lint: ! 71: lint $(CFLAGS) $(SRCS) ! 72: ! 73: fmt: fmt.o xhead.o ! 74: $(CC) $(CFLAGS) fmt.o xhead.o -o fmt ! 75: size fmt ! 76: ! 77: fmt.o: fmt.c ! 78: $(CC) $(CFLAGS) -c fmt.c ! 79: ! 80: xhead.c: ! 81: ln -s head.c xhead.c ! 82: ! 83: xhead.o: xhead.c ! 84: $(CC) $(CFLAGS) -c xhead.c ! 85: ! 86: str.o: strings ! 87: $(XSTR) ! 88: $(CC) -R -c xs.c ! 89: mv xs.o str.o ! 90: $(RM) xs.c ! 91: ! 92: cmdtab.o: cmdtab.c ! 93: $(CC) -R -c $(CFLAGS) cmdtab.c ! 94: ! 95: print: $S fmt.c ! 96: @$(VPRINT) Makefile rcv.h def.h glob.h local.h v7.local.h $(SRCS) fmt.c ! 97: ! 98: wc: ! 99: @wc rcv.h def.h glob.h local.h v7.local.h $(SRCS) ! 100: ! 101: sc: ! 102: @grep -c \; rcv.h def.h glob.h local.h v7.local.h $(SRCS)
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.