# Purpose # ------- # Makefile macros for a typical Linux/UNIX platform. # # Usage # ----- # The values of the following variables must be set: # # CPP Preprocessor # CPPFLAGS Options to pass to the preprocessor # # FC Fortran compiler # F90 Fortran 90 compiler # FFLAGS Options to pass to the Fortran compiler # F90FLAGS Options to pass to the Fortran 90 compiler # FIXEDFLAGS Options to pass to the Fortran 90 compiler for fixed-format # source files # # AUTO Auto-parallelising compiler (if available) # AUTOFLAGS Options to pass to the auto-parallelising compiler # # INC The directory containing the netCDF header file # LIB The directories containing the netCDF and FFTW libraries # (note that Mk3L is only compatible with FFTW 2.x) # # History # ------- # 2008 Nov 20 Steven Phipps Original version # 2008 Nov 22 Steven Phipps Adding specific compile options for Intel Core # Duo and Core 2 Duo processors CPP = fpp CPPFLAGS = FC = ifort F90 = $(FC) FFLAGS = -fpe0 -openmp -align dcommons -r8 -warn nouncalled # Generic #FFLAGS = -xP -fpe0 -openmp -align dcommons -r8 -warn nouncalled # Core Duo #FFLAGS = -xT -fpe0 -openmp -align dcommons -r8 -warn nouncalled # Core 2 Duo F90FLAGS = $(FFLAGS) FIXEDFLAGS = $(FFLAGS) -fixed AUTO = $(FC) AUTOFLAGS = $(FFLAGS) INC = -I/usr/local/include LIB = -L/usr/local/lib