|
|
1.1 root 1: NAMES=y.tab lex inquiry init status disk sense start read diag capacity helptab\
2: media reset worm write drdiag copy search
3: L=lib.a
4: OBJ=`echo $NAMES|sed -e 's/[^ ][^ ]*/$L(&.o)/g'`
5: CLIB=`echo $NAMES|sed -e 's/[^ ][^ ]*/O\/&.O/g'`
6: CFLAGS=-g
7: NPROC=2
8: ALL=wmount scsish
9: W=/usr/lib/worm
10: INS=$W/wmount $W/scsish
11:
12: install:V: $INS
13:
14: ship: $INS
15: ship $newprereq && touch ship
16:
17: $W/(wmount|scsish):R: \\1
18: cp $prereq $target && strip -g $target && chmod 775 $target
19:
20: wmount: wmount.o $L
21: $CC $CFLAGS -o $target $prereq
22:
23: scsish: scsish.o $L
24: $CC $CFLAGS -o $target $prereq
25:
26: clean:V:
27: rm -f O/* $ALL *.o
28:
29: %.o O/%.O: scsi.h
30:
31: cyntax: O/wmount O/scsish
32:
33: O/wmount: O/wmount.O $CLIB
34: cyntax $prereq && touch $target
35:
36: O/scsish: O/scsish.O $CLIB
37: cyntax $prereq && touch $target
38:
39: pp:
40: smalllp [a-w]*.h [a-w]*.[cy]
41:
42: y.tab.c y.tab.h: gram.y
43: yacc -d -D gram.y
44: ed - y.tab.c <<!
45: ,s/printf/print/
46: w
47: q
48: !
49:
50: x.tab.h:Q: y.tab.h
51: cmp -s x.tab.h y.tab.h || cp y.tab.h x.tab.h
52:
53: y.tab.o lex.o: x.tab.h
54:
55: lex.o: lex.l
56: lex -t lex.l > lex.c
57: ed - lex.c <<!
58: ,s/fprintf(yyout/fprint(2/
59: w
60: q
61: !
62: $CC $CFLAGS -c lex.c && rm lex.c
63:
64: helptab.c:Q: gram.y
65: ( echo 'char *helpstrs[] = {'
66: sed -n -e '1,/^line/d
67: /^drive/,$d
68: /::/s/::.*/",/
69: /:/s/.*:/ "/p
70: /|/s/ *{.*/",/
71: /|/s/.*| */ "/p' < gram.y
72: echo ' 0'
73: echo '};'
74: ) > $target
75:
76: $L(%.o): %.o
77: $L:Q: $OBJ
78: names=`membername $newprereq`
79: ar rv $L $names && rm $names
80: ranlib $L
81:
82: O/%.O: %.c
83: cyntax -c $CFLAGS $stem.c && mv $stem.O O
84:
85: O/y.tab.O: y.tab.c
86: cyntax -c -Vyyerror:1 y.tab.c && mv y.tab.O O
87:
88: O/lex.O: lex.l
89: > /tmp/lex.c
90: cyntax -c /tmp/lex.c && mv /tmp/lex.O O
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.