/[MITgcm]/MITgcm_contrib/PRM/build_scripts/makemake.sh
ViewVC logotype

Diff of /MITgcm_contrib/PRM/build_scripts/makemake.sh

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.1 by cnh, Thu Oct 12 22:50:18 2006 UTC revision 1.2 by cnh, Mon Sep 17 03:10:20 2007 UTC
# Line 103  done Line 103  done
103  echo '$(EXTRA_LIB_LIST)'  echo '$(EXTRA_LIB_LIST)'
104  echo ' '  echo ' '
105    
106    # Write liball.a library list
107    echo 'LIBLIST_ALL=\'
108    for l in ${ll} ; do
109    echo ${l}' \'
110    done
111    echo ' '
112    
113  # Write library option  # Write library option
114  # write it twice because gnu linker doesn't search backwards and we don't know the  # write it twice because gnu linker doesn't search backwards and we don't know the
115  # right order (I think this is what ar and ranlib are for!)  # right order (I think this is what ar and ranlib are for!)
116    # Add liball.a to fix issues with intel compiler on columbia (2007-09-16) (ifort 9.1.039).
117  echo 'LIBOPT=\'  echo 'LIBOPT=\'
118  for l in ${lo} ; do  for l in ${lo} ; do
119  echo ${l}' \'  echo ${l}' \'
# Line 113  done Line 121  done
121  for l in ${lo} ; do  for l in ${lo} ; do
122  echo ${l}' \'  echo ${l}' \'
123  done  done
124    echo '-lall '
125  echo ' '  echo ' '
126    
127    
128  # Set rule for executable  # Set rule for executable
129  echo '$(EXE): $(OBJLIST) $(LIBLIST)'  echo '$(EXE): $(OBJLIST) $(LIBLIST) liball.a'
130  echo -e \\t'$(LINK) -L. -o $(EXE) $(OBJLIST) $(LIBOPT) $(EXTRA_LOPT)'  echo -e \\t'$(LINK) -L. -o $(EXE) $(OBJLIST) $(LIBOPT) $(EXTRA_LOPT)'
131    
132    # Set rule for liball.a
133    echo ' '
134    echo 'liball.a: $(LIBLIST_ALL)'
135    echo '  \rm -fr tmp'
136    echo '  \rm -f liball.a'
137    echo '  mkdir tmp'
138    echo '  cp $(LIBLIST_ALL) tmp'
139    echo '  cd tmp; ls -1 *.a | sed "s/^.*/ar x &/" > foo'
140    echo '  cd tmp; source foo'
141    echo '  cd tmp; ar rc liball.a *.o; cp liball.a ..'
142    
143    
144  # Set rule for libraries  # Set rule for libraries
145  ol=''  ol=''
146  ll=''  ll=''

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

  ViewVC Help
Powered by ViewVC 1.1.22