#
# Makefile to build Curray core library libcurk.a
#
# ignore errors and try to continue
.IGNORE:


.SUFFIXES:
.SUFFIXES: .o .f
# specify the compiler and options here

LIBIMSL = libimsl.a

#sources 

SOURCES = \
   ibcccu.f \
   ibcdcu.f \
   uertst.f \
   ugetio.f \
   mmbsir.f \
   mmbskr.f \
   uspkd.f 

# routines below have been successfully replaced 
#   icsccu.f \
#   icsevu.f \
#   icsicu.f \
#   ludatn.f \  
#   luelmn.f \ 
#   luelmn.f \ 
#   lurefn.f \  
#   leqt2f.f \
#   mmbsir.f \
#   mmbskr.f \ 
#   dgamma.f \ 

# rules
.f.o : 
	$(CF90) $(CF90PREFLAGS)   -c -o $@  $<


all :  $(LIBIMSL)


$(LIBIMSL) :  $(SOURCES:.f=.o)
	$(LINK) $@ $(SOURCES:.f=.o) 


clean :
	-rm -f core  *.o *.a *~
