# Simple Makefile # - Basement Supercomputing (c) Copyright 2007 # # Set Fortran compiler e.g. # G77 or Gfortran for GNU # pgf90 for Portland Group FC=gfortran # Set Fortran Flags FFLAGS= -O2 # Set library path if needed LIBPATH= # Set libraries if needed LIBS= # Set the source files DEPS = mm.f # Set the object files OBJ = mm.o # Make rules follow %.o: %.f $(DEPS) $(FC) $(FFLAGS) -c -o $@ $< mm: $(OBJ) $(FC) $(FFLAGS) -o $@ $^ $(LIBPATH) $(LIBS) clean: /bin/rm -f mm mm.o # Command line version # # gfortran -o mm mm.f