/[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.11 by adcroft, Fri May 7 18:12:29 1999 UTC revision 1.12 by adcroft, Tue Mar 14 16:21:41 2000 UTC
# Line 30  while ($#allargs) Line 30  while ($#allargs)
30     echo "Enabling MPI options"     echo "Enabling MPI options"
31     set USEMPI     set USEMPI
32     breaksw     breaksw
33     case -jam:
34       set include_jam_libs
35       echo "Including paths to JAM libraries"
36       breaksw
37   case -help:   case -help:
38     echo "usage: $0 [-help] [-makefile[=...]] [-platform=...] [-mpi]"     echo "usage: $0 [-help] [-makefile[=...]] [-platform=...] [-mpi]"
39     exit     exit
# Line 291  INCLUDEDIRS = ${INCLUDEDIRS} Line 295  INCLUDEDIRS = ${INCLUDEDIRS}
295  EXEDIR     = ${EXEDIR}  EXEDIR     = ${EXEDIR}
296  EXECUTABLE = \$(EXEDIR)${EXECUTABLE}  EXECUTABLE = \$(EXEDIR)${EXECUTABLE}
297    
298    EOF
299    
300    
301    # JAM libraries on Hyades
302    if ($?include_jam_libs) then
303    cat >> ${mfile} <<EOF
304    # extra stuff for Hyades ............................................
305    HYADES_DIR = /u/u0/cnh/jam-lib/software
306    WORK_DIR   = \$(HYADES_DIR)
307    DEPOSIT_DIR = linux_bin
308    
309    STARTXOBJDIR = startx_util/\$(DEPOSIT_DIR)
310    STARTXOBJ = \$(WORK_DIR)/startx_util/\$(DEPOSIT_DIR)/startx_timer.o \
311                \$(WORK_DIR)/startx_util/\$(DEPOSIT_DIR)/startx_util.o \
312                \$(WORK_DIR)/startx_util/\$(DEPOSIT_DIR)/client.o \
313                \$(WORK_DIR)/startx_util/\$(DEPOSIT_DIR)/csutil.o
314    
315    JAMOBJDIR  = jam/\$(DEPOSIT_DIR)
316    JAMOBJ     = \$(WORK_DIR)/jam/\$(DEPOSIT_DIR)/jam_init.o \
317                 \$(WORK_DIR)/jam/\$(DEPOSIT_DIR)/jam_kernel.o \
318                 \$(WORK_DIR)/jam/\$(DEPOSIT_DIR)/jam_malloc.o \
319                 \$(WORK_DIR)/jam/\$(DEPOSIT_DIR)/jam_vmalloc.o \
320                 \$(WORK_DIR)/jam/\$(DEPOSIT_DIR)/jam_mutex.o
321    
322    JAMCOBJDIR = jam_collective/\$(DEPOSIT_DIR)
323    JAMCOBJ    = \$(WORK_DIR)/jam_collective/\$(DEPOSIT_DIR)/jam_collective.o
324    
325    XLIBS      = \$(STARTXOBJ) \$(JAMOBJ) \$(JAMCOBJ)
326    
327    # ..................................................................
328    
329    EOF
330    endif
331    
332    
333    cat >> ${mfile} <<EOF
334  # Unix ln (link)  # Unix ln (link)
335  LN = ${LN}  LN = ${LN}
336  # C preprocessor  # C preprocessor
# Line 344  Clean: Line 384  Clean:
384          @make clean          @make clean
385          -find . -type l -exec rm {} \;          -find . -type l -exec rm {} \;
386          -rm Makefile.bak          -rm Makefile.bak
387    CLEAN:
388            @make Clean
389            -find ../verification/ -name "*.meta" -exec rm {} \;
390            -find ../verification/ -name "*.data" -exec rm {} \;
391            -rm \$(EXECUTABLE)
392    
393  # The normal chain of rules is (  .F - .f - .o  )  # The normal chain of rules is (  .F - .f - .o  )
394  .F.f:  .F.f:

Legend:
Removed from v.1.11  
changed lines
  Added in v.1.12

  ViewVC Help
Powered by ViewVC 1.1.22