|
|
1.1 root 1: #
2: # EECS/ERL 11/40 Unix
3: CFLAGS=-O -DV40 -I/usr/include/retrofit
4: XSTR=/mnt/eric/bin/xstr
5: DESTDIR=/usr/src
6: CTAGS=/usr/bin/ctags
7: ED=-ed
8: CC=ncc
9: AS=-nas
10: RM=-rm
11: OBJS=aux.o cmd1.o cmd2.o cmd3.o cmdtab.o collect.o edit.o fio.o \
12: getname.o head.o 40.local.o lex.o list.o main.o names.o optim.o \
13: quit.o send.o strings.o temp.o tty.o vars.o version.o \
14: errlst.o str.o
15:
16: SRCS=aux.c cmd1.c cmd2.c cmd3.c cmdtab.c collect.c edit.c fio.c \
17: getname.c head.c v6.local.c lex.c list.c main.c names.c optim.c \
18: quit.c send.c strings.c temp.c tty.c vars.c version.c \
19: errlst.c str.c
20:
21: #
22: # Special massaging of C files for sharing of strings
23: #
24: .c.o:
25: ${CC} -E ${CFLAGS} $*.c | ${XSTR} -c -
26: ${CC} -c ${CFLAGS} x.c
27: ${RM} -f $*.o
28: mv x.o $*.o
29:
30: all: Mail fmt
31:
32: install: all
33: cp Mail $(DESTDIR)
34: cp fmt $(DESTDIR)
35:
36: Mail: $(OBJS) tags
37: $(CC) -n -o Mail $(OBJS) -lretro -lS
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 core
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 -lretro -lS
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 v6.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.