# generic gfortran compiler options for Ubuntu # NCDF_INC netcdf include file # NCDF_LIB netcdf library # FC Fortran compiler command # FCFLAGS Fortran compiler flags # FFLAGS Fortran 77 compiler flags # LD linker # LDFLAGS linker flags, e.g. -L if you have libraries in a # FPPFLAGS pre-processing flags # AR assembler # ARFLAGS assembler flags # MK make # USER_INC additional include files for the compiler, e.g. -I # USER_LIB additional libraries to pass to the linker, e.g. -l %NCDF_INC -I/usr/include %NCDF_LIB -L/usr/lib -lnetcdff %FC gfortran %FCFLAGS -fdefault-real-8 -O3 -funroll-all-loops -fcray-pointer -ffree-line-length-none %FFLAGS %FCFLAGS %LD gfortran %LDFLAGS %FPPFLAGS -P -C -traditional %AR ar %ARFLAGS -rs #%MK gmake %MK make %USER_INC %NCDF_INC %USER_LIB %NCDF_LIB