Changeset 104 for trunk/create_make_gcm


Ignore:
Timestamp:
Mar 25, 2011, 4:58:38 PM (14 years ago)
Author:
slebonnois
Message:

SLebonnois: modification de makelmdz et create_make_gcm pour pouvoir
compiler la chimie titan. Pas de raison que ca gene les autres.
Dans cette version, les compilations de Venus et Titan fonctionnent.

Phytitan: modifications pour pouvoir compiler correctement.
Il ne manque plus que physiq.F a faire.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified trunk/create_make_gcm

    r66 r104  
    8282echo
    8383echo
     84echo '#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%'
     85echo '# Option de compilation C'
     86echo '#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%'
     87echo
     88echo 'COMPILEC = $(CCC) $(OPTIMC) $(INCLUDEC) -c'
     89echo
     90echo
    8491echo "#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%"
    8592echo "# Creation des differents executables"
     
    110117echo 'cosp : $(LIBO)/libcosp.a'
    111118echo
     119echo 'chimtitan : $(LIBO)/libchimtitan.a'
     120echo
    112121echo '$(FILTRE)3d : $(LIBO)/lib$(FILTRE).a'
    113122echo
     
    229238#       
    230239      echo
    231    cd $libf
     240      cd $libf
     241##############################
     242## CAS DES FICHIERS EN C
     243######
     244   elif [ "`ls $diri/*.c`" != "" ] ; then
     245      cd $diri >/dev/null 2>&1
     246      echo
     247      listlib=""
     248      for i in `ls *.c`
     249      do
     250         fili=`basename $i .c`
     251         test=` (  head $i | grep '      PROGRAM' ) `
     252         if [ "$test" = "" ] ; then
     253            listlib=$listlib" "$fili
     254         fi
     255      done
     256#
     257      echo
     258      echo
     259      echo '#======================================================================='
     260      echo '# Contenu de la bibliotheque correspondant au Directory '$diri
     261      echo '#======================================================================='
     262      echo
     263      for fili in $listlib
     264      do
     265         echo '$(LIBO)/lib'$diri".a : " '$(LIBO)/lib'$diri".a("$fili".o)"
     266         echo
     267      done
     268      echo '.PRECIOUS   : $(LIBO)/lib'$diri'.a'
     269      echo
     270      echo
     271      echo '# Compilation des membres de la bibliotheque lib'$diri'.a'
     272      echo
     273      for fili in $listlib
     274      do
     275         str1='$(LIBO)/lib'$diri'.a('$fili'.o) : $(LIBF)/'$diri/$fili.c
     276         for stri in ` ( sed -n "/\#include/s/\#include//p" $fili.c  | sed 's/\"//g' ) `
     277         do
     278            if [ -f $stri ] ; then
     279               echo $str1 \\
     280               str1='$(LIBF)/'$diri'/'$stri
     281            else
     282               for dirinc in dyn3d grid bibio
     283               do
     284                  if [ -f ../$dirinc/$stri ] ; then
     285                     echo $str1 \\
     286                     str1='$(LIBF)/'`cd .. ; ls */$stri | head -1`
     287                  fi
     288               done
     289            fi
     290         done
     291         echo $str1
     292         # Compile in LIBO directory; and before compiling, remove
     293         # object from library
     294         echo ' cd $(LIBO); \'
     295         echo ' $(AR) d $(LIBO)/lib'$diri'.a '$fili'.o ; \'
     296         ## C
     297         echo ' $(COMPILEC) $(LIBF)/'$diri'/'$fili'.c; \'
     298         # Put generated object in library
     299         echo ' $(AR) r $(LIBO)/lib'$diri'.a '$fili'.o ; $(RM) '$fili'.o ; \'
     300         echo ' cd $(GCM)'
     301         echo
     302      done
     303#       
     304      echo
     305      cd $libf
     306##############################
    232307   fi
    233308   fi
Note: See TracChangeset for help on using the changeset viewer.