Ignore:
Timestamp:
Apr 17, 2017, 4:10:07 PM (8 years ago)
Author:
emillour
Message:

Common dynamics/framework:
Removed some obsolete arch files.
Reorganization of the way paths to external libraries are handles by makelmdz_fcm and makelmdz. This will ease interfacing with Dynamico which follows simillar rules with respect to a given external library ,e.g. for SOMELIBRARY, in the arch.path file:
SOMELIBRARY_LIBDIR="-L/path/to/the/library/libdir -L/possible/other/required/path"
SOMELIBRARY_LIB"-lsomelib -lsomeotherrequiredlib"
SOMELIBRARY_INCDIR"-I/path/to/the/library/incdir -I/possible/other/required/include/path"
EM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.COMMON/makelmdz

    r1661 r1695  
    401401   CPP_KEY="$CPP_KEY INCA"
    402402   INCLUDE="$INCLUDE -I${INCA_INCDIR}"
    403    LIB="$LIB -L${INCA_LIBDIR} -lchimie"
    404    libchimie=" -L${INCA_LIBDIR} -lchimie"
     403   LIB="$LIB -L${INCA_LIBDIR} ${INCA_LIB}"
     404   libchimie=" -L${INCA_LIBDIR} ${INCA_LIB}"
    405405fi
    406406
     
    409409   CPP_KEY="$CPP_KEY CPP_COUPLE"
    410410   INCLUDE="$INCLUDE -I${OASIS_INCDIR}"
    411    LIB="$LIB -L${OASIS_LIBDIR} -lpsmile.${couple} -lmpp_io"
     411   LIB="$LIB -L${OASIS_LIBDIR} ${OASIS_LIB}"
    412412fi
    413413
     
    472472then
    473473
    474    INCLUDE="${INCLUDE} -I${ORCH_INCDIR}"
     474   INCLUDE="${INCLUDE} ${ORCHIDEE_INCDIR}"
    475475   CPP_KEY="$CPP_KEY CPP_VEGET"
    476476# temporary, for Orchidee versions 1.9.* (before openmp activation)
     
    483483      orch_libs="sechiba parameters stomate parallel orglob"
    484484   fi
    485    LIB="${LIB} -L${ORCH_LIBDIR}"
    486    for lib in ${orch_libs} ; do
    487       if [ -f ${ORCH_LIBDIR}/lib${LIBPREFIX}$lib.a ] ; then
    488          LIB="${LIB} -l${LIBPREFIX}$lib "
    489       fi
    490    done
     485   LIB="${LIB} -L${ORCHIDEE_LIBDIR} ${ORCHIDEE_LIB}"
    491486elif [[ "$veget" != "false" ]] ; then
    492487   echo "Option -v $veget does not exist"
     
    498493then
    499494   CPP_KEY="$CPP_KEY CPP_IOIPSL"
    500    INCLUDE="$INCLUDE -I${IOIPSL_INCDIR}"
    501    LIB="$LIB -L${IOIPSL_LIBDIR} -l${LIBPREFIX}ioipsl"
     495   INCLUDE="$INCLUDE ${IOIPSL_INCDIR}"
     496   LIB="$LIB -L${IOIPSL_LIBDIR} ${IOIPSL_LIB}"
    502497elif [[ $io == mix ]]
    503498then
    504499   # For now, xios implies also using ioipsl
    505500   CPP_KEY="$CPP_KEY CPP_IOIPSL CPP_XIOS"
    506    INCLUDE="$INCLUDE -I${IOIPSL_INCDIR} -I${XIOS_INCDIR}"
    507    LIB="$LIB -L${IOIPSL_LIBDIR} -l${LIBPREFIX}ioipsl -L${XIOS_LIBDIR} -l${LIBPREFIX}stdc++ -l${LIBPREFIX}xios"
     501   INCLUDE="$INCLUDE ${IOIPSL_INCDIR} ${XIOS_INCDIR}"
     502   LIB="$LIB -L${IOIPSL_LIBDIR} ${IOIPSL_LIB} ${XIOS_LIBDIR} ${XIOS_LIB}"
    508503elif [[ $io == xios ]]
    509504then
    510505   # For now, xios implies also using ioipsl
    511506   CPP_KEY="$CPP_KEY CPP_IOIPSL CPP_XIOS CPP_IOIPSL_NO_OUTPUT"
    512    INCLUDE="$INCLUDE -I${IOIPSL_INCDIR} -I${XIOS_INCDIR}"
    513    LIB="$LIB -L${IOIPSL_LIBDIR} -l${LIBPREFIX}ioipsl -L${XIOS_LIBDIR} -l${LIBPREFIX}stdc++ -l${LIBPREFIX}xios"
     507   INCLUDE="$INCLUDE ${IOIPSL_INCDIR} ${XIOS_INCDIR}"
     508   LIB="$LIB ${IOIPSL_LIBDIR} ${IOIPSL_LIB} ${XIOS_LIBDIR} ${XIOS_LIB}"
    514509fi
    515510
     
    549544fi
    550545
    551 
     546# NETCDF library include/library paths
    552547INCLUDE="$INCLUDE ${NETCDF_INCDIR}"
    553 LIB="$LIB ${NETCDF_LIBDIR}"
     548LIB="$LIB ${NETCDF_LIBDIR} ${NETCDF_LIB}"
    554549
    555550########################################################################
Note: See TracChangeset for help on using the changeset viewer.