/[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.1.2.2 - (show annotations) (download)
Wed May 28 21:53:58 2003 UTC (20 years, 11 months ago) by heimbach
Branch: ecco-branch
CVS Tags: ecco_c50_e32, ecco_c50_e33, ecco_c51_e34d, ecco_c51_e34e, ecco_c51_e34f, ecco_c51_e34g, ecco_c51_e34a, ecco_c51_e34b, ecco_c51_e34c, ecco_c50_e33a, ecco_c51_e34
Changes since 1.1.2.1: +15 -5 lines
a first minuscule step towards cleaning up lsopt/ optim/

1
2 #-----------------------------------------------------------------
3 # L A R G E S C A L E O P T I M I Z A T I O N
4 #-----------------------------------------------------------------
5 #
6 # Version : lsoptv1 2.1.0
7 #
8 # Author : Ralf Giering 22-Mar-1995
9 # Modified : Michael Peters 28-Aug-1995
10 # Rewritten : Patrick Heimbach (MIT/EAPS) 25-Feb-2000
11 # ECCO : Christian Eckert (MIT/EAPS) 10-Mar-2000
12 #
13 #-----------------------------------------------------------------
14
15 SRC = lsopt_top.F lsupdxx.F lsline.F \
16 hessupd.F cubic.F dgscale.F \
17 instore.F dostore.F outstore.F \
18 lswri.F
19
20 ECCOSRC = lsopt_top.F lsupdxx.F lsline.F \
21 hessupd.F cubic.F dgscale.F \
22 instore.F dostore.F outstore.F \
23 lswri.F
24
25 # Note for MIT users:
26 # -------------------
27 # LAPACK/BLAS routines can be obtained directly from e.g.
28 # /opt/SUNWspro/SC4.2/lib/v7.
29 # --> man lapack
30
31 # Default (Linux)
32 FC = f77
33 FFLAGS =
34 CPPFLAGS = -I. -DIS_DOUBLE
35
36 # AER cluster:
37 # FC = /opt/mpich/bin/mpif77
38 # FFLAGS = -byteswapio -r8 -Mnodclchk -Mextend
39 # CPPFLAGS = -I. -DIS_DOUBLE
40
41 # SUN double precision.
42 # FFLAGS = -u -r8 -e -g
43 # CPPFLAGS = -I. -DIS_DOUBLE
44
45 # SUN single precision.
46 #FFLAGS = -u
47 #CPPFLAGS = -I. -DREAL_BYTE=4 -DINTEGER_BYTE=4
48
49 # Cray.
50 #FC = f90
51 #FFLAGS = -I. -e0 -N132 -O scalar3,vector3,task3
52 #CPPFLAGS = -Wp"-DREAL_BYTE=8 -DINTEGER_BYTE=8"
53
54
55 OBJECTS = $(SRC:.F=.o)
56 ECCOOBJECTS = $(ECCOSRC:.F=.o)
57
58 OPTLIB = liblsopt.a
59 ECCOOPTLIB = liblsopt_ecco.a
60 LIB = .
61
62 ARFLAGS = rv
63 RM = rm -f
64 CPP = /lib/cpp
65 # RANLIB on SUN:
66 #RANLIB = /usr/ccs/bin/ranlib
67 # RANLIB on linux:
68 RANLIB = /usr/bin/ranlib
69
70 #-----------------------------------------------------------------
71 # Rules
72 #-----------------------------------------------------------------
73
74 # Generate the lsopt library.
75 all: $(OPTLIB)
76
77 $(OPTLIB): $(OBJECTS)
78 $(AR) $(ARFLAGS) $@ $?
79 $(RANLIB) $@
80 chmod a+r $@
81
82 install: $(OPTLIB)
83 cp $(OPTLIB) $(LIB)/$(OPTLIB)
84
85 # Generate the ECCO lsopt library.
86 ecco: $(ECCOOPTLIB)
87
88 $(ECCOOPTLIB): $(ECCOOBJECTS)
89 $(AR) $(ARFLAGS) $@ $?
90 $(RANLIB) $@
91 chmod a+r $@
92
93 ecco_install: $(ECCOOPTLIB)
94 cp $(OPTLIB) $(LIB)/$(OPTLIB)
95
96 # Generating object files.
97 .o:
98 $(FC) -o $@ $(FFLAGS) $(CPPFLAGS) $(LDFLAGS) $< $(OBJECT) $(LDLIBS)
99
100 # File removal.
101 clean:
102 $(RM) $(OBJECTS) $(ECCOOBJECTS)
103 $(RM) *~
104
105 scratch: clean
106 $(RM) $(OPTLIB)
107
108

  ViewVC Help
Powered by ViewVC 1.1.22