Ignore:
Timestamp:
Jun 23, 2014, 10:35:34 AM (10 years ago)
Author:
jghattas
Message:

Updated all compile envrionement with r2064 from the trunk.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ5/branches/LMDZ5-DOFOCO/create_make_gcm

    r1714 r2071  
    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
     
    4243echo 'LIBF    = $(GCM)/libf'
    4344if [ "$CRAY" = '0' ] ; then
    44 #   echo 'LIBO    = $(GCM)/libo/$(MACHINE)'
    4545   echo 'LIBO    = $(LIBOGCM)/$(MACHINE)'
    4646else
    4747   echo 'LIBO    = $(GCM)/libo'
    4848fi
    49 #echo 'LOCAL_DIR=$(GCM)'
    50 #echo $localdir
    5149echo "LOCAL_DIR=`echo $localdir`"
    5250echo 'BIBIO    = $(LIBF)/bibio'
    5351echo "FILTRE   = filtre"
    5452echo "PHYS  = "
    55 echo "DYN  = dyn "
    5653echo 'LIBPHY = $(LIBO)/libphy$(PHYS).a'
    5754echo 'DIRMAIN=dyn$(DIM)d$(FLAG_PARA)'
     
    6158echo
    6259echo '# Les differentes librairies pour l"edition des liens:'
    63 echo
    64 echo 'dyn3d            = $(LIBO)/libdyn3d.a $(LIBO)/lib$(FILTRE).a'
    65 echo 'dyn3dpar      = $(LIBO)/libdyn3dpar.a $(LIBO)/lib$(FILTRE).a'
    66 echo 'dyn2d            = $(LIBO)/libdyn2d.a'
    67 echo 'dyn1d            = $(LIBO)/libdyn1d.a'
    68 echo 'L_DYN      = -ldyn$(DIM)d$(FLAG_PARA)'
     60echo 'L_DYN      = -ldyn$(DIM)d$(FLAG_PARA) -ldyn3d_common'
    6961echo 'L_FILTRE   = -l$(FILTRE)'
    7062echo 'L_PHY = -lphy$(PHYS) '
     
    9385echo
    9486echo "PROG = code"
     87echo 'DYN  = dyn$(DIM)d'
    9588echo
    9689#echo 'main : chimie $(DYN) bibio phys $(OPTION_DEP) '
     
    9992echo '  cd $(LOCAL_DIR); \'
    10093echo '  $(COMPILE90) $(LIBF)/$(DIRMAIN)/$(SOURCE) -o $(PROG).o ; \'
    101 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 '
    102 echo
    103 echo 'dyn : $(LIBO)/libdyn$(DIM)d$(FLAG_PARA).a $(FILTRE)$(DIM)d'
     94echo '  $(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 '
    10495echo
    10596echo 'phys : $(LIBPHY)'
     97echo 'dyn3d : $(LIBO)/libdyn$(DIM)d$(FLAG_PARA).a $(LIBO)/lib$(FILTRE).a $(LIBO)/libdyn3d_common.a'
     98echo 'dyn2d : $(LIBO)/libdyn2d.a'
     99echo 'dyn1d :'
     100echo
    106101echo
    107102#echo 'chimie : $(LIBO)/libchimie.a'
     
    143138      done
    144139      echo
    145       echo $listlib >> create_makeg_gcm.log
     140      echo $listlib >> $logfile
    146141      echo
    147142      echo "#=================================================================="
     
    176171##########################################################################
    177172
    178          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
    179             echo $trufile $fili $stri >> create_make_gcm.log
     173         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
     174            echo $trufile $fili $stri >> $logfile
    180175            strj=`echo $stri | tr [A-Z] [a-z]`
    181176            str2=""
    182             for dirinc in filtrez bibio grid dyn3d $diri $diri/*/ ; do
     177            for dirinc in filtrez bibio dyn3d_common grid dyn3d phydev $diri $diri/*/ ; do
    183178# Recherche dans l'ordre hierarchique inverse car seule la derniere
    184179# ligne est conservee
     180               if [ $dirinc = phydev ] ; then
     181                   dirstr='$(PHYS)'
     182                   libstr='phy$(PHYS)'
     183               else
     184                   dirstr=$dirinc
     185                   libstr=$dirinc
     186               fi
     187               echo dirinc $dirinc >> $logfile
    185188               if [ -f $dirinc/$stri ] ; then
    186                   str2='$(LIBF)/'$dirinc/$stri
     189                  str2='$(LIBF)/'$dirstr/$stri
    187190               elif [ -f $dirinc/$strj ] ; then
    188                   str2='$(LIBF)/'$dirinc/$stri
     191                  str2='$(LIBF)/'$dirstr/$stri
    189192               elif [ -f $dirinc/$strj.F90 ]  || [ -f $dirinc/$strj.F ]  ; then
    190                   strlib=`echo $dirinc | awk -F/ ' { print $1 } '`
     193                  strlib=`echo $libstr | awk -F/ ' { print $1 } '`
    191194                  str2='$(LIBO)/lib'$strlib'.a('$strj'.o)'
     195               elif [ -f $dirinc/$stri.F90 ]  || [ -f $dirinc/$stri.F ]  ; then
     196                  strlib=`echo $libstr | awk -F/ ' { print $1 } '`
     197                  str2='$(LIBO)/lib'$strlib'.a('$stri'.o)'
    192198               fi
     199               echo stri $stri  >> $logfile
     200               echo str2 $str2  >> $logfile
    193201            done
     202               echo dernier str2 $str2  >> $logfile
    194203            if [ "$str2" = "" ] ; then
    195                echo Warn: Include $diri $trufile $fili $stri pas trouve >> $gcm/create_make_gcm.log
     204               echo Warn: Include $diri $trufile $fili $stri pas trouve >> $logfile
    196205            elif [ "$str2" = "$str1" ] ; then
    197                echo Warn: Include $diri $trufile $fili $stri $str1 trouve 2x >> $gcm/create_make_gcm.log
     206               echo Warn: Include $diri $trufile $fili $stri $str1 trouve 2x >> $logfile
    198207            else
    199208               echo $str1 \\
Note: See TracChangeset for help on using the changeset viewer.