# -*- mode: makefile -*-
# Makefile to produce a library to draw contour level curves
# by compiling Fortran *.f90 subroutines
#  Needs that FC environment variable is correctly set.

LIBRARY = libcontours.a

######################################################
MAKEFILE= Makefile
######################################################

include ../Make.conf

.SUFFIXES : .c $(O)
.SUFFIXES : .f $(O)
.SUFFIXES : .f90 $(O)

%d : %f90 ; $(FC)  -c $(FFLAGS) $<  
%o : %f90 ; $(FC)  -c $(FFLAGS) $<  

CFLAGS = -g -Wall
# Computing level sets can take time, so we use -O2
FFLAGS = -O2
# FFLAGS = -g

LD=$(CC)


DEST	      = .

OBJS	      = toms626_modified.o

SRCS	      = toms626_modified.f

all:		$(LIBRARY)


$(LIBRARY):	$(OBJS)
		$(AR) r   $(LIBRARY) $(OBJS)

clean:;		@rm -f $(OBJS) core 

clobber:;	@rm -f $(OBJS) $(LIBRARY) core tags

distclean :;    rm -f $(LIBRARY)  *~ $(OBJS) core


depend:;	/usr/local/bin/mkmf -f $(MAKEFILE);  sfmakedepend $(OPTSFMKD) $(SRCS)


install : dummy

tests : dummy


dummy :

# DO NOT DELETE THIS LINE - used by make depend
