Ignore:
Timestamp:
Mar 20, 2014, 10:57:19 AM (10 years ago)
Author:
Laurent Fairhead
Message:

Merged trunk changes r1920:1997 into testing branch

Location:
LMDZ5/branches/testing
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • LMDZ5/branches/testing

  • LMDZ5/branches/testing/create_make_gcm

    r1910 r1999  
    55#set -xv
    66
    7 rm -f create_make_gcm.log
    87
    98machine=`hostname`
    109os=`uname`
    1110gcm=`pwd`
     11logfile=$gcm/create_make_gcm.log
     12rm -f $logfile ; touch -f $logfile
    1213libf=$gcm/libf
    1314libo=$gcm/libo
     
    4849echo "LOCAL_DIR=`echo $localdir`"
    4950echo 'BIBIO    = $(LIBF)/bibio'
     51echo 'DYN3D_COMMON   = $(LIBF)/dyn3d_common'
    5052echo "FILTRE   = filtre"
    5153echo "PHYS  = "
     
    6769echo 'L_PHY = -lphy$(PHYS) '
    6870echo 'L_BIBIO    = -lbibio'
     71echo 'L_DYN3D_COMMON    = -ldyn3d_common'
    6972echo 'L_ADJNT    ='
    7073echo 'L_COSP     = -lcosp'
     
    9295echo
    9396#echo 'main : chimie $(DYN) bibio phys $(OPTION_DEP) '
    94 echo 'main : $(DYN) bibio phys $(OPTION_DEP) '
     97echo 'main : $(DYN) bibio dyn3d_common phys $(OPTION_DEP) '
    9598echo '  cd $(LIBO) ; $(RANLIB) lib*.a ; cd $(GCM) ;\'
    9699echo '  cd $(LOCAL_DIR); \'
    97100echo '  $(COMPILE90) $(LIBF)/$(DIRMAIN)/$(SOURCE) -o $(PROG).o ; \'
    98 echo '  $(LINK) $(PROG).o -L$(LIBO) $(L_DYN) $(L_ADJNT) $(L_COSP) $(L_PHY) $(L_DYN) $(L_BIBIO) $(L_DYN) $(L_FILTRE) $(OPLINK) $(OPTION_LINK) -o $(LOCAL_DIR)/$(PROG).e ; $(RM) $(PROG).o '
     101echo '  $(LINK) $(PROG).o -L$(LIBO) $(L_DYN) $(L_ADJNT) $(L_COSP) $(L_PHY) $(L_DYN) $(L_DYN3D_COMMON) $(L_BIBIO) $(L_DYN3D_COMMON) $(L_PHY) $(L_DYN) $(L_FILTRE) $(OPLINK) $(OPTION_LINK) -o $(LOCAL_DIR)/$(PROG).e ; $(RM) $(PROG).o '
    99102echo
    100103echo 'dyn : $(LIBO)/libdyn$(DIM)d$(FLAG_PARA).a $(FILTRE)$(DIM)d'
     
    105108echo
    106109echo 'bibio : $(LIBO)/libbibio.a'
     110echo
     111echo 'dyn3d_common : $(LIBO)/libdyn3d_common.a'
    107112echo
    108113echo 'adjnt : $(LIBO)/libadjnt.a'
     
    140145      done
    141146      echo
    142       echo $listlib >> create_makeg_gcm.log
     147      echo $listlib >> $logfile
    143148      echo
    144149      echo "#=================================================================="
     
    173178##########################################################################
    174179
    175          for stri in ` ( sed -e '/^[cC\!]/d' $trufile | sed -n "/\#include/s/\#include//p" | sed 's/\"//g' ; sed -e '/^[cC\!]/d' $trufile | egrep -i '^ *use ' | sed -e 's/,/ /' | awk ' { print $2 } ' ) ` ; do
    176             echo $trufile $fili $stri >> create_make_gcm.log
     180         for stri in ` ( sed -e '/^[cC\!]/d' $trufile | sed -e "/\#include /s/\#include /XXnclude /" -e "/include /s/include /XXnclude /" -e "/INCLUDE /s/INCLUDE /XXnclude /" | sed -n "/XXnclude /s/XXnclude//p" | sed 's/\"//g' | sort | uniq ; sed -e '/^[cC\!]/d' $trufile | egrep -i '^ *use ' | sed -e 's/,/ /' | awk ' { print $2 } ' | sort | uniq ) ` ; do
     181            echo $trufile $fili $stri >> $logfile
    177182            strj=`echo $stri | tr [A-Z] [a-z]`
    178183            str2=""
    179             for dirinc in filtrez bibio grid dyn3d phydev $diri $diri/*/ ; do
     184            for dirinc in filtrez bibio dyn3d_common grid dyn3d phydev $diri $diri/*/ ; do
    180185# Recherche dans l'ordre hierarchique inverse car seule la derniere
    181186# ligne est conservee
     
    187192                   libstr=$dirinc
    188193               fi
     194               echo dirinc $dirinc >> $logfile
    189195               if [ -f $dirinc/$stri ] ; then
    190196                  str2='$(LIBF)/'$dirstr/$stri
     
    198204                  str2='$(LIBO)/lib'$strlib'.a('$stri'.o)'
    199205               fi
     206               echo stri $stri  >> $logfile
     207               echo str2 $str2  >> $logfile
    200208            done
     209               echo dernier str2 $str2  >> $logfile
    201210            if [ "$str2" = "" ] ; then
    202                echo Warn: Include $diri $trufile $fili $stri pas trouve >> $gcm/create_make_gcm.log
     211               echo Warn: Include $diri $trufile $fili $stri pas trouve >> $logfile
    203212            elif [ "$str2" = "$str1" ] ; then
    204                echo Warn: Include $diri $trufile $fili $stri $str1 trouve 2x >> $gcm/create_make_gcm.log
     213               echo Warn: Include $diri $trufile $fili $stri $str1 trouve 2x >> $logfile
    205214            else
    206215               echo $str1 \\
Note: See TracChangeset for help on using the changeset viewer.