# A Makefile example. # Note that the names of compilers and Makefile variables # (macro names) are not standardized. OBJS = myprog.o # Name of your compiler FC = ifort # Compiler options FFLAGS = -O3 myprog: $(OBJS) $(FC) -o $@ $(FFLAGS) $(OBJS) clean: rm -f myprog *.o # Some make-programs do not know about the f90 suffix, # so we may have to add a rule for how to produce # an object file (.o) from a Fortran90 file (.f90). .SUFFIXES: .f90 .f90.o: $(FC) -c $(FFLAGS) $<