# $HeadURL$ # $Date$ # $Revision$ # #- AA_make for ORCHIDEE_OL configuration #- This is the portable part of the main Makefile. AA_make toghether with machine #- dependent options in modipsl/util/AA_make.gdef and AA_make.ldef will form the #- complete Makefile. This Makefile will only call the Makefile of ORCHIDEE. #- #- Compile using one of the main targets. ### Main targets ############################################################################################# # Default method : Compiling ORCHIDEE library and offline executables with XIOS all : with_xios # without_xios : Compiling ORCHIDEE and IOIPSL. Do not compile or link to XIOS. without_xios : ioipsl driver verif # with_xios : Compiling ORCHIDEE, XIOS and IOIPSL. with_xios : xios ioipsl driver_xios verif # clean : Remove everything created during compilation including the executables clean : (cd ../../modeles/IOIPSL/src ; ${M_K} clean ; ) (cd ../../modeles/ORCHIDEE ; ./makeorchidee_fcm -clean ; ) (rm -rf ../../modeles/XIOS/bin/ ../../modeles/XIOS/inc ../../modeles/XIOS/obj ../../modeles/XIOS/lib ; ) (rm -f ../../bin/orchidee_ol ; rm -f ../../bin/teststomate ; rm -f ../../bin/forcesoil ; rm -f ../../bin/xios_server.exe ; ) ### Internal targets ############################################################################################# # xios : Only compiling XIOS (using fcm) xios : (cd ../../modeles/XIOS ; ./make_xios \ #-Q- ifort_CICLAD --netcdf_lib netcdf4_seq \ #-Q- gfortran_CICLAD --netcdf_lib netcdf4_seq \ --prod --arch ${FCM_ARCH} --job 8 ; cp bin/xios_server.exe ../../bin/. ; ) # ioipsl : Only compiling IOIPSL (standard Makefile) ioipsl : (cd ../../modeles/IOIPSL/src ; $(M_K) ; ) # driver : Only compiling ORCHIDEE without linking to XIOS (with fcm method) driver : (cd ../../modeles/ORCHIDEE ; ./makeorchidee_fcm -j 8 -parallel mpi -prod -arch ${FCM_ARCH} -driver ; ) # driver_xios : Only compiling ORCHIDEE and linking to XIOS 1.0 (with fcm method) # Note: For linking with XIOS 2.0 change -xios into -xios2 driver_xios : (cd ../../modeles/ORCHIDEE ; ./makeorchidee_fcm -xios2 -j 8 -parallel mpi -prod -arch ${FCM_ARCH} -driver ; ) # verif : List contents in executable directory verif: ../../bin ls -lrt ../../bin