9 |
# |
# |
10 |
|
|
11 |
FC=g77 |
FC=g77 |
12 |
DEFINES='-D_BYTESWAPIO -DWORDLENGTH=4' |
CC=gcc34 |
13 |
|
DEFINES='-D_BYTESWAPIO -DWORDLENGTH=4 -DNML_EXTENDED_F77' |
14 |
CPP='cpp -traditional -P' |
CPP='cpp -traditional -P' |
15 |
NOOPTFLAGS='-O0' |
NOOPTFLAGS='-O0' |
16 |
EXTENDED_SRC_FLAG='-ffixed-line-length-132' |
EXTENDED_SRC_FLAG='-ffixed-line-length-132' |
17 |
#MAKEDEPEND=/usr/X11R6/bin/gccmakedep |
GET_FC_VERSION="--version" |
18 |
#MAKEDEPEND=/usr/X11R6/bin/makedepend |
|
19 |
# For IEEE, use the "-ffloat-store" option |
# For IEEE, use the "-ffloat-store" option |
20 |
if test "x$IEEE" = x ; then |
if test "x$IEEE" = x ; then |
21 |
FFLAGS='-Wimplicit -Wunused -Wuninitialized' |
FFLAGS='-Wimplicit -Wunused -Wuninitialized' |
25 |
# FFLAGS="$FFLAGS -g -mfpmath=sse -msse -msse2 -fbounds-check" |
# FFLAGS="$FFLAGS -g -mfpmath=sse -msse -msse2 -fbounds-check" |
26 |
FOPTIM='-O0' |
FOPTIM='-O0' |
27 |
fi |
fi |
28 |
|
# for big objects: |
29 |
|
FFLAGS="$FFLAGS -fPIC" |
30 |
|
CFLAGS="-O0 -fPIC" |
31 |
|
|
32 |
if test -d /usr/include/netcdf-3 ; then |
if test -d /usr/include/netcdf-3 ; then |
33 |
#-- some FedoraCore standard location used to be "netcdf-3" |
#-- some FedoraCore standard location used to be "netcdf-3" |
45 |
LIBS='-L/usr/lib/netcdf-3' |
LIBS='-L/usr/lib/netcdf-3' |
46 |
fi |
fi |
47 |
fi |
fi |
48 |
elif test -d /usr/include/netcdf ; then |
elif test -d /usr/include/netcdf -o -f /usr/include/netcdf.h ; then |
49 |
#-- allows a "compat"(gcc 3.4) 2nd version of libs for g77 , next to the |
#-- allows a "compat"(gcc 3.4) 2nd version of libs for g77 , next to the |
50 |
# standard one (for gfortran, gcc 4.x). But uses same include files. |
# standard one (for gfortran, gcc 4.x). But uses same include files. |
51 |
INCLUDES='-I/usr/include/netcdf' |
if test -d /usr/include/netcdf ; then |
52 |
|
INCLUDES='-I/usr/include/netcdf' |
53 |
|
fi |
54 |
if test -d /usr/lib64/netcdf34 ; then |
if test -d /usr/lib64/netcdf34 ; then |
55 |
if test -f /usr/lib64/netcdf34/libnetcdf_g77.a ; then |
if test -f /usr/lib64/netcdf34/libnetcdf_g77.a ; then |
56 |
LIBS='-L/usr/lib64/netcdf34 -lnetcdf_g77' |
LIBS='-L/usr/lib64/netcdf34 -lnetcdf_g77' |