Changeset 1695 for trunk/LMDZ.COMMON/makelmdz
- Timestamp:
- Apr 17, 2017, 4:10:07 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.COMMON/makelmdz
r1661 r1695 401 401 CPP_KEY="$CPP_KEY INCA" 402 402 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}" 405 405 fi 406 406 … … 409 409 CPP_KEY="$CPP_KEY CPP_COUPLE" 410 410 INCLUDE="$INCLUDE -I${OASIS_INCDIR}" 411 LIB="$LIB -L${OASIS_LIBDIR} -lpsmile.${couple} -lmpp_io"411 LIB="$LIB -L${OASIS_LIBDIR} ${OASIS_LIB}" 412 412 fi 413 413 … … 472 472 then 473 473 474 INCLUDE="${INCLUDE} -I${ORCH_INCDIR}"474 INCLUDE="${INCLUDE} ${ORCHIDEE_INCDIR}" 475 475 CPP_KEY="$CPP_KEY CPP_VEGET" 476 476 # temporary, for Orchidee versions 1.9.* (before openmp activation) … … 483 483 orch_libs="sechiba parameters stomate parallel orglob" 484 484 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}" 491 486 elif [[ "$veget" != "false" ]] ; then 492 487 echo "Option -v $veget does not exist" … … 498 493 then 499 494 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}" 502 497 elif [[ $io == mix ]] 503 498 then 504 499 # For now, xios implies also using ioipsl 505 500 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}" 508 503 elif [[ $io == xios ]] 509 504 then 510 505 # For now, xios implies also using ioipsl 511 506 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}" 514 509 fi 515 510 … … 549 544 fi 550 545 551 546 # NETCDF library include/library paths 552 547 INCLUDE="$INCLUDE ${NETCDF_INCDIR}" 553 LIB="$LIB ${NETCDF_LIBDIR} "548 LIB="$LIB ${NETCDF_LIBDIR} ${NETCDF_LIB}" 554 549 555 550 ########################################################################
Note: See TracChangeset
for help on using the changeset viewer.