# # --------------------------------------------------------------------- # intel compiler on hexagon # --------------------------------------------------------------------- # # MACROS DESCRIPTIONS: # # FC: Fortran 90 compiler. # FCFFLAGS: Fortran 90 compilation flags. # CC: C compiler. # CCFLAGS: C compilation flags. # CPP: cpp preprocessor (may be implied by FC). # CPPFLAGS: cpp -D macro flags. # LD: Loader. # LDFLAGS: Loader flags. # EXTRALIBS: Extra local libraries (if any). # FC = mpiifort #INCLUDES = -I/cluster/software/netCDF-Fortran/4.4.4-intel-2017a-HDF5-1.8.18/include #FCFFLAGS = -traceback -g -O2 -fp-model source -warn nogeneral -convert big_endian -assume byterecl -real-size 64 -integer-size 32 FCFFLAGS = -g -convert big_endian -assume byterecl -cm -vec_report0 -w -O2 -r8 F90FLAGS = $(FCFFLAGS) #FCFFLAGS := $(FCFFLAGS) $(INCLUDES) CC = mpiicc CCFLAGS = -O -shared-intel -mcmodel=medium CPP = cpp -P CPPFLAGS = -DIA32 -DREAL8 -DSERIAL_IO -DTIMER -DFFTW -DMPI LD = $(FC) LDFLAGS = $(FCFFLAGS) -shared-intel -mcmodel=medium EXTRALIBS = -L${ESMF_LIB_DIR}/ -lesmf -lfftw3 -lmkl -lnetcdff -lnetcdf -lmpi -lmpifort # # --- generic make definitions # SHELL = /bin/sh RM = \rm -f # # rules. # .c.o: $(CC) $(CPPFLAGS) $(CCFLAGS) -c $*.c .f.o: $(FC) $(FCFFLAGS) -c $*.f .F.o: $(FC) $(CPPFLAGS) $(FCFFLAGS) -c $*.F