# Warning, this is a totally stupid Makefile that will not check for anything 
# nor take care if something goes wrong. I don't take any responsibility if it 
# will delete all your data or burn down your computer.
#
# makefile for simulation
#
#uncomment line according to your compiler
#COMP = g77
COMP = gfortran -std=legacy

all : MonteCarlo.f MonteCarloD.f CalSecDis.f
	$(COMP)  -o MonteCarlo MonteCarlo.f
	$(COMP)  -o MonteCarloD MonteCarloD.f
	$(COMP)  -o CalSecDis CalSecDis.f

clean :
	@ - rm {MonteCarlo,MonteCarloD,CalSecDis} >/dev/null 2>&1

install : 
	@ echo "copy binaries to /usr/local/bin"
	@ cp {MonteCarlo,MonteCarloD,CalSecDis} /usr/local/bin
