#
#       Makefile for math
#
#          $(POISSON_OBJS) is set in Mkinclude

include ../../../Mkinclude
include ../Mkinclude

PACKNAME	= math
LIBFSRCS	= average.f90 derivative_base.f90 derivative_div.f90 math.f90 

LIBCSRCS	=
LIBSRCS		= $(LIBFSRCS) $(LIBCSRCS)
LIBFOBJS	= average.o derivative_base.o derivative_div.o math.o 
LIBCOBJS	=
LIBOBJS		= $(LIBFOBJS) $(LIBCOBJS)


all: $(LIBOBJS) archive ranlib ../.$(PACKNAME)

archive:
	@$(AR) $(ARFLAGS) $(CONVLIBFILE) $(LIBOBJS)

ranlib:
	$(RANLIB) $(CONVLIBFILE)

../.$(PACKNAME): $(LIBOBJS)
	$(TOUCH) ../.$(PACKNAME)

clean:
	$(RM) *.o *.mod *~ ../.$(PACKNAME)

###
math.o:	average.o derivative_base.o derivative_div.o
average.o: ../.base
derivative_div.o: ../.base
derivative_base.o: ../.base

