|
|
1.1 root 1: # Makefile 2.15 83/08/18
2: #
3: # Berkeley Mail
4: #
5:
6: MAKEPARAM = AS=${AS} CC=${CC} LD=${LD} INCLDIR=${INCLDIR} LIBDIR=${LIBDIR} ULIBDIR=${ULIBDIR} DESTDIR=${DESTDIR}
7: CFLAGS= -O -DVMUNIX -DV7
8: XSTR= /usr/ucb/xstr
9: DESTDIR=
10: CTAGS= /usr/ucb/ctags -w
11: VPRINT= /usr/ucb/print
12: CGRAF= /ja/rigel/rigel/bin/cgraf
13: CGRAPH= /ja/rigel/rigel/bin/cgraph
14: NMKINDEX=/ja/rigel/rigel/bin/nmkindex
15: DIRTCLOD=/ja/rigel/rigel/bin/dirtclod
16: LIBES=
17: ED= -ed
18: RM= -rm
19: OBJS= version.o aux.o cmd1.o cmd2.o cmd3.o cmdtab.o collect.o \
20: config.o edit.o fio.o \
21: getname.o head.o v7.local.o lock.o lex.o list.o main.o \
22: names.o optim.o popen.o quit.o send.o strings.o temp.o tty.o \
23: vars.o str.o
24: SRCS= aux.c cmd1.c cmd2.c cmd3.c cmdtab.c collect.c config.c edit.c fio.c \
25: getname.c head.c v7.local.c lock.c lex.c list.c main.c \
26: names.c optim.c popen.c quit.c send.c strings.c temp.c tty.c vars.c \
27: version.c
28: HDRS= rcv.h configdefs.h def.h glob.h v7.local.h local.h
29: ALL= Mail fmt
30: S = $(SRCS) $(HDRS)
31:
32: #
33: # Special massaging of C files for sharing of strings
34: #
35: .c.o:
36: ${CC} -E ${CFLAGS} $*.c | ${XSTR} -c -
37: ${CC} -c ${CFLAGS} x.c
38: mv x.o $*.o
39: @$(RM) -f x.c
40:
41: all: ${ALL}
42:
43: Mail: $S $(OBJS)
44: $(RM) -f Mail
45: @echo Loading ...
46: @$(CC) -n -o Mail $(OBJS) $(LIBES)
47: @size Mail
48:
49: mail.g: $(SRCS)
50: $(CGRAF) $(SRCS) > mail.g
51:
52: install: all
53: install -s Mail ${DESTDIR}/usr/ucb/Mail
54: cp misc/Mail.help* ${DESTDIR}/usr/lib
55: install -s fmt ${DESTDIR}/usr/ucb/fmt
56: cd ${DESTDIR}/usr/ucb; rm -f mail; ln Mail mail
57:
58: version.o: version.c
59: $(CC) -c -R version.c
60:
61: $S:
62: sccs get $@;
63:
64: srcs: $S
65:
66: tags: $(SRCS)
67: ${CTAGS} $(SRCS);
68:
69: clean:
70: $(RM) -f *.o
71: rm -f Mail a.out fmt x.c xs.c tags core
72: cp /dev/null strings
73:
74: cleansrc:
75: rm -f *.c *.h *Makefile strings
76: rm -f misc/*help*
77:
78: lint:
79: lint $(CFLAGS) $(SRCS)
80:
81: fmt: fmt.c head.c
82: $(CC) fmt.c head.c -o fmt
83: $(RM) fmt.o head.o
84: size fmt
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: $(CGRAPH) > mail.g;
97: $(NMKINDEX) > mail.i;
98: $(DIRTCLOD) -x mail.i -p mail.g > mail.x
99: @$(VPRINT) Makefile mail.x rcv.h def.h glob.h local.h v7.local.h \
100: $(SRCS) fmt.c;
101:
102: wc:
103: @wc rcv.h def.h glob.h local.h v7.local.h $(SRCS)
104:
105: sc:
106: @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.