###############################################################################
#
# Numerical models for the resonance behaviour
# of the Coulomb potential in ECE theory
#
# Makefile
#
###############################################################################
# Fortran compiler and linker specification
#
F90 = ifort
#F90 = f77
#
# Compiler flags
#
F90FLAGS = -132 -O3
#F90FLAGS = -O3
#
# F90 linker options
#
#F90LINK = -lm -lv5d
#
###############################################################################
#
# Gnuplot program
#
GNUPLOT = gnuplot
#GNUPLOT = wgnuplot
#
###############################################################################
#
# standard target: all
#
all: coulomb-1 coulomb-2
#
# Targets for creation of coul-1, coul-2 from source code
#
coulomb-1: coul-1
#
coul-1: coul-1.for Makefile
	${F90} ${F90FLAGS} -o coul-1 coul-1.for ${F90LINK}
#
coulomb-2: coul-2
#
coul-2: coul-2.for Makefile
	${F90} ${F90FLAGS} -o coul-2 coul-2.for ${F90LINK}
#
graph-1: coulomb-1
	./coul-1
	${GNUPLOT} plot1
	${GNUPLOT} plot1a
#
graph-2: coulomb-2
	./coul-2
	${GNUPLOT} plot2
#
# Type: make clean
# to remove executables, core files, object files, et cetera
#
clean:
	rm -f coul-1 coul-2 *.o *.bak *~ core *.stackdump *.exe
#
#  End of Makefile
