/[MITgcm]/MITgcm_contrib/jscott/igsm/src/Makefile
ViewVC logotype

Contents of /MITgcm_contrib/jscott/igsm/src/Makefile

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


Revision 1.3 - (show annotations) (download)
Tue May 8 15:55:35 2007 UTC (18 years, 2 months ago) by jscott
Branch: MAIN
Changes since 1.2: +6 -10 lines
read from atm-ocean common block in atmosphere.F

1 ###################################################################
2 ## A makefile for MIT Global Climate and Biogeochemistry Model ##
3 ## --------------------- ##
4 ## Chien Wang, July 31, 1995 ##
5 ## MIT Joint Program for Global Change ##
6 ###################################################################
7
8 ##
9 ## === Define files
10 ##
11
12 TARGET = $(LIBDIR)LIBATM.a
13 MAKELIB = TRUE
14 PLATFORM = Linux
15
16
17 # --- Source files
18 #JRS removed ocean_rd.F and driver.F
19 FILES = atmosphere.F check_settings.F chemglobal.F chemtemco2.F \
20 comp1.F condse.F daily_new.F daily_ocean.F \
21 drycnv.F eddypa.F fft36.F fltr4tem.F forcedozone.F \
22 forset.F gr_for_3docean.F grland.F grocean.F \
23 hordiff_all.F hordiff.F input.F \
24 md2g04.F mesh.F newcon.F obsco2.F obso3.F obssolar.F \
25 prland.F surf_ocean.F climate2tem.F zclimate2tem.F \
26 sur4clm.F surf_land.F surf_clm.F gr_clm.F \
27 r95mit.F radia0.F radia_chem.F radia.F \
28 radiagso_clm.F readSTAER.F rtgases.F \
29 bgrghg.F sdrag.F senint.F sulfut.F surface.F \
30 t2m.F tgases.F trends4_igsm.F trends_giss.F trvdata.F \
31 vfunct.F vweigav.F \
32 check_lib.F dd2g04.F util.F
33
34 INCDIR := ../inc/
35 LIBDIR := ./
36
37 # --- include files
38 INCFILE1 = $(INCDIR)ctrparam.h
39
40 ##
41 ## === Compile, link and execute sectio:
42 ##
43
44 # --- for Digital UNIX
45 ifeq ($(PLATFORM),OSF1)
46 FFLAGS = -O -cpp -I$(INCDIR) -non_shared -om -real_size 64 -integer_size 32
47 FFLAGS2= $(FFLAGS)
48 CC = f90
49 endif
50
51 # --- for PGI/LINUX
52 ifeq ($(PLATFORM),Linux)
53 #FFLAGS = -I$(INCDIR) -fast -r8 -i4 -Mdalign -Msave
54 ifeq ($(MAKELIB),TRUE)
55 FFLAGS = -I$(INCDIR) -r8 -i4 -c -Mdalign -Msave
56 else
57 FFLAGS = -I$(INCDIR) -r8 -i4 -Mdalign -Msave
58 endif
59 CC = pgf90
60
61 endif
62
63 OBJECT =atmosphere.o check_settings.o chemglobal.o chemtemco2.o \
64 comp1.o condse.o daily_new.o daily_ocean.o \
65 drycnv.o eddypa.o fft36.o fltr4tem.o forcedozone.o \
66 forset.o gr_for_3docean.o grland.o grocean.o \
67 hordiff_all.o hordiff.o input.o \
68 md2g04.o mesh.o newcon.o obsco2.o robso3.o obssolar.o \
69 prland.o surf_ocean.o climate2tem.o zclimate2tem.o \
70 sur4clm.o surf_land.o surf_clm.o gr_clm.o \
71 r95mit.o radia0.o radia_chem.o radia.o \
72 radiagso_clm.o readSTAER.o rtgases.o \
73 bgrghg.o sdrag.o senint.o sulfut.o surface.o \
74 t2m.o tgases.o trends_igsm.o trends_giss.o trvdata.o \
75 vfunct.o vweigav.o \
76 check_lib.o dd2g04.o util.o
77
78 ##
79 ## === Assign dependencies:
80 ##
81
82 ALL: $(TARGET)
83
84 $(TARGET): $(OBJECT)
85 ar vru $(TARGET) $(OBJECT)
86 ranlib $(TARGET)
87
88 .F.o:
89 $(CC) $(FFLAGS) $<
90
91
92 #clean:
93 # rm -f ./*.o ../fort.*
94
95
96

  ViewVC Help
Powered by ViewVC 1.1.22