#
# Makefile for Ferret External Functions
#
# January 20 1998
# Jonathan Callahan
#
# Modified for lanczos by Bill Gustafson, 28-oct-1999 
#
# include platform specific macro definitions
#

include ../ef_utility/platform_specific_flags.mk.$(HOSTTYPE)
#include lanczos_platform_specific_flags.mk.$(HOSTTYPE)
FC = f90

#
# Macros
#

.SUFFIXES: .F90 .so

EFN_OBJS = ef_utility/*.o

#
# Rules
#

.F90.so:
	$(FC) $(FFLAGS) -c $<
	$(LD) $(LD_DYN_FLAGS) $(EFN_OBJS) $*.o -o $*.so 

#
# Targets
#

all:	ef_utility ferret_cmn lanczos.so

ef_utility:
	ln -s ../ef_utility ef_utility

ferret_cmn:
	ln -s ef_utility/ferret_cmn ferret_cmn

install:
	cp *.so $(MY_LOCAL_EXTFCNS)

clean:
	-rm -f *.o *.so core a.out temp.* efn ferret_cmn

#
# End of Makefile
#
