# # --------------------------------------------------------------------- # common definitions for Intel Linux/IFC, MPI, real*8 # --------------------------------------------------------------------- # # 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 FC = ftn #FCFFLAGS = -g -convert big_endian -assume byterecl -cm -vec_report0 -w -xCORE-AVX2 -O2 -no-pre-div -qopt-prefetch -auto-p32 -no-ansi-alias -qopt-mem-layout-trans=2 -r8 #FCFFLAGS = -r8 -O2 -g -w -traceback -convert big_endian -shared-intel -mcmodel=medium -assume byterecl FCFFLAGS = -g -convert big_endian -assume byterecl -cm -vec_report0 -w -O2 -r8 -mcmodel=small F90FLAGS = $(FCFFLAGS) #CC = mpiicc CC = cc CCFLAGS = -O -shared-intel -mcmodel=small CPP = cpp -P CPPFLAGS = -DIA32 -DREAL8 -DSERIAL_IO -DTIMER -DFFTW -DMPI #CPPFLAGS = -DIA64 -DREAL8 -DSERIAL_IO -DTIMER -DFFTW -DMPI -DSGI -DENDIAN_IO LD = $(FC) LDFLAGS = $(FCFFLAGS) -shared-intel -mcmodel=small EXTRALIBS = #EXTRALIBS = -mkl=parallel -lfftw3 -lgsl -lnetcdff -lnetcdf -lmpi # # --- 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