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


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


LIBRIMSL = librimsl.a

#sources 

SOURCES = \
        icsevu.f90 \
        icsicu.f90 \
        ibcccu.f90 \
        ibcdcu.f90 \
        dcsevu.f90 \
        uertst.f90 \
        bcspeval.f90 \
        bcspefnd.f90 \
        tableintrp.f90 \
        icsccu.f90 \
        r8cspline.f90 \
        ibc_ck.f90 \
        r8splinck.f90 \
        r8pspline.f90 \
        r8cubsplb.f90       


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


all :  $(LIBRIMSL)


$(LIBRIMSL) :  $(SOURCES:.f90=.o)
	$(LINK) $@ $(SOURCES:.f90=.o) 


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