|
|
1.1 root 1: #
2: # @(#)Makefile 1.8 (Berkeley) 7/2/83
3: #
4: M=/usr/src/lib/mip
5: LOAD1=
6: LOAD2=
7: CFLAGS=-O -DFLEXNAMES
8: LINTLIBS=llib-port.ln llib-lc.ln llib-lm.ln llib-lmp.ln llib-lcurses.ln
9:
10: all: lpass1 lpass2 ${LINTLIBS}
11:
12: lpass1: cgram.o xdefs.o scan.o comm1.o pftn.o trees.o optim.o lint.o hash.o
13: ${CC} cgram.o xdefs.o scan.o comm1.o pftn.o trees.o optim.o \
14: lint.o hash.o -o lpass1
15:
16: trees.o: $M/manifest macdefs $M/mfile1 $M/trees.c
17: ${CC} -c ${CFLAGS} -I$M -I. $M/trees.c
18:
19: optim.o: $M/manifest macdefs $M/mfile1 $M/optim.c
20: ${CC} -c ${CFLAGS} -I$M -I. $M/optim.c
21:
22: pftn.o: $M/manifest macdefs $M/mfile1 $M/pftn.c
23: ${CC} -c ${CFLAGS} -I$M -I. $M/pftn.c
24:
25: lint.o: $M/manifest macdefs $M/mfile1 lmanifest
26: ${CC} -c ${CFLAGS} -I$M -I. lint.c
27:
28: scan.o: $M/manifest macdefs $M/mfile1 $M/scan.c
29: ${CC} -c ${CFLAGS} -I$M -I. $M/scan.c
30:
31: xdefs.o: $M/manifest $M/mfile1 macdefs $M/xdefs.c
32: ${CC} -c ${CFLAGS} -I$M -I. $M/xdefs.c
33:
34: cgram.o: $M/manifest $M/mfile1 macdefs cgram.c
35: ${CC} -c ${CFLAGS} -I$M -I. cgram.c
36:
37: cgram.c: $M/cgram.y
38: yacc $M/cgram.y
39: mv y.tab.c cgram.c
40:
41: comm1.o: $M/manifest $M/mfile1 $M/common macdefs $M/comm1.c
42: ${CC} -c ${CFLAGS} -I. -I$M $M/comm1.c
43:
44: llib-port.ln: llib-port lpass1
45: -(/lib/cpp -C -Dlint llib-port | ./lpass1 -puv > llib-port.ln )
46:
47: llib-lm.ln: llib-lm lpass1
48: -(/lib/cpp -C -Dlint llib-lm | ./lpass1 -puv > llib-lm.ln )
49:
50: llib-lmp.ln: llib-lmp lpass1
51: -(/lib/cpp -C -Dlint llib-lmp | ./lpass1 -puv > llib-lmp.ln )
52:
53: llib-lc.ln: llib-lc lpass1
54: -(/lib/cpp -C -Dlint llib-lc | ./lpass1 -v > llib-lc.ln )
55:
56: llib-lcurses.ln: llib-lcurses lpass1
57: -(/lib/cpp -C -Dlint llib-lcurses | ./lpass1 -v > llib-lcurses.ln )
58:
59: lpass2: lpass2.o hash.o
60: ${CC} lpass2.o hash.o -o lpass2
61:
62: lpass2.o: $M/manifest lmanifest
63: ${CC} ${CFLAGS} -c -I$M -I. lpass2.c
64:
65: lintall:
66: lint -hpv -I. -I$M $M/cgram.c $M/xdefs.c $M/scan.c \
67: $M/pftn.c $M/trees.c $M/optim.c lint.c
68:
69: install: all SHELL
70: install -s lpass1 ${DESTDIR}/usr/lib/lint/lint1
71: install -s lpass2 ${DESTDIR}/usr/lib/lint/lint2
72: for i in llib-*; do install -c -m 644 $$i ${DESTDIR}/usr/lib/lint; done
73: install -c SHELL ${DESTDIR}/usr/bin/lint
74:
75: shrink:
76: rm -f *.o
77:
78: clean: shrink
79: rm -f lpass1 lpass2 cgram.c ${LINTLIBS}
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.