/[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.1 - (show annotations) (download)
Fri Aug 11 19:35:33 2006 UTC (18 years, 11 months ago) by jscott
Branch: MAIN
atm2d package

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 \
25 obssolar.F ocean4atm.F \
26 prland.F surf_ocean.F climate2tem.F zclimate2tem.F \
27 sur4clm.F surf_land.F surf_clm.F gr_clm.F \
28 r95mit.F radia0.F radia_chem.F radia.F \
29 radiagso.F rd_ocean4atmrst.F readSTAER.F rtgases.F \
30 bgrghg.F sdrag.F senint.F sulfut.F surface.F \
31 t2m.F tgases.F trends4_igsm.F trends_giss.F trvdata.F \
32 vfunct.F \
33 vweigav.F wr_ocean4atmrst.F \
34 check_lib.F dd2g04.F util.F
35
36 INCDIR := ../inc/
37 LIBDIR := ./
38
39 # --- include files
40 INCFILE1 = $(INCDIR)ctrparam.h
41
42 ##
43 ## === Compile, link and execute sectio:
44 ##
45
46 # --- for Digital UNIX
47 ifeq ($(PLATFORM),OSF1)
48 FFLAGS = -O -cpp -I$(INCDIR) -non_shared -om -real_size 64 -integer_size 32
49 FFLAGS2= $(FFLAGS)
50 CC = f90
51 endif
52
53 # --- for PGI/LINUX
54 ifeq ($(PLATFORM),Linux)
55 #FFLAGS = -I$(INCDIR) -fast -r8 -i4 -Mdalign -Msave
56 ifeq ($(MAKELIB),TRUE)
57 FFLAGS = -I$(INCDIR) -r8 -i4 -c -Mdalign -Msave
58 else
59 FFLAGS = -I$(INCDIR) -r8 -i4 -Mdalign -Msave
60 endif
61 CC = /usr/local/pkg/pgi/pgi-6.1-5/linux86/6.1/bin/pgf90
62
63 endif
64
65 #LIBS = $(LIBDIR)GACM64.a
66 #LIBC = $(LIBDIR)LIBCHEM.a
67 #LIBM = $(LIBDIR)LIBMETA.a
68 #LIBCLM = $(LIBDIR)LIBCLM.old.a
69 #LIBCLM = $(LIBDIR)LIBCLM.032706.a
70 #LIBTEM = $(LIBDIR)LIBTEM.a
71 #LIBNCDF= /usr/local/netcdf-3.5.1-beta13/lib/libnetcdf.a
72
73 ifeq ($(CHEM),TRUE)
74 LIBS:= $(LIBS) $(LIBC)
75 endif
76 ifeq ($(META),TRUE)
77 LIBS:= $(LIBS) $(LIBM)
78 endif
79 ifeq ($(CLM),TRUE)
80 LIBS:= $(LIBS) $(LIBCLM) $(LIBDIR)libesmf.a $(LIBDIR)libmpiuni.a
81 LIBS:= $(LIBS) $(LIBNCDF)
82 endif
83 ifeq ($(TEM),TRUE)
84 LIBS:= $(LIBS) $(LIBTEM)
85 endif
86
87 OBJECT =atmosphere.o check_settings.o chemglobal.o chemtemco2.o \
88 comp1.o condse.o daily_new.o daily_ocean.o \
89 drycnv.o eddypa.o fft36.o fltr4tem.o forcedozone.o \
90 forset.o gr_for_3docean.o grland.o grocean.o \
91 hordiff_all.o hordiff.o input.o \
92 md2g04.o mesh.o newcon.o obsco2.o robso3.o \
93 obssolar.o ocean4atm.o \
94 prland.o surf_ocean.o climate2tem.o zclimate2tem.o \
95 sur4clm.o surf_land.o surf_clm.o gr_clm.o \
96 r95mit.o radia0.o radia_chem.o radia.o \
97 radiagso.o rd_ocean4atmrst.o readSTAER.o rtgases.o \
98 bgrghg.o sdrag.o senint.o sulfut.o surface.o \
99 t2m.o tgases.o trends_igsm.o trends_giss.o trvdata.o \
100 vfunct.o \
101 vweigav.o wr_ocean4atmrst.o \
102 check_lib.o dd2g04.o util.o
103
104 ##
105 ## === Assign dependencies:
106 ##
107
108 ifeq ($(MAKELIB),TRUE)
109 ALL: $(TARGET)
110
111 $(TARGET): $(OBJECT)
112 ar vru $(TARGET) $(OBJECT)
113 ranlib $(TARGET)
114
115 .F.o:
116 $(CC) $(FFLAGS) $<
117
118 else
119
120 LIB3DO = $(LIBDIR)LIB3DO_DICSS.a
121 LIB3DO = $(LIBDIR)LIB3DOCEAN.a
122 LIBS:= $(LIBS) $(LIB3DO)
123
124 ALL: $(OBJECT) $(INCFILE1) $(INCFILES2) $(INCFILES3) $(INCFILES4)
125 $(CC) $(FFLAGS) $(OBJECT) -o mod.out $(LIBS) $(LFLAGCC)
126
127 OBJECT: $(INCFILE1) $(INCFILES2) $(INCFILES3) $(INCFILES4)
128
129 .F.o:
130 $(CC) -c $(FFLAGS) $<
131
132 endif
133
134 #clean:
135 # rm -f ./*.o ../fort.*
136
137
138

  ViewVC Help
Powered by ViewVC 1.1.22