|
|
1.1 root 1: BUILTINS =
2: DESTDIR = /usr
3: CFLAGS = -O
4:
5: o = atof.o doprnt.o doscan.o fprintf.o printf.o scanf.o sprintf.o
6:
7: ostdio.a: $o
8: ar cr $target $o
9: ranlib $target
10:
11: clean:
12: rm -f *.o
13:
14: doprnt.o:
15: cp doprnt.S doprnt.c
16: cc -E doprnt.c | as -o doprnt.o
17: ld -x -r doprnt.o
18: mv a.out doprnt.o
19: rm doprnt.c
20:
21: %.o: %.c
22: cc $CFLAGS -c $stem.c
23: ld -x -r $stem.o
24: mv a.out $stem.o
25:
26: %.o: %.s
27: as -o $stem.o $stem.s
28: ld -x -r $stem.o
29: mv a.out $stem.o
30:
31: install:V: $DESTDIR/lib/libostdio.a
32:
33: $DESTDIR/lib/libostdio.a: ostdio.a
34: cp $prereq $target
35: ranlib $target
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.