# # --------------------------------------------------------------------------- # common definitions for Intel Fortran and MPI, small memory, real*8 # -fp-model source to maintain bit for bit equality for all NMPI values # On IBM iDATAPlex, use the mpi/intel/impi module # Emulate SGI Altix ICE on IBM iDataPlex using -xSSE4.2 # version that uses Serial I/O for HYCOM # --------------------------------------------------------------------------- # # 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 = ifort INCLUDES = -I/site/applic/netcdf/4.1.3-intel/include FCFFLAGS = -traceback -xSSE4.2 -O3 -fp-model source -r8 -warn nogeneral -mcmodel=small $(INCLUDES) -L/site/applic/netcdf/4.1.3-intel/lib -lnetcdf -lnetcdff #FCFFLAGS = -traceback -xSSE4.2 -O3 -fp-model source -r8 -warn nogeneral -mcmodel=small CC = icc CCFLAGS = -traceback -xSSE4.2 -O -mcmodel=small CPP = cpp -P CPPFLAGS = -DIA32 -DREAL8 -DSERIAL_IO -DENDIAN_IO -DTIMER -DRELO -DRASSELINUV LD = $(FC) LDFLAGS = -V $(FCFFLAGS) -static-intel EXTRALIBS = # # --- 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