|
|
1.1 ! root 1: # Makefile 2.15 83/08/18 ! 2: # ! 3: # Berkeley Mail ! 4: # ! 5: # CFLAGS options: ! 6: # -DVMUNIX Virtual memory ! 7: # Supports job control and vfork() ! 8: # -DV7 Supports Version 7 UNIX ! 9: # -DNODATE Don't check date format ! 10: # -D4.2BSD Supports sigblock() and sigsetmask() system calls ! 11: # -DUSGFROM Ignore silly USG `FROM:' header field ! 12: # ! 13: CFLAGS= -O -DVMUNIX -DV7 -DNODATE -DUSGFROM ! 14: XSTR= /usr/bin/xstr ! 15: DESTDIR= ! 16: CTAGS= /usr/bin/ctags -w ! 17: VPRINT= /usr/bin/print ! 18: CGRAF= /usr/ber/bin/cgraf ! 19: CGRAPH= /usr/ber/bin/cgraph ! 20: NMKINDEX=/usr/ber/bin/nmkindex ! 21: DIRTCLOD=/usr/ber/bin/dirtclod ! 22: LIBES=-ljobs ! 23: ED= -ed ! 24: AS= -as ! 25: RM= -rm ! 26: OBJS= version.o aux.o cmd1.o cmd2.o cmd3.o cmdtab.o collect.o \ ! 27: config.o edit.o fio.o \ ! 28: getname.o head.o v7.local.o lock.o lex.o list.o main.o \ ! 29: names.o optim.o popen.o quit.o send.o strings.o temp.o tty.o \ ! 30: vars.o str.o 4.2sys.o ! 31: SRCS= aux.c cmd1.c cmd2.c cmd3.c cmdtab.c collect.c config.c edit.c fio.c \ ! 32: getname.c head.c v7.local.c lock.c lex.c list.c main.c \ ! 33: names.c optim.c popen.c quit.c send.c strings.c temp.c tty.c vars.c \ ! 34: version.c 4.2sys.c ! 35: HDRS= rcv.h configdefs.h def.h glob.h v7.local.h local.h ! 36: ALL= Mail fmt ! 37: S = $(SRCS) $(HDRS) ! 38: ! 39: # ! 40: # Special massaging of C files for sharing of strings ! 41: # ! 42: .SUFFIXES: .o .c ! 43: ! 44: .c.o: ! 45: ${CC} -E ${CFLAGS} $*.c | ${XSTR} -c - ! 46: ${CC} -c ${CFLAGS} x.c ! 47: mv x.o $*.o ! 48: @$(RM) -f x.c ! 49: ! 50: all: ${ALL} ! 51: ! 52: Mail: $S $(OBJS) ! 53: $(RM) -f Mail ! 54: @echo Loading ... ! 55: @$(CC) -n -o Mail $(OBJS) $(LIBES) ! 56: @size Mail ! 57: ! 58: mail.g: $(SRCS) ! 59: $(CGRAF) $(SRCS) > mail.g ! 60: ! 61: install: all ! 62: mv Mail fmt ${DESTDIR}/usr/bin ! 63: strip ${DESTDIR}/usr/bin/Mail ${DESTDIR}/usr/bin/fmt ! 64: ! 65: version.o: version.c ! 66: $(CC) -c -R version.c ! 67: ! 68: $S: ! 69: sccs get $@; ! 70: ! 71: srcs: $S ! 72: ! 73: tags: $(SRCS) ! 74: ${CTAGS} $(SRCS); ! 75: ! 76: clean: ! 77: $(RM) -f *.o ! 78: rm -f Mail a.out fmt x.c xs.c tags core ! 79: cp /dev/null strings ! 80: ! 81: lint: ! 82: lint $(CFLAGS) $(SRCS) ! 83: ! 84: fmt: fmt.c head.c ! 85: $(CC) fmt.c head.c -o fmt ! 86: $(RM) fmt.o head.o ! 87: size fmt ! 88: ! 89: str.o: strings ! 90: $(XSTR) ! 91: $(CC) -R -c xs.c ! 92: mv xs.o str.o ! 93: $(RM) xs.c ! 94: ! 95: cmdtab.o: cmdtab.c ! 96: $(CC) -R -c $(CFLAGS) cmdtab.c ! 97: ! 98: print: $S fmt.c ! 99: $(CGRAPH) > mail.g; ! 100: $(NMKINDEX) > mail.i; ! 101: $(DIRTCLOD) -x mail.i -p mail.g > mail.x ! 102: @$(VPRINT) Makefile mail.x rcv.h def.h glob.h local.h v7.local.h \ ! 103: $(SRCS) fmt.c; ! 104: ! 105: wc: ! 106: @wc rcv.h def.h glob.h local.h v7.local.h $(SRCS) ! 107: ! 108: sc: ! 109: @grep -c \; rcv.h def.h glob.h local.h v7.local.h $(SRCS) ! 110: ! 111: strings: ! 112: echo "making strings"
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.