#
# 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


LIBCURD = libcurd.a

#sources 

SOURCES = \
   aamaincur.f90 \
   control.f90 \
   initdat.f90 \
   inoutdat.f90 \
   magfld.f90 \
   cntour.f90 \
   profl.f90 \
   rfdrive.f90 \
   setdflt.f90

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

all :  $(LIBCURD)


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


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