CFLAGS = -O
OBJ =   asin.o atan.o exp.o fabs.o floor.o frexp.o \
	hypot.o j0.o j1.o jn.o ldexp.o log.o \
	modf.o pow.o sin.o sinh.o sqrt.o tan.o \
	tanh.o tldexp.o tmodf.o
I = /usr/include

libm.a:         $(OBJ)
	rm -f libm.a
	ar rvc libm.a $(OBJ)

/lib/libm.a:    libm.a
	/etc/instcmd -m 664 libm.a /lib/libm.a
	ranlib /lib/libm.a
	rm $(OBJ)

asin.o:		asin.c		$I/errno.h 
atan.o:		atan.c		
exp.o:		exp.c		$I/errno.h $I/math.h 
fabs.o:		fabs.c		
floor.o:	floor.c		
frexp.o:	frexp.c		
hypot.o:	hypot.c		
j0.o:		j0.c		$I/math.h $I/errno.h 
j1.o:		j1.c		$I/math.h $I/errno.h 
jn.o:		jn.c		$I/math.h $I/errno.h 
ldexp.o:	ldexp.c		
log.o:		log.c		$I/errno.h $I/math.h 
modf.o:		modf.c		
pow.o:		pow.c		$I/errno.h 
sin.o:		sin.c		
sinh.o:		sinh.c		
sqrt.o:		sqrt.c		$I/errno.h 
tan.o:		tan.c		$I/errno.h $I/math.h 
tanh.o:		tanh.c		
tldexp.o:	tldexp.c	
tmodf.o:	tmodf.c		$I/stdio.h 
