F90=gfortran #F95=pgf95 F95=gfortran FFLAGS=-g -fbounds-check -Wall -fimplicit-none -pedantic -std=f95 -fdefault-double-8 -fdefault-real-8 VERSION=1.2 # Whenever you add a module, add the .o here and run make depend SPACE_MODULES=num_type.o stats.o share.o space_pars.o data_lib.o error.o read_sp_ll.o utils.o\ read_GCOG.o func_poly.o make_model.o minimize.o \ uncertains2.o interfaces.o fit_cont.o space.o write_res.o %.o: %.f95 $(F95) $(FFLAGS) -c $< %.o: %.f90 $(F90) $(FFLAGS) -c $< # as long as we don't have the dependencies of the modules, we just # dump all the sources into the builder SPACE: $(SPACE_MODULES) $(F95) $(FFLAGS) $^ -o SPACE clean: rm -f *.o *.mod binary: $(SPACE_MODULES) $(F95) -static $(FFLAGS) $^ -o SPACE-static install: SPACE binary dist cp SPACE ../bin cp SPACE-static ../data/SPACE-$(VERSION) cp SPACE-$(VERSION).tar.gz ../data/ depend: perl sfmakedepend *.f95 dist: tar -cvzf SPACE-$(VERSION).tar.gz *.f95 README COPYING # DO NOT DELETE THIS LINE - used by make depend