|
|
1.1 root 1: # /usr/src/cmd0/sh/Makefile 4/29/93
2:
3: DESTDIR=/bin386/bin/
4:
5: # Version number for var.c.
6: VERSION=V4.0.7
7: # Parsing stack depth for y.tab.c.
8: YYMAXDEPTH=1024
9:
10: #CFLAGS= -O2
11: CC=cc
12:
13: # Undefine _copyright_ to pull in libc.a/copyright.o.
14: LDFLAGS= -n -i -u _copyright
15: # Don't bind shared on the PDP-11.
16: # LDFLAGS= -i
17:
18: OBJ=\
19: alloc.o\
20: atoi.o\
21: eval.o\
22: exec1.o\
23: exec2.o\
24: exec3.o\
25: extern.o\
26: glob.o\
27: lex.o\
28: main.o\
29: tab.o\
30: trap.o\
31: var.o\
32: y.tab.o
33:
34: SRCS=\
35: sh.h\
36: sh.y\
37: alloc.c\
38: atoi.c\
39: eval.c\
40: exec1.c\
41: exec2.c\
42: exec3.c\
43: extern.c\
44: glob.c\
45: lex.c \
46: main.c\
47: tab.c\
48: trap.c\
49: var.c
50:
51: # Primary target.
52: sh: $(OBJ)
53: rm -f sh
54: $(CC) $(LDFLAGS) -o $(DESTDIR)sh $(OBJ)
55: strip $(DESTDIR)sh
56: su root chmog 511 bin bin $(DESTDIR)sh
57:
58: psh: $(OBJ)
59: $(CC) -n -o psh -O -DPARANOID $(OBJ)
60:
61: # Secondary targets.
62: alloc.o: sh.h alloc.c
63: atoi.o: atoi.c
64: eval.o: sh.h eval.c
65: exec1.o: sh.h exec1.c
66: exec2.o: sh.h exec2.c
67: exec3.o: sh.h exec3.c
68: extern.o: sh.h extern.c
69: glob.o: sh.h glob.c
70: lex.o: sh.h lex.c y.tab.o
71: main.o: sh.h main.c
72: tab.o: sh.h tab.c
73: trap.o: sh.h trap.c
74: var.o: var.c sh.h
75: $(CC) -c $(CFLAGS) -DVERSION=\"$(VERSION)\" $*.c
76: y.tab.c: sh.y
77: yacc $<
78: y.tab.o: y.tab.c sh.h
79: $(CC) -c $(CFLAGS) -DYYMAXDEPTH=$(YYMAXDEPTH) $*.c
80:
81: # Etc.
82: clean:
83: rm $(OBJ)
84:
85: # end of /usr/src/cmd0/sh/Makefile
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.