Changeset 704 for LMDZ4/branches/V3_test/create_make_gcm
- Timestamp:
- Aug 17, 2006, 5:41:51 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ4/branches/V3_test/create_make_gcm
r672 r704 9 9 libf=$gcm/libf 10 10 libo=$gcm/libo 11 CRAY=0 12 if [ "$machine" = "atlas" -o "$machine" = "etoile" -o "$machine" = "axis" ] ; then 13 CRAY=1 14 fi 15 XNEC=0 16 if [ "$machine" = "rhodes" ] ; then 17 XNEC=1 18 fi 19 X6NEC=0 20 if [ "$machine" = "mercure" ] ; then 21 X6NEC=1 22 fi 23 VPP=0 24 if [ "$machine" = "nymphea0" ] ; then 25 VPP=1 26 fi 27 # 11 12 X6NEC=1 13 28 14 echo "#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%" 29 15 echo "# Definitions de Macros pour Make" … … 33 19 echo 34 20 echo "GCM = "$gcm 35 if [ "$CRAY" = '0' ] ; then36 echo "MACHINE = sun4"37 fi38 21 echo 'LIBF = $(GCM)/libf' 39 if [ "$CRAY" = '0' ] ; then 40 # echo 'LIBO = $(GCM)/libo/$(MACHINE)' 41 echo 'LIBO = $(LIBOGCM)/$(MACHINE)' 42 else 43 echo 'LIBO = $(GCM)/libo' 44 fi 45 #echo 'LOCAL_DIR=$(GCM)' 46 #echo $localdir 22 echo 'LIBO = $(GCM)/libo' 47 23 echo "LOCAL_DIR=`echo $localdir`" 48 24 echo 'BIBIO = $(LIBF)/bibio' … … 51 27 echo "DYN = dyn " 52 28 echo 'LIBPHY = $(LIBO)/libphy$(PHYS).a' 53 echo 'DIRMAIN=dyn$(DIM)d '29 echo 'DIRMAIN=dyn$(DIM)d$(FLAG_PARA)' 54 30 echo 'RM=rm' 55 31 echo … … 58 34 echo '# Les differentes librairies pour l"edition des liens:' 59 35 echo 60 if ( [ "$XNEC" = '1' ] || [ "$X6NEC" = '1' ] ) ; then 61 echo 'dyn3d = $(LIBO)/libsxdyn3d.a $(LIBO)/libsx$(FILTRE).a' 62 echo 'dyn2d = $(LIBO)/libsxdyn2d.a' 63 echo 'dyn1d = $(LIBO)/libsxdyn1d.a' 64 echo 'L_DYN = -lsxdyn$(DIM)d' 65 echo 'L_FILTRE = -lsx$(FILTRE)' 66 echo 'L_PHY = -lsxphy$(PHYS) ' 67 echo 'L_BIBIO = -lsxbibio' 68 echo 'L_CHIMIE =' 69 echo 'L_ADJNT =' 70 else 71 echo 'dyn3d = $(LIBO)/libdyn3d.a $(LIBO)/lib$(FILTRE).a' 72 echo 'dyn2d = $(LIBO)/libdyn2d.a' 73 echo 'dyn1d = $(LIBO)/libdyn1d.a' 74 echo 'L_DYN = -ldyn$(DIM)d' 75 echo 'L_FILTRE = -l$(FILTRE)' 76 echo 'L_PHY = -lphy$(PHYS) ' 77 echo 'L_BIBIO = -lbibio' 78 echo 'L_CHIMIE =' 79 echo 'L_ADJNT =' 80 fi 36 echo 'dyn3d = $(LIBO)/libdyn3d.a $(LIBO)/lib$(FILTRE).a' 37 echo 'dyn3d_par = $(LIBO)/libdyn3d_par.a $(LIBO)/lib$(FILTRE).a' 38 echo 'dyn2d = $(LIBO)/libdyn2d.a' 39 echo 'dyn1d = $(LIBO)/libdyn1d.a' 40 echo 'L_DYN = -ldyn$(DIM)d$(FLAG_PARA)' 41 echo 'L_FILTRE = -l$(FILTRE)' 42 echo 'L_PHY = -lphy$(PHYS) ' 43 echo 'L_BIBIO = -lbibio' 44 echo 'L_ADJNT =' 45 81 46 echo 82 47 echo "#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%" … … 100 65 echo "PROG = code" 101 66 echo 102 echo 'main : $(OPTION_DEP) $(DYN) bibio phys'67 echo 'main : chimie $(DYN) bibio phys $(OPTION_DEP) ' 103 68 echo ' cd $(LIBO) ; $(RANLIB) lib*.a ; cd $(GCM) ;\' 104 69 echo ' cd $(LOCAL_DIR); \' 105 70 echo ' $(COMPILE90) $(LIBF)/$(DIRMAIN)/$(PROG).F -o $(PROG).o ; \' 106 if [ "$CRAY" = '0' ] ; then 107 echo ' $(LINK) $(PROG).o -L$(LIBO) $(L_DYN) $(L_ADJNT) $(L_CHIMIE) $(L_FILTRE) $(L_PHY) $(L_BIBIO) $(L_DYN) $(OPLINK) $(OPTION_LINK) -o $(LOCAL_DIR)/$(PROG).e ; $(RM) $(PROG).o ' 108 else 109 echo ' $(LINK) $(PROG).o -L$(LIBO) $(L_DYN) $(L_ADJNT) $(L_CHIMIE) $(L_FILTRE) $(L_PHY) $(L_BIBIO) $(OPLINK) $(OPTION_LINK) -o $(LOCAL_DIR)/$(PROG).e ; $(RM) $(PROG).o ' 110 fi 71 echo ' $(LINK) $(PROG).o -L$(LIBO) $(L_DYN) $(L_ADJNT) $(L_FILTRE) $(L_PHY) $(L_BIBIO) $(OPLINK) $(OPTION_LINK) -o $(LOCAL_DIR)/$(PROG).e ; $(RM) $(PROG).o ' 111 72 echo 112 echo 'dyn : $(LIBO)/libdyn$(DIM)d .a $(FILTRE)$(DIM)d'73 echo 'dyn : $(LIBO)/libdyn$(DIM)d$(FLAG_PARA).a $(FILTRE)$(DIM)d' 113 74 echo 114 75 echo 'phys : $(LIBPHY)' 76 echo 77 echo 'chimie : $(LIBO)/libchimie.a' 115 78 echo 116 79 echo 'bibio : $(LIBO)/libbibio.a' 117 80 echo 118 81 echo 'adjnt : $(LIBO)/libadjnt.a' 119 echo120 echo 'chimie : $(LIBO)/libchimie.a'121 82 echo 122 83 echo '$(FILTRE)3d : $(LIBO)/lib$(FILTRE).a' … … 206 167 done 207 168 echo $str1 208 if [ "$F90" -eq '0' -a -f $fili.F] ; then169 if [ "$F90" -eq '0' ] ; then 209 170 echo ' cd $(LOCAL_DIR); \' 210 171 echo ' $(COMPILE) $(LIBF)/'$diri'/'$trufile' ; \' … … 221 182 echo ' cp $(MOD_LOC_DIR)/*.$(MOD_SUFFIX) $(LIBO)/ ; \' 222 183 else 223 echo ' mv $(MOD_LOC_DIR)/'$fili'.$(MOD_SUFFIX) $(LIBO)/'$fili'.$(MOD_SUFFIX) ; \' 184 # echo ' mv $(MOD_LOC_DIR)/'$fili'.$(MOD_SUFFIX) $(LIBO)/'$fili'.$(MOD_SUFFIX) ; \' 185 echo ' mv $(MOD_LOC_DIR)/'*'.$(MOD_SUFFIX) $(LIBO) ; \' 224 186 fi 225 187 fi 226 188 fi 227 if ( [ "$XNEC" -eq '1' ] || [ "$X6NEC" = '1' ] ) ; then228 echo ' sxar r $(LIBO)/libsx'$diri'.a '$fili'.o ; \'229 fi230 189 echo ' $(AR) r $(LIBO)/lib'$diri'.a '$fili'.o ; $(RM) '$fili'.o ; \' 231 190 echo ' cd $(GCM)'
Note: See TracChangeset
for help on using the changeset viewer.