[Dart-dev] [5677] DART/branches/development/mkmf: fix the 'debugging' line in the gfortran mkmf to include the
nancy at ucar.edu
nancy at ucar.edu
Mon Apr 9 14:39:58 MDT 2012
Revision: 5677
Author: nancy
Date: 2012-04-09 14:39:57 -0600 (Mon, 09 Apr 2012)
Log Message:
-----------
fix the 'debugging' line in the gfortran mkmf to include the
flag that allows > 132 length lines. also set it in the default
template and include comments about how to set NETCDF.
Modified Paths:
--------------
DART/branches/development/mkmf/mkmf.template
DART/branches/development/mkmf/mkmf.template.gfortran
-------------- next part --------------
Modified: DART/branches/development/mkmf/mkmf.template
===================================================================
--- DART/branches/development/mkmf/mkmf.template 2012-04-09 17:50:48 UTC (rev 5676)
+++ DART/branches/development/mkmf/mkmf.template 2012-04-09 20:39:57 UTC (rev 5677)
@@ -71,9 +71,15 @@
MPILD = mpif90
FC = gfortran
LD = gfortran
-NETCDF = /contrib
+
+# if $NETCDF in your environment is set to the location of the
+# include and lib directories, you are ok. otherwise set the
+# next line to the location and uncomment it.
+# NETCDF = /usr/local
+
INCS = ${NETCDF}/include
-FFLAGS = -O2 -I$(INCS)
-LIBS = -L${NETCDF}/lib -lnetcdf
+FFLAGS = -O2 -I$(INCS) -ffree-line-length-none
+
+LIBS = -L${NETCDF}/lib -lnetcdf -lnetcdff
LDFLAGS = -I$(INCS) $(LIBS)
Modified: DART/branches/development/mkmf/mkmf.template.gfortran
===================================================================
--- DART/branches/development/mkmf/mkmf.template.gfortran 2012-04-09 17:50:48 UTC (rev 5676)
+++ DART/branches/development/mkmf/mkmf.template.gfortran 2012-04-09 20:39:57 UTC (rev 5677)
@@ -95,7 +95,7 @@
FFLAGS = -O2 $(INCS) -ffree-line-length-none
LDFLAGS = $(FFLAGS) $(LIBS)
-#FFLAGS = -O0 -fbounds-check -frecord-marker=4 -ffpe-trap=invalid $(INCS)
+#FFLAGS = -O0 -fbounds-check -frecord-marker=4 -ffpe-trap=invalid -ffree-line-length-none $(INCS)
# The following libraries are commonly needed if netCDF4 was built with HDF5 support.
#LIBS = -L${NETCDF}/lib -lnetcdf -lcurl -lhdf5_hl -lhdf5 -lz -lm
More information about the Dart-dev
mailing list