Back to home page

MITgcm

 
 

    


File indexing completed on 2021-12-10 06:10:04 UTC

view on githubraw file Latest commit ae174577 on 2021-12-09 16:35:15 UTC
4cee17c1be Patr*0001 
6ebb22a41e Patr*0002 #***********************************************************************
                0003 # Makefile for the ECCO off-line large scale optimization.
4cee17c1be Patr*0004 #
6ebb22a41e Patr*0005 # started: Patrick Heimbach heimbach@mit.edu 19-Jun-2000
4cee17c1be Patr*0006 #
6ebb22a41e Patr*0007 # prebuilt Fortran77 reference implementation BLAS libraries at
                0008 # http://www.netlib.org/blas/archives/
4cee17c1be Patr*0009 #
f4870f79ca Patr*0010 # Further high-performance BLAS libraries by Kazushige Goto at
                0011 # http://www.cs.utexas.edu/users/kgoto/
                0012 #
6ebb22a41e Patr*0013 #***********************************************************************
                0014 
                0015 # The optimization routines.
                0016 SRC = lsopt_top.F       \
                0017         lsupdxx.F       \
                0018         lsline.F        \
                0019         hessupd.F       \
                0020         cubic.F         \
                0021         dgscale.F       \
                0022         instore.F       \
                0023         dostore.F       \
                0024         outstore.F      \
                0025         lswri.F
                0026 
                0027 # Location of cpp preprocessor
                0028 # default is (Linux)
                0029 CPP             = cat $< | /lib/cpp -P -traditional
                0030 # on SUNOS
                0031 # CPP           = cat $< | /usr/ccs/lib/cpp
4cee17c1be Patr*0032 
6ebb22a41e Patr*0033 ARFLAGS     = rv
                0034 ECCOOPTLIB  = liblsopt_ecco.a
4cee17c1be Patr*0035 
60c4531875 Patr*0036 # Altix
                0037 #---------
                0038 #CPPFLAGS      = -DIS_DOUBLE
                0039 #FC              = ifort
8479df9de1 Patr*0040 #FFLAGS          = -mp -132 -r8 -i4 -w95 -W0 -WB -CB -fpe0 -traceback -convert big_endian -assume byterecl
60c4531875 Patr*0041 
6ebb22a41e Patr*0042 # O3K
                0043 #---------
                0044 #CPPFLAGS       = -DIS_DOUBLE
                0045 #FC              = f77
                0046 #FFLAGS          = -extend_source -bytereclen -mips4 -r8 -static
4cee17c1be Patr*0047 
6ebb22a41e Patr*0048 # Linux
                0049 #---------
                0050 CPPFLAGS        = -DIS_DOUBLE
                0051 FC              = f77
ae17457769 Andr*0052 FFLAGS          = -fconvert=big-endian -fimplicit-none
4cee17c1be Patr*0053 
6ebb22a41e Patr*0054 # SUN double precision.
                0055 #---------
                0056 #FFLAGS      = -u -r8 -e -g
                0057 #CPPFLAGS    = -I. -DIS_DOUBLE -DINTEGER_BYTE=4 -DONLINE
4cee17c1be Patr*0058 
                0059 # Cray.
6ebb22a41e Patr*0060 #---------
4cee17c1be Patr*0061 #FC          = f90
                0062 #FFLAGS      = -I. -e0 -N132 -O scalar3,vector3,task3
                0063 #CPPFLAGS    = -Wp"-DREAL_BYTE=8  -DINTEGER_BYTE=8"
                0064 
6ebb22a41e Patr*0065 # File removal.
                0066 RM              = rm -f
4cee17c1be Patr*0067 
6ebb22a41e Patr*0068 F77FILES = $(SRC:.F=.f)
                0069 OBJ      = $(SRC:.F=.o)
4cee17c1be Patr*0070 
6ebb22a41e Patr*0071 .SUFFIXES: .o .f .F
4cee17c1be Patr*0072 
6ebb22a41e Patr*0073 all: $(ECCOOPTLIB)
4cee17c1be Patr*0074 
6ebb22a41e Patr*0075 $(ECCOOPTLIB): $(OBJ) $(F77FILES)
                0076         $(FC) -c $(FFLAGS) $(F77FILES)
4cee17c1be Patr*0077         $(AR) $(ARFLAGS) $@ $?
                0078 
6ebb22a41e Patr*0079 depend:
                0080         makedepend -o .f $(SRC)
4cee17c1be Patr*0081 
6ebb22a41e Patr*0082 # The normal chain of rules is (  .F - .f - .o  )
                0083 .F.f:
                0084         $(CPP) $(CPPFLAGS) > $@
                0085 .f.o:
                0086         $(FC) $(FFLAGS) -c $<
4cee17c1be Patr*0087 
6ebb22a41e Patr*0088 # Cleaning options.
4cee17c1be Patr*0089 clean:
6ebb22a41e Patr*0090         $(RM) *.o *.f
                0091 # DO NOT DELETE
4cee17c1be Patr*0092 
6ebb22a41e Patr*0093 lsupdxx.f: blas1.h
                0094 lsline.f: blas1.h
                0095 hessupd.f: blas1.h
                0096 dgscale.f: blas1.h