EXEC=. SRC = ocean.f MAIN.f OBJ = ${SRC:.f=.o} FC = ifort LDFLAGS = #LIBS = -L$(MKL) -lmkl LIBS = -L$(MKL) -lmkl_core -L/nwprod/lib -lw3nco_d CMD = $(EXEC)/gfdl_ocean_eastpac FFLAGS = -fpe0 -safe_cray_ptr -O3 -fp-model strict -i4 -convert big_endian .SUFFIXES: .o .f .f90 .f.o: $(FC) $(FFLAGS) -c $*.f # Lines from here on down should not need to be changed. They are the # actual rules which make uses to build field. # all: $(CMD) $(CMD): $(OBJ) $(FC) $(FFLAGS) -o $(@) $(OBJ) $(LIBS) clean: rm -f $(OBJ) *.mod