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

Contents of /MITgcm/lsopt/Makefile

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


Revision 1.3 - (show 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
2 #***********************************************************************
3 # Makefile for the ECCO off-line large scale optimization.
4 #
5 # started: Patrick Heimbach heimbach@mit.edu 19-Jun-2000
6 #
7 # prebuilt Fortran77 reference implementation BLAS libraries at
8 # http://www.netlib.org/blas/archives/
9 #
10 #***********************************************************************
11
12 # 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
45 # SUN double precision.
46 #---------
47 #FFLAGS = -u -r8 -e -g
48 #CPPFLAGS = -I. -DIS_DOUBLE -DINTEGER_BYTE=4 -DONLINE
49
50 # Cray.
51 #---------
52 #FC = f90
53 #FFLAGS = -I. -e0 -N132 -O scalar3,vector3,task3
54 #CPPFLAGS = -Wp"-DREAL_BYTE=8 -DINTEGER_BYTE=8"
55
56 # File removal.
57 RM = rm -f
58
59 F77FILES = $(SRC:.F=.f)
60 OBJ = $(SRC:.F=.o)
61
62 .SUFFIXES: .o .f .F
63
64 all: $(ECCOOPTLIB)
65
66 $(ECCOOPTLIB): $(OBJ) $(F77FILES)
67 $(FC) -c $(FFLAGS) $(F77FILES)
68 $(AR) $(ARFLAGS) $@ $?
69
70 depend:
71 makedepend -o .f $(SRC)
72
73 # The normal chain of rules is ( .F - .f - .o )
74 .F.f:
75 $(CPP) $(CPPFLAGS) > $@
76 .f.o:
77 $(FC) $(FFLAGS) -c $<
78
79 # Cleaning options.
80 clean:
81 $(RM) *.o *.f
82 # DO NOT DELETE
83
84 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