1 | # $HeadURL$ |
---|
2 | # $Date$ |
---|
3 | # $Revision$ |
---|
4 | # |
---|
5 | #- AA_make for ORCHIDEE_OL configuration |
---|
6 | #- This is the portable part of the main Makefile. AA_make toghether with machine |
---|
7 | #- dependent options in modipsl/util/AA_make.gdef and AA_make.ldef will form the |
---|
8 | #- complete Makefile. This Makefile will only call the Makefile of ORCHIDEE. |
---|
9 | #- |
---|
10 | #- Compile using one of the main targets. |
---|
11 | |
---|
12 | ### Main targets |
---|
13 | ############################################################################################# |
---|
14 | # Default method : Compiling ORCHIDEE library and offline executables with XIOS |
---|
15 | all : with_xios |
---|
16 | |
---|
17 | # without_xios : Compiling ORCHIDEE and IOIPSL. Do not compile or link to XIOS. |
---|
18 | without_xios : ioipsl driver verif |
---|
19 | |
---|
20 | # with_xios : Compiling ORCHIDEE, XIOS and IOIPSL. |
---|
21 | with_xios : xios ioipsl driver_xios verif |
---|
22 | |
---|
23 | |
---|
24 | # clean : Remove everything created during compilation including the executables |
---|
25 | clean : |
---|
26 | (cd ../../modeles/IOIPSL/src ; ${M_K} clean ; ) |
---|
27 | (cd ../../modeles/ORCHIDEE ; ./makeorchidee_fcm -clean ; ) |
---|
28 | (rm -rf ../../modeles/XIOS/bin/ ../../modeles/XIOS/inc ../../modeles/XIOS/obj ../../modeles/XIOS/lib ; ) |
---|
29 | (rm -f ../../bin/orchidee_ol ; rm -f ../../bin/teststomate ; rm -f ../../bin/forcesoil ; rm -f ../../bin/xios_server.exe ; ) |
---|
30 | |
---|
31 | ### Internal targets |
---|
32 | ############################################################################################# |
---|
33 | # xios : Only compiling XIOS (using fcm) |
---|
34 | xios : |
---|
35 | (cd ../../modeles/XIOS ; ./make_xios \ |
---|
36 | #-Q- ifort_CICLAD --netcdf_lib netcdf4_seq \ |
---|
37 | #-Q- gfortran_CICLAD --netcdf_lib netcdf4_seq \ |
---|
38 | --prod --arch ${FCM_ARCH} --job 8 ; cp bin/xios_server.exe ../../bin/. ; ) |
---|
39 | |
---|
40 | # ioipsl : Only compiling IOIPSL (standard Makefile) |
---|
41 | ioipsl : |
---|
42 | (cd ../../modeles/IOIPSL/src ; $(M_K) ; ) |
---|
43 | |
---|
44 | # driver : Only compiling ORCHIDEE without linking to XIOS (with fcm method) |
---|
45 | driver : |
---|
46 | (cd ../../modeles/ORCHIDEE ; ./makeorchidee_fcm -j 8 -parallel mpi -prod -arch ${FCM_ARCH} -driver ; ) |
---|
47 | |
---|
48 | # driver_xios : Only compiling ORCHIDEE and linking to XIOS 1.0 (with fcm method) |
---|
49 | # Note: For linking with XIOS 2.0 change -xios into -xios2 |
---|
50 | driver_xios : |
---|
51 | (cd ../../modeles/ORCHIDEE ; ./makeorchidee_fcm -xios2 -j 8 -parallel mpi -prod -arch ${FCM_ARCH} -driver ; ) |
---|
52 | |
---|
53 | |
---|
54 | |
---|
55 | # verif : List contents in executable directory |
---|
56 | verif: ../../bin |
---|
57 | ls -lrt ../../bin |
---|
58 | |
---|
59 | |
---|
60 | |
---|