# This is file Makefile
#
# Copyright (C) 1991 DJ Delorie, 24 Kirsten Ave, Rochester NH 03867-2954
#
# This file is distributed under the terms listed in the document
# "copying.dj", available from DJ Delorie at the address above.
# A copy of "copying.dj" should accompany this file; if not, a copy
# should be available from where this file was obtained.  This file
# may not be distributed without a verbatim copy of "copying.dj".
#
# This file is distributed WITHOUT ANY WARRANTY; without even the implied
# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#

CFLAGS = -O

.s.o :
	gcc $(CFLAGS) -c $*.s

.c.o :
	gcc $(CFLAGS) -c $*.c

O =\
	acos.o \
	acosh.o \
	asin.o \
	asinh.o \
	atan.o \
	atan2.o \
	atanh.o \
	ceil.o \
	cos.o \
	cosh.o \
	exp.o \
	fabs.o \
	floor.o \
	fmod.o \
	frexp.o \
	hypot.o \
	log.o \
	log10.o \
	sin.o \
	sinh.o \
	sqrt.o \
	tan.o \
	tanh.o

../../lib/libm.a : libm.a
	cp libm.a ../../lib
	ar s ../../lib/libm.a

libm.a : $(O)
	>libm.rf $?
	ar rc libm.a @libm.rf

depend:
	depend $(CFLAGS) -u -I/usr/include
