Changeset 4426 for LMDZ6/trunk/makelmdz


Ignore:
Timestamp:
Feb 9, 2023, 5:27:51 PM (23 months ago)
Author:
Laurent Fairhead
Message:

Travail de fermeture du ticket #115: harmonisation des LIBDIR INCDIR dans les arch

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ6/trunk/makelmdz

    r4408 r4426  
    374374then
    375375   CPP_KEY="$CPP_KEY INCA"
    376    INCLUDE="$INCLUDE -I${INCA_INCDIR}"
    377    LIB="$LIB -L${INCA_LIBDIR} -lchimie"
    378    libchimie=" -L${INCA_LIBDIR} -lchimie"
     376   INCLUDE="$INCLUDE ${INCA_INCDIR}"
     377   LIB="$LIB ${INCA_LIBDIR} ${INCA_LIB}"
     378   libchimie=" ${INCA_LIBDIR} ${INCA_LIB}"
    379379fi
    380380
     
    382382then
    383383   CPP_KEY="$CPP_KEY CPP_COUPLE"
    384    INCLUDE="$INCLUDE -I${OASIS_INCDIR}"
    385    LIB="$LIB -L${OASIS_LIBDIR} -lpsmile.${couple} -lmpp_io"
     384   INCLUDE="$INCLUDE ${OASIS_INCDIR}"
     385   LIB="$LIB ${OASIS_LIBDIR} ${OASIS_LIB}"
    386386fi
    387387
     
    446446then
    447447
    448    INCLUDE="${INCLUDE} -I${ORCH_INCDIR}"
     448   INCLUDE="${INCLUDE} ${ORCH_INCDIR}"
    449449   CPP_KEY="$CPP_KEY CPP_VEGET"
    450450# temporary, for Orchidee versions 1.9.* (before openmp activation)
     
    453453   fi
    454454   if [[ "$veget" == "orchidee2.0" ]] ; then
    455       orch_libs="sechiba parameters stomate parallel orglob orchidee"
     455      orch_libs="-lsechiba -lparameters -lstomate -lparallel -lorglob -lorchidee"
    456456      CPP_KEY="$CPP_KEY ORCHIDEE_NOUNSTRUCT"
    457457   elif [[ "$veget" == "orchidee2.1" ]] ; then
    458458      CPP_KEY="$CPP_KEY ORCHIDEE_NOLIC"
    459       orch_libs="sechiba parameters stomate parallel orglob orchidee"
     459      orch_libs="-lsechiba -lparameters -lstomate -lparallel -lorglob -lorchidee"
    460460   elif [[ "$veget" == "orchideetrunk" ]] ; then
    461       orch_libs="orchidee"
     461      orch_libs="-lorchidee"
    462462   else
    463       orch_libs="sechiba parameters stomate parallel orglob"
     463      orch_libs="-lsechiba -lparameters -lstomate -lparallel -lorglob"
    464464   fi
    465    LIB="${LIB} -L${ORCH_LIBDIR}"
    466    for lib in ${orch_libs} ; do
    467       if [ -f ${ORCH_LIBDIR}/lib${LIBPREFIX}$lib.a ] ; then
    468          LIB="${LIB} -l${LIBPREFIX}$lib "
    469       fi
    470    done
     465   LIB="${LIB} ${ORCH_LIBDIR} ${orch_libs}"
     466#   for lib in ${orch_libs} ; do
     467#      if [ -f ${ORCH_LIBDIR}/lib${LIBPREFIX}$lib.a ] ; then
     468#         LIB="${LIB} -l${LIBPREFIX}$lib "
     469#      fi
     470#   done
    471471elif [[ "$veget" != "false" ]] ; then
    472472   echo "Option -v $veget does not exist"
     
    479479then
    480480   CPP_KEY="$CPP_KEY CPP_IOIPSL"
    481    INCLUDE="$INCLUDE -I${IOIPSL_INCDIR}"
    482    LIB="$LIB -L${IOIPSL_LIBDIR} -l${LIBPREFIX}ioipsl"
     481   INCLUDE="$INCLUDE ${IOIPSL_INCDIR}"
     482   LIB="$LIB ${IOIPSL_LIBDIR} -l${LIBPREFIX}ioipsl"
    483483elif [[ $io == mix ]]
    484484then
    485485   # For now, xios implies also using ioipsl
    486486   CPP_KEY="$CPP_KEY CPP_IOIPSL CPP_XIOS"
    487    INCLUDE="$INCLUDE -I${IOIPSL_INCDIR} -I${XIOS_INCDIR}"
    488    LIB="$LIB -L${IOIPSL_LIBDIR} -l${LIBPREFIX}ioipsl -L${XIOS_LIBDIR} -l${LIBPREFIX}stdc++ -l${LIBPREFIX}xios -l${LIBPREFIX}stdc++"
     487   INCLUDE="$INCLUDE ${IOIPSL_INCDIR} ${XIOS_INCDIR}"
     488   LIB="$LIB ${IOIPSL_LIBDIR} -l${LIBPREFIX}ioipsl ${XIOS_LIBDIR} -l${LIBPREFIX}stdc++ -l${LIBPREFIX}xios -l${LIBPREFIX}stdc++"
    489489elif [[ $io == xios ]]
    490490then
    491491   # For now, xios implies also using ioipsl
    492492   CPP_KEY="$CPP_KEY CPP_IOIPSL CPP_XIOS CPP_IOIPSL_NO_OUTPUT"
    493    INCLUDE="$INCLUDE -I${IOIPSL_INCDIR} -I${XIOS_INCDIR}"
    494    LIB="$LIB -L${IOIPSL_LIBDIR} -l${LIBPREFIX}ioipsl -L${XIOS_LIBDIR} -l${LIBPREFIX}stdc++ -l${LIBPREFIX}xios -l${LIBPREFIX}stdc++"
     493   INCLUDE="$INCLUDE ${IOIPSL_INCDIR} ${XIOS_INCDIR}"
     494   LIB="$LIB ${IOIPSL_LIBDIR} -l${LIBPREFIX}ioipsl ${XIOS_LIBDIR} -l${LIBPREFIX}stdc++ -l${LIBPREFIX}xios -l${LIBPREFIX}stdc++"
    495495fi
    496496
     
    557557
    558558INCLUDE="$INCLUDE ${NETCDF_INCDIR}"
    559 LIB="$LIB ${NETCDF_LIBDIR}"
     559LIB="$LIB ${NETCDF_LIBDIR} ${NETCDF_LIB}"
    560560
    561561########################################################################
Note: See TracChangeset for help on using the changeset viewer.