Changeset 1547


Ignore:
Timestamp:
2009-07-28T12:08:02+02:00 (12 years ago)
Author:
rblod
Message:

Add external directory to be able to compiler IO_SERVER with or without fcm, see ticket #497

Location:
trunk
Files:
10 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/UTIL/fait_AA_make

    r1412 r1547  
    3535if [ "$stringtest" ]; then 
    3636   echo 'aliasing echo with /bin/echo -e ...' 
    37    alias echo='/bin/echo -e' 
     37   alias echo='echo -e' 
    3838fi 
    3939 
     
    6666      @if [ ! -d ../../../lib/oce ] ; then mkdir ../../../lib/oce ; fi 
    6767 
    68 \$(EXEC_BIN) : libioipsl libioserver firstagrif mpiagrif key keyverif src_file_list libagrif \$(MODEL_LIB) \$(IOIPSL_LIB) \$(AGRIF_LIB) agrif2model.o model.o 
     68\$(EXEC_BIN) : libioipsl libioserver firstagrif mpiagrif key keyverif src_file_list libagrif \$(MODEL_LIB) \$(IOIPSL_LIB) \$(AGRIF_LIB) agrif2model.o model.o  
    6969ifeq (\$(AGRIF),use) 
    7070      \$(F_L) \$(L_X) -o \$(EXEC_BIN) model.o agrif2model.o \$(SXMODEL_LIB) \$(USER_LIB) \$(IOIPSL_LIB) \$(AGRIF_LIB) \$(NCDF_LIB) \$(LIBMPI) \$(LIBMP) 
     
    7676libioserver : 
    7777ifeq (\$(IOSERVER),use) 
     78ifeq (\$(FCM),use) 
    7879   (cd ../../XMLF90; ./configure -arch \$(FCM_ARCH); fcm build; mkdir -p ../../lib/libxmlio_server  ; cd ../../lib/libxmlio_server ; ln -sf ../../modeles/XMLF90/lib/*.a .; ln -sf ../../modeles/XMLF90/inc/*.mod .) 
    7980   (cd ../../XMLIO_SERVER; ./configure -arch \$(FCM_ARCH); fcm build ; cd ../../lib/libxmlio_server ; ln -sf ../../modeles/XMLIO_SERVER/lib/*.a . ; ln -sf ../../modeles/XMLIO_SERVER/inc/* . ; cd ../../bin ; ln -sf ../modeles/XMLIO_SERVER/bin/server.exe ioserver) 
     81else 
     82   (cd ../../XMLF90 ; \$(M_K) -f Makefile ) 
     83   (cd ../../XMLIO_SERVER ; \$(M_K) -f Makefile P_P="\$(IOSERVER_MPI)" ) 
     84endif 
    8085endif 
    8186 
     
    298303echo 'override USER_LIB += -L../../../lib/libxmlio_server -lioserver -lxmlio -lxmlf90' 
    299304echo 'override USER_INC += -I../../../lib/libxmlio_server' 
     305echo 'ifneq (,$(findstring key_mpp_mpi,$(P_P)))' 
     306echo 'IOSERVER_MPI=' 
     307echo 'else' 
     308echo 'IOSERVER_MPI=-DNO_MPI' 
     309echo 'endif' 
    300310echo 'else' 
    301311echo 'IOSERVER=notuse' 
    302312echo 'endif' 
     313echo '' 
     314 
     315echo '# A variables related to xmlioserver compilationi (fcm or AA_make)' 
     316echo '# Please do not change ' 
     317echo 'override FCM += notuse' 
    303318 
    304319echo '' 
Note: See TracChangeset for help on using the changeset viewer.