|
|
1.1 root 1: CFLAGS=-g -I.
2: CC=cc
3: LIB=worm.a
4: BIN=/usr/lib/worm
5: L=io inode vlink flink sym getopt mapdev btree LL in timenow
6: OBJ=${L:%=$LIB(%.o)}
7: NPROC=2
8: # remember to change /usr/bin/worm if you add programs
9: ALL=wmkfs wstat wwrite wread wls woffline wcat wbtree wrm\
10: wdir wreset wmv wtmpdir wmount wcopy jukebox scsish
11: BALL=${ALL:%=$BIN/%}
12:
13: all:V: $ALL
14:
15: scsish jukebox:Pexit 1: /unix
16: cd scsi; mk both
17:
18: $LIB:Q: $OBJ
19: names=`membername $newprereq`
20: ar rv $LIB $names && rm $names
21: ranlib $LIB
22:
23: '^(w[^.]*)$':R: \\1.o $LIB #O/\\1
24: $CC $CFLAGS -o $target $stem1.o $LIB -lcbt
25:
26: '^(poot)$':R: \\1.o $LIB #O/\\1
27: $CC $CFLAGS -o $target $stem1.o $LIB -lcbt
28:
29: '^(O/w[^.]*)$':R: \\1.O $COBJ
30: cyntax $prereq && > $target
31:
32: $BIN/'(w[^.]*)$':R: \\1
33: cp $stem1 $target && strip $target; chmod 775 $target
34: $BIN/'(scsish|jukebox)':R: \\1
35: cp $stem1 $target && strip $target; chmod 775 $target
36:
37: sym.o wtree.o thing.o: sym.h
38: wtree.o thing.o: thing.h
39:
40: $LIB(%.o):N: %.o
41: %.o: worm.h
42: O/%.O: %.c
43: cyntax -c $stem.c && mv $stem.O O
44: O/%.O: worm.h
45:
46: pp:
47: smallpr mkfile worm.h *.c
48:
49: clean:V:
50: rm -f *.o *.a $ALL core O/*
51:
52: install:V: $BALL
53:
54: ship:V: shipped
55: shipped: $BALL /usr/bin/worm
56: ship $newprereq && touch $target
57:
58: goo:V: wmv wls wwrite wmkfs
59: set +e
60: > temp
61: wmkfs -ftemp testa
62: wwrite -ftemp testa w*.[ch]
63: wls -ftemp -l wreset.c; wls -ftemp -b wreset.c
64: wmv -ftemp testa wreset.c xxx
65: wls -ftemp -l wreset.c xxx; wls -ftemp -b xxx
66:
67: wild: $BALL
68: dest=wild ship $newprereq && touch $target
69:
70: poot:V: wcopy wls wstat wmkfs
71: > temp1
72: wmkfs -ftemp1 -n300 test7a; wstat -v -ftemp1
73: wls -ftemp | wcopy -ftemp -v -m0 testa temp1 test7a
74: wstat -v -ftemp; wls -ftemp -b | sort | mc
75: wstat -v -ftemp1; wls -ftemp1 -b | sort | mc
76: #wstat -v -ftemp; wstat -v -ftemp1
77: wls -ftemp | wcopy -ftemp -v -m0 testa temp1 test7a
78: wstat -v -ftemp1; wls -ftemp1 -b | sort | mc
79: set +e;(wls -ftemp; echo; wls -ftemp; echo; wls -ftemp)| tee temp2 | wcopy -ftemp -v -m100 testa temp1 test7a
80: wstat -v -ftemp1; wls -ftemp1 -b | sort | mc
81:
82: goop:V: wmkfs wstat wwrite
83: > temp
84: wmkfs -ftemp -n1000 testa; wstat -vftemp
85: wmkfs -n666 -ftemp testa; wstat -vftemp
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.