Changeset 87 for LMDZ.3.3/branches
- Timestamp:
- May 10, 2000, 12:32:47 PM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ.3.3/branches/rel-LF/create_make_gcm
r79 r87 58 58 echo 'COMPILE = $(F77) $(OPTIM) $(INCLUDE) -c' 59 59 echo 'COMPILE90 = $(F90) $(OPTIM90) $(INCLUDE) -c' 60 echo 'COMPTRU90 = $(F90) $(OPTIMTRU90) $(INCLUDE) -c' 60 61 echo 'LINK = f90' 61 62 echo "AR = ar" … … 109 110 do 110 111 if [ -d $diri ] ; then 111 if [ "`ls $diri/*.F`" != "" ] ; then112 if [ "`ls $diri/*.F`" != "" ] || [ "`ls $diri/*.F90`" != "" ] ; then 112 113 cd $diri >/dev/null 2>&1 113 114 echo … … 121 122 fi 122 123 done 124 for i in `ls *.F90` 125 do 126 fili=`basename $i .F90` 127 test=` ( head $i | grep ' PROGRAM' ) ` 128 if [ "$test" = "" ] ; then 129 listlib=$listlib" "$fili 130 fi 131 done 123 132 # 124 133 echo … … 140 149 for fili in $listlib 141 150 do 142 F90=0 ; egrep -i '^ *use ' $fili.F > /dev/null 2>&1 && F90=1 143 egrep -i '^ *module ' $fili.F > /dev/null 2>&1 && F90=1 144 str1='$(LIBO)/lib'$diri'.a('$fili'.o) : $(LIBF)/'$diri/$fili.F 151 if [ -f $fili.F90 ] ; then 152 trufile=$fili.F90 153 else 154 trufile=$fili.F 155 fi 156 F90=0 ; egrep -i '^ *use ' $trufile > /dev/null 2>&1 && F90=1 157 egrep -i '^ *module ' $trufile > /dev/null 2>&1 && F90=1 158 str1='$(LIBO)/lib'$diri'.a('$fili'.o) : $(LIBF)/'$diri/$trufile 145 159 [ "$fili" = "chem.subs" ] && str1=$str1' $(LIBF)/'$diri/chem.mods.F 146 for stri in ` ( sed -n "/\#include/s/\#include//p" $ fili.F | sed 's/\"//g' ; egrep -i '^ *use ' $fili.F| awk ' { print $2 } ' ) `160 for stri in ` ( sed -n "/\#include/s/\#include//p" $trufile | sed 's/\"//g' ; egrep -i '^ *use ' $trufile | awk ' { print $2 } ' ) ` 147 161 do 148 162 stri=`echo $stri | tr [A-Z] [a-z]` … … 151 165 str1='$(LIBF)/'$diri'/'$stri 152 166 else 153 if [ -f $stri.F ] ; then167 if [ -f $stri.F ] || [ -f $stri.F90 ] ; then 154 168 str1='$(LIBO)/lib'$diri'.a('$stri'.o)' 155 169 else … … 166 180 echo $str1 167 181 if [ "$F90" -eq '0' ] ; then 168 169 echo ' $(COMPILE) $(LIBF)/'$diri'/'$ fili'.F; \'182 echo ' cd $(LOCAL_DIR); \' 183 echo ' $(COMPILE) $(LIBF)/'$diri'/'$trufile' ; \' 170 184 else 171 echo ' cd $(LOCAL_DIR); \' 172 echo ' $(COMPILE90) $(LIBF)/'$diri'/'$fili'.F ; \' 173 MODU=0; egrep -i ' *module ' $fili.F> /dev/null 2>&1 && MODU=1 185 echo ' cd $(LOCAL_DIR); \' 186 if [ -f $fili.F90 ] ; then 187 echo ' $(COMPTRU90) $(LIBF)/'$diri'/'$trufile' ; \' 188 else 189 echo ' $(COMPILE90) $(LIBF)/'$diri'/'$trufile' ; \' 190 fi 191 MODU=0; egrep -i ' *module ' $trufile> /dev/null 2>&1 && MODU=1 174 192 if [ "$MODU" -eq '1' -a "$CRAY" != '1' ] ; then 175 193 if [ "$os" = 'UNIX_System_V' ] ; then
Note: See TracChangeset
for help on using the changeset viewer.