# This file compiles the listed files when the command 'make' is typed.
# The compiled program is started by typing 'start'  

# Compiler option
#F=gfortran
F=g77


complens: ./src/complens.f ./src/vector.f ./src/grid.f ./src/matrix.f \
	./src/hosthalo.f ./src/subhalo.f ./src/sub.f \
	./src/cosmology.f ./src/alpha.f ./src/image.f \
	./src/interface.f ./src/trimstr.f ./src/prog.f \
	./src/cosmo.f ./src/recipes.f
	$(F) ./src/complens.f ./src/vector.f ./src/grid.f ./src/matrix.f \
	./src/hosthalo.f ./src/subhalo.f ./src/sub.f \
	./src/cosmology.f ./src/alpha.f ./src/image.f \
	./src/interface.f ./src/trimstr.f ./src/prog.f \
	./src/cosmo.f ./src/recipes.f\
  -o complens

simsource: ./src/simsource.f ./src/trimstr.f ./src/prog.f
	$(F) ./src/simsource.f ./src/trimstr.f ./src/prog.f \
  -o simsource 

plotg: ./src/plotg.f ./src/prog.f ./src/trimstr.f ./src/cosmo.f \
	./src/recipes.f
	$(F) ./src/plotg.f ./src/prog.f ./src/trimstr.f ./src/cosmo.f \
	./src/recipes.f \
        -o plotg -L/usr/X11R6/lib -lX11 \
        -L/afs/physto.se/snova/dsk03/software/i386_redhat73/lib/ -lpgplot

sisinfo: ./src/sisinfo.f ./src/trimstr.f ./src/cosmo.f ./src/recipes.f \
	./src/prog.f ./src/cosmology.f
	$(F) ./src/sisinfo.f ./src/trimstr.f ./src/cosmo.f ./src/recipes.f \
	./src/prog.f ./src/cosmology.f \
  -o sisinfo 
