FC=gfortran
FFLAGS=-g
FLOPTS=-g

OBJS=frthash.o
SRCS=$(OBJS:.o=.f90)
BINS=frthash

UPPERINC=-I../../tools -I../../basic
LIBNAME=nusdas3
LIBRARY=../../lib$(LIBNAME).a

.SUFFIXES:
.SUFFIXES: .f90 .o

.f90.o:
	$(FC) $(FFLAGS) $(UPPERINC) -c $<

all: $(BINS)
p35app: all

frthash: frthash.o $(LIBRARY) $(UPPERLIB)
	$(FC) $(FLOPTS) -o frthash frthash.o $(LIBRARY)

clean:
	-rm -f *.o core *~ a.out *.mod $(BINS)
