File:  [Research Unix] / researchv10no / libc / stdio / ostdio / mkfile
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 17:21:35 2018 UTC (8 years, 1 month ago) by root
Branches: belllabs, MAIN
CVS tags: researchv10, HEAD
researchv10 Norman

BUILTINS =
DESTDIR = /usr
CFLAGS = -O 

o = atof.o doprnt.o doscan.o fprintf.o printf.o scanf.o sprintf.o

ostdio.a: $o
	ar cr $target $o
	ranlib $target

clean:
	rm -f *.o

doprnt.o:
	cp doprnt.S doprnt.c
	cc -E doprnt.c | as -o doprnt.o
	ld -x -r doprnt.o
	mv a.out doprnt.o
	rm doprnt.c

%.o: %.c
	cc $CFLAGS -c $stem.c
	ld -x -r $stem.o
	mv a.out $stem.o

%.o: %.s
	as -o $stem.o $stem.s
	ld -x -r $stem.o
	mv a.out $stem.o

install:V: $DESTDIR/lib/libostdio.a
	
$DESTDIR/lib/libostdio.a: ostdio.a
	cp $prereq $target
	ranlib $target

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.