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