|
|
1.1 root 1: #
2: # Unix version 7.
3: CFLAGS=-O -DV7 -DVFORK
4: XSTR=/usr/ucb/xstr
5: DESTDIR=/usr/src
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 lex.o list.o main.o names.o optim.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 lex.c list.c main.c names.c optim.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: cp Mail $(DESTDIR)
32: cp fmt $(DESTDIR)
33:
34: Mail: $(OBJS) tags
35: $(CC) -z -n -o Mail $(OBJS)
36: @size Mail
37:
38: tags:
39: ${CTAGS} *.c;
40:
41: clean:
42: $(RM) -f *.o
43: rm -f Mail a.out fmt x.c xs.c tags
44: cp /dev/null strings
45: cp /dev/null version.c
46:
47: lint:
48: lint $(CFLAGS) $(SRCS)
49:
50: fmt: fmt.c head.c
51: $(CC) fmt.c head.c -o fmt
52: $(RM) fmt.o head.o
53: size fmt
54:
55: str.o: strings
56: $(XSTR)
57: $(CC) -S xs.c
58: $(ED) - <:rofix xs.s
59: $(AS) -o str.o xs.s
60: $(RM) xs.s
61:
62: cmdtab.o: cmdtab.c
63: $(CC) -S $(CFLAGS) cmdtab.c
64: $(ED) - <:rofix cmdtab.s
65: $(AS) -o cmdtab.o cmdtab.s
66: $(RM) cmdtab.s
67:
68: errlst.o: errlst.c
69: ${CC} -E ${CFLAGS} errlst.c | ${XSTR} -c -
70: ${CC} ${CFLAGS} -S x.c
71: ${ED} - <:rofix x.s
72: ${AS} -o errlst.o x.s
73: ${RM} x.s
74:
75: #
76: # Make the version file. /tmp is always changing.
77: #
78: version.c: /tmp
79: /bin/sh version > version.c
80:
81: print:
82: @pr rcv.h def.h glob.h local.h v7.local.h $(SRCS)
83: @pr fmt.c
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.