/[MITgcm]/MITgcm/optim/Makefile
ViewVC logotype

Annotation of /MITgcm/optim/Makefile

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


Revision 1.6 - (hide annotations) (download)
Thu Jul 20 00:53:14 2006 UTC (17 years, 9 months ago) by dfer
Branch: MAIN
CVS Tags: checkpoint59, checkpoint58y_post, checkpoint58t_post, checkpoint60, checkpoint61, checkpoint58w_post, checkpoint58o_post, checkpoint58p_post, checkpoint58q_post, checkpoint58r_post, checkpoint58n_post, checkpoint59q, checkpoint59p, checkpoint59r, checkpoint59e, checkpoint59d, checkpoint59g, checkpoint59f, checkpoint59a, checkpoint59c, checkpoint59b, checkpoint59m, checkpoint59l, checkpoint59o, checkpoint59n, checkpoint59i, checkpoint59h, checkpoint59k, checkpoint58v_post, checkpoint58x_post, checkpoint59j, checkpoint58u_post, checkpoint58s_post, checkpoint61d, checkpoint61b, checkpoint61c, checkpoint61a
Changes since 1.5: +1 -1 lines
Oops mistake ... it should be a tab.

1 heimbach 1.2
2     #***********************************************************************
3     # Makefile for the ECCO off-line large scale optimization.
4     #
5     # started: Patrick Heimbach heimbach@mit.edu 19-Jun-2000
6     #
7     # changed:
8     #
9     #***********************************************************************
10    
11     # The optimization routines.
12     SRC = optim_main.F \
13     optim_sub.F \
14     optim_numbmod.F \
15     optim_initmod.F \
16     optim_readdata.F \
17     optim_writedata.F \
18     optim_write_control.F \
19 mlosch 1.4 xerbla.F \
20 heimbach 1.2 simul.F
21    
22     EXEDIR = ./
23    
24 heimbach 1.3 # Location of cpp preprocessor
25     # default is (Linux)
26     CPP = cat $< | /lib/cpp -P -traditional
27 heimbach 1.2 # on SUNOS
28     # CPP = cat $< | /usr/ccs/lib/cpp
29 heimbach 1.3
30 heimbach 1.2 INCLUDEDIRS = -I. \
31 heimbach 1.3 -I../verification/natl_box_adjoint/build/
32 heimbach 1.2
33     LIBDIRS = -L. \
34 heimbach 1.3 -L../lsopt/
35 heimbach 1.2
36     LIBS = -llsopt_ecco \
37     -lblas1
38    
39     # OPTMODE is either equal to OFFLINE or ONLINE
40     OPTMODE = OFFLINE
41     EXECUTABLE = $(EXEDIR)optim.x
42    
43     # The cpp flags.
44 heimbach 1.3 CPPFLAGS = -DREAL_BYTE=4 \
45     -DMAX_INDEPEND=1000000 \
46     -D_RL='double precision' \
47     -D$(OPTMODE)
48 heimbach 1.2
49 heimbach 1.3 # -DMAX_INDEPEND=293570968 \
50 heimbach 1.2 # FORTRAN compiler and its flags.
51 heimbach 1.3 # default is (Linux)
52     FC = f77
53    
54     # SGI o3k IRIX64
55     #FC = f77
56     #FFLAGS = -extend_source -bytereclen -mips4 -r8 -static
57    
58     # AER cluster
59     #FC = /opt/mpich/bin/mpif77
60     #FFLAGS = -byteswapio -r8 -Mnodclchk -Mextend
61 heimbach 1.2
62     # File removal.
63     RM = rm -f
64    
65 heimbach 1.3 SMALLF = $(SRC:.F=.f)
66     OBJECTS = $(SRC:.F=.o)
67    
68 heimbach 1.2 .SUFFIXES: .o .f .F
69    
70     all: $(EXECUTABLE)
71 heimbach 1.3 $(EXECUTABLE): $(OBJECTS)
72     $(FC) -o $@ $(FFLAGS) $(OBJECTS) $(LIBDIRS) $(LIBS)
73    
74 heimbach 1.2 depend:
75     makedepend -o .f $(INCLUDEDIRS) $(SRC)
76    
77     # The normal chain of rules is ( .F - .f - .o )
78     .F.f:
79     $(CPP) $(CPPFLAGS) $(INCLUDEDIRS) > $@
80 dfer 1.5 xerbla.f: xerbla.F
81 dfer 1.6 $(CPP) $(INCLUDEDIRS) > $@
82 heimbach 1.2 .f.o:
83     $(FC) $(FFLAGS) -c $<
84    
85     # Cleaning options.
86     clean:
87 heimbach 1.3 $(RM) $(EXEDIR)optim.x *.o *.f
88 heimbach 1.2
89     scratch:
90     $(RM) OPWARMD OPWARMI $(EXEDIR)optim.x $(OBJ)
91    
92     # DO NOT DELETE
93    

  ViewVC Help
Powered by ViewVC 1.1.22