/[MITgcm]/MITgcm/lsopt/Makefile
ViewVC logotype

Annotation of /MITgcm/lsopt/Makefile

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


Revision 1.3 - (hide annotations) (download)
Thu Mar 4 17:59:18 2004 UTC (20 years, 2 months ago) by heimbach
Branch: MAIN
CVS Tags: checkpoint52l_pre, hrcube5, checkpoint52m_post, checkpoint52l_post
Changes since 1.2: +64 -75 lines
updating makefiles for optim, lsopt

1 heimbach 1.2
2 heimbach 1.3 #***********************************************************************
3     # Makefile for the ECCO off-line large scale optimization.
4 heimbach 1.2 #
5 heimbach 1.3 # started: Patrick Heimbach heimbach@mit.edu 19-Jun-2000
6 heimbach 1.2 #
7 heimbach 1.3 # prebuilt Fortran77 reference implementation BLAS libraries at
8     # http://www.netlib.org/blas/archives/
9 heimbach 1.2 #
10 heimbach 1.3 #***********************************************************************
11 heimbach 1.2
12 heimbach 1.3 # The optimization routines.
13     SRC = lsopt_top.F \
14     lsupdxx.F \
15     lsline.F \
16     hessupd.F \
17     cubic.F \
18     dgscale.F \
19     instore.F \
20     dostore.F \
21     outstore.F \
22     lswri.F
23    
24     # Location of cpp preprocessor
25     # default is (Linux)
26     CPP = cat $< | /lib/cpp -P -traditional
27     # on SUNOS
28     # CPP = cat $< | /usr/ccs/lib/cpp
29    
30     ARFLAGS = rv
31     ECCOOPTLIB = liblsopt_ecco.a
32    
33     # O3K
34     #---------
35     #CPPFLAGS = -DIS_DOUBLE
36     #FC = f77
37     #FFLAGS = -extend_source -bytereclen -mips4 -r8 -static
38    
39     # Linux
40     #---------
41     CPPFLAGS = -DIS_DOUBLE
42     FC = f77
43     FFLAGS =
44 heimbach 1.2
45     # SUN double precision.
46 heimbach 1.3 #---------
47     #FFLAGS = -u -r8 -e -g
48     #CPPFLAGS = -I. -DIS_DOUBLE -DINTEGER_BYTE=4 -DONLINE
49 heimbach 1.2
50     # Cray.
51 heimbach 1.3 #---------
52 heimbach 1.2 #FC = f90
53     #FFLAGS = -I. -e0 -N132 -O scalar3,vector3,task3
54     #CPPFLAGS = -Wp"-DREAL_BYTE=8 -DINTEGER_BYTE=8"
55    
56 heimbach 1.3 # File removal.
57     RM = rm -f
58 heimbach 1.2
59 heimbach 1.3 F77FILES = $(SRC:.F=.f)
60     OBJ = $(SRC:.F=.o)
61 heimbach 1.2
62 heimbach 1.3 .SUFFIXES: .o .f .F
63 heimbach 1.2
64 heimbach 1.3 all: $(ECCOOPTLIB)
65 heimbach 1.2
66 heimbach 1.3 $(ECCOOPTLIB): $(OBJ) $(F77FILES)
67     $(FC) -c $(FFLAGS) $(F77FILES)
68 heimbach 1.2 $(AR) $(ARFLAGS) $@ $?
69    
70 heimbach 1.3 depend:
71     makedepend -o .f $(SRC)
72 heimbach 1.2
73 heimbach 1.3 # The normal chain of rules is ( .F - .f - .o )
74     .F.f:
75     $(CPP) $(CPPFLAGS) > $@
76     .f.o:
77     $(FC) $(FFLAGS) -c $<
78 heimbach 1.2
79 heimbach 1.3 # Cleaning options.
80 heimbach 1.2 clean:
81 heimbach 1.3 $(RM) *.o *.f
82     # DO NOT DELETE
83 heimbach 1.2
84 heimbach 1.3 lsupdxx.f: blas1.h
85     lsline.f: blas1.h
86     hessupd.f: blas1.h
87     dgscale.f: blas1.h

  ViewVC Help
Powered by ViewVC 1.1.22