#/*
#
#File	: Makefile
#Purpose: "make coherent" makes a library for import from Unix to Coherent
#	  (on a Coherent system) named libvprintf.a
#	  "make noncoherent" makes a library for export from Coherent to Unix
#	  (on a non Coherent system) named librprintf.a
#Doc	: See rprintf.doc for more info about it.
#Date	: Feb 13 '92
#By	: Noud van Klinken
#
#*/

coherent	: rprintf.c rsprintf.c rfprintf.c rprintf.test.c \
		vp_frame.c vprintf.c vsprintf.c vfprintf.c vprintf.test.c
		echo Making for Coherent...
		cc -c rprintf.c
		cc -c rsprintf.c
		cc -c rfprintf.c
		ar rsu librprintf.a rprintf.o rsprintf.o rfprintf.o
		rm r*printf.o
		cc -c vp_frame.c
		cc -c vprintf.c
		cc -c vsprintf.c
		cc -c vfprintf.c
		ar rsu libvprintf.a vp_frame.o vprintf.o vsprintf.o vfprintf.o
		rm vp_frame.o v*printf.o
		cc vprintf.test.c -lvprintf -o vprintf
		echo TESTING "v*printf" family
		vprintf
		cc rprintf.test.c -lrprintf -lvprintf -o rprintf
		echo TESTING "r*printf" family
		rprintf

noncoherent	: rprintf.c rsprintf.c rfprintf.c rprintf.test.c \
                vprintf.test.c
		echo Making for UNIX...
		cc -c rprintf.c
		cc -c rsprintf.c
		cc -c rfprintf.c
		ar rvu librprintf.a rprintf.o rsprintf.o rfprintf.o
		ranlib librprintf.a
		rm r*printf.o
		cc vprintf.test.c -o vprintf
		echo TESTING "v*printf" family
		vprintf
		cc rprintf.test.c librprintf.a -o rprintf
		echo TESTING "r*printf" family
		rprintf

