#
# Makefile for Ferret External Functions
#
# January 20 1998
# Jonathan Callahan
#
 
#
# include platform specific macro definitions
#

include platform_specific_flags.mk.$(HOSTTYPE)
 

#
# Macros
#

.SUFFIXES: .so

EFN_OBJS = efn/*.o

#
# Rules
#

.F.so:
	$(F77) $(FFLAGS) -c $<
	$(LD) $(LD_DYN_FLAGS) $(EFN_OBJS) $*.o -o $*.so 


#
# Targets
#

all:	libefn.so \
	avet.so add_9.so custom.so pass_thru.so subtract.so times_table.so

libefn.so:
	(cd efn; make;)

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

#
# End of Makefile
#
