/[MITgcm]/MITgcm/tools/genmake
ViewVC logotype

Diff of /MITgcm/tools/genmake

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

revision 1.3 by cnh, Thu Jul 16 23:50:44 1998 UTC revision 1.5 by cnh, Tue Sep 29 21:22:33 1998 UTC
# Line 97  switch ($platform$USEMPI) Line 97  switch ($platform$USEMPI)
97      set CPP        = ( '/usr/bin/cpp -P' )      set CPP        = ( '/usr/bin/cpp -P' )
98      set DEFINES    = ( ${DEFINES}  '-DTARGET_DEC' )      set DEFINES    = ( ${DEFINES}  '-DTARGET_DEC' )
99      set KPP        = ( 'kapf' )      set KPP        = ( 'kapf' )
100        set KPPFILES   = ( 'main.F' )
101      set KFLAGS1    = ( '-scan=132 -noconc -cmp=' )      set KFLAGS1    = ( '-scan=132 -noconc -cmp=' )
102      set FC         = ( 'f77' )      set FC         = ( 'f77' )
103      set FFLAGS     = ( '-convert big_endian -r8 -extend_source -u -automatic -call_shared -notransform_loops -align dcommons' )      set FFLAGS     = ( '-convert big_endian -r8 -extend_source -u -automatic -call_shared -notransform_loops -align dcommons' )
# Line 180  endsw Line 181  endsw
181  ###############################################################################  ###############################################################################
182    
183  # Create list of files  # Create list of files
184  set flist = `ls -1 ${SOURCEDIRS} | grep '.*\.F'`  set flist = `ls -1 ${SOURCEDIRS} | grep '.*\.[F]$'`
185  if ( $#flist ) then  if ( $#flist ) then
186   echo -n "SRCFILES = " > srclist.inc   echo -n "SRCFILES = " > srclist.inc
187   echo -n "F77FILES = " > f77list.inc   echo -n "F77FILES = " > f77list.inc
# Line 194  if ( $#flist ) then Line 195  if ( $#flist ) then
195    echo ' \' >> objlist.inc    echo ' \' >> objlist.inc
196    echo -n "           " ${fname:r}.o >> objlist.inc    echo -n "           " ${fname:r}.o >> objlist.inc
197   end   end
  echo " " >> srclist.inc  
  echo " " >> f77list.inc  
  echo " " >> objlist.inc  
198  else  else
199   echo No source files found...\!   echo No source files found...\!
200   exit   exit
201  endif  endif
202    set flist = `ls -1 ${SOURCEDIRS} | grep '.*\.[c]$'`
203    if ( $#flist ) then
204     foreach ff ( ${flist} )
205      set fname = ( ${ff:t}       )
206      echo ' \' >> objlist.inc
207      echo -n "           " ${fname:r}.o >> objlist.inc
208    endif
209    echo " " >> srclist.inc
210    echo " " >> f77list.inc
211    echo " " >> objlist.inc
212    
213  # Convert lists of directories into command-line options  # Convert lists of directories into command-line options
214  foreach inc ($INCLUDEDIRS)  foreach inc ($INCLUDEDIRS)
# Line 208  foreach inc ($INCLUDEDIRS) Line 216  foreach inc ($INCLUDEDIRS)
216  end  end
217  set SRCSTARS = ( )  set SRCSTARS = ( )
218  foreach dr ($SOURCEDIRS)  foreach dr ($SOURCEDIRS)
219   set SRCSTARS = ("${SRCSTARS}" $dr/\*.F)   set SRCSTARS = ("${SRCSTARS}" $dr\*.F $dr\*.c )
220  end  end
221    
222  set THISHOSTNAME = ( `hostname` )  set THISHOSTNAME = ( `hostname` )
# Line 288  rm -f srclist.inc f77list.inc objlist.in Line 296  rm -f srclist.inc f77list.inc objlist.in
296  cat >> ${mfile} <<EOF  cat >> ${mfile} <<EOF
297    
298  .SUFFIXES:  .SUFFIXES:
299  .SUFFIXES: .o .f .p .F  .SUFFIXES: .o .f .p .F .c
300    
301  all: \$(EXECUTABLE)  all: \$(EXECUTABLE)
302  \$(EXECUTABLE): \$(OBJFILES)  \$(EXECUTABLE): \$(OBJFILES)

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.5

  ViewVC Help
Powered by ViewVC 1.1.22