#   makefile for the program     geometry
# 

include ../make.inc
################################################################
#
#    add the name of  YOUR  compiler/operating system to ../make.inc
#    and modify the compiler options FFLAGS  ---   if necessary   
#
#    NOTE: the executable will be copied to the parent 
#          directory (../) of the current working directory
#
################################################################

RM = rm -f
CP = cp

BINDIR = ..

.SUFFIXES: .o .f

.f.o:
	$(FC) $(FFLAGS) -c $<

all: geometry

# program modules used 

SRC = geometry.o optimize_basis_2d.o optimize_basis_3d.o open_scratch_file.o \
       errortrap.o

geometry: $(SRC)
	$(FC) $(LFLAGS) -o geometry $(SRC)
	$(CP) geometry $(BINDIR)/geometry$(VERS)

clean:
	rm -f *.o geometry $(BINDIR)/geometry$(VERS)
