21 |
drycnv.F eddypa.F fft36.F fltr4tem.F forcedozone.F \ |
drycnv.F eddypa.F fft36.F fltr4tem.F forcedozone.F \ |
22 |
forset.F gr_for_3docean.F grland.F grocean.F \ |
forset.F gr_for_3docean.F grland.F grocean.F \ |
23 |
hordiff_all.F hordiff.F input.F \ |
hordiff_all.F hordiff.F input.F \ |
24 |
md2g04.F mesh.F newcon.F obsco2.F obso3.F \ |
md2g04.F mesh.F newcon.F obsco2.F robso3.F obssolar.F \ |
|
obssolar.F ocean4atm.F \ |
|
25 |
prland.F surf_ocean.F climate2tem.F zclimate2tem.F \ |
prland.F surf_ocean.F climate2tem.F zclimate2tem.F \ |
26 |
sur4clm.F surf_land.F surf_clm.F gr_clm.F \ |
sur4clm.F surf_land.F surf_clm.F gr_clm.F \ |
27 |
r95mit.F radia0.F radia_chem.F radia.F \ |
r95mit.F radia0.F radia_chem.F radia.F \ |
28 |
radiagso_clm.F rd_ocean4atmrst.F readSTAER.F rtgases.F \ |
radiagso_clm.F readSTAER.F rtgases.F \ |
29 |
bgrghg.F sdrag.F senint.F sulfut.F surface.F \ |
bgrghg.F sdrag.F senint.F sulfut.F surface.F \ |
30 |
t2m.F tgases.F trends4_igsm.F trends_giss.F trvdata.F \ |
t2m.F tgases.F trends_igsm.F trends_giss.F trvdata.F \ |
31 |
vfunct.F \ |
vfunct.F vweigav.F eppaemission.F kvcarbon.F \ |
32 |
vweigav.F wr_ocean4atmrst.F \ |
check_lib.F dd2g04.F util.F \ |
33 |
check_lib.F dd2g04.F util.F |
wr_rstrt_nem.F rd_rstrt_nem.F |
34 |
|
|
35 |
|
|
36 |
INCDIR := ../inc/ |
INCDIR := ../inc/ |
37 |
LIBDIR := ./ |
LIBDIR := ./ |
60 |
endif |
endif |
61 |
CC = pgf90 |
CC = pgf90 |
62 |
|
|
63 |
|
CXX = pgCC |
64 |
|
FFLAGCC= -I$(INCDIR) -fast |
65 |
|
LFLAGCC=-lstd -lC -lm -lpgc -lgcc -lc |
66 |
|
|
67 |
|
endif |
68 |
|
|
69 |
|
#LIBS = $(LIBDIR)GACM64.a |
70 |
|
#LIBC = $(LIBDIR)LIBCHEM.a |
71 |
|
#LIBM = $(LIBDIR)LIBMETA.a |
72 |
|
#LIBCLM = $(LIBDIR)LIBCLM.a |
73 |
|
#LIBTEM = $(LIBDIR)LIBTEM.a |
74 |
|
#LIBNCDF= /usr/local/netcdf-3.5.1-beta13/lib/libnetcdf.a |
75 |
|
|
76 |
|
ifeq ($(CHEM),TRUE) |
77 |
|
LIBS:= $(LIBS) $(LIBC) |
78 |
|
endif |
79 |
|
ifeq ($(META),TRUE) |
80 |
|
LIBS:= $(LIBS) $(LIBM) |
81 |
|
endif |
82 |
|
ifeq ($(CLM),TRUE) |
83 |
|
LIBS:= $(LIBS) $(LIBCLM) $(LIBDIR)libesmf.a $(LIBDIR)libmpiuni.a |
84 |
|
LIBS:= $(LIBS) $(LIBNCDF) |
85 |
|
endif |
86 |
|
ifeq ($(TEM),TRUE) |
87 |
|
LIBS:= $(LIBS) $(LIBTEM) |
88 |
endif |
endif |
89 |
|
|
90 |
OBJECT =atmosphere.o check_settings.o chemglobal.o chemtemco2.o \ |
OBJECT =atmosphere.o check_settings.o chemglobal.o chemtemco2.o \ |
92 |
drycnv.o eddypa.o fft36.o fltr4tem.o forcedozone.o \ |
drycnv.o eddypa.o fft36.o fltr4tem.o forcedozone.o \ |
93 |
forset.o gr_for_3docean.o grland.o grocean.o \ |
forset.o gr_for_3docean.o grland.o grocean.o \ |
94 |
hordiff_all.o hordiff.o input.o \ |
hordiff_all.o hordiff.o input.o \ |
95 |
md2g04.o mesh.o newcon.o obsco2.o robso3.o \ |
md2g04.o mesh.o newcon.o obsco2.o robso3.o obssolar.o \ |
|
obssolar.o ocean4atm.o \ |
|
96 |
prland.o surf_ocean.o climate2tem.o zclimate2tem.o \ |
prland.o surf_ocean.o climate2tem.o zclimate2tem.o \ |
97 |
sur4clm.o surf_land.o surf_clm.o gr_clm.o \ |
sur4clm.o surf_land.o surf_clm.o gr_clm.o \ |
98 |
r95mit.o radia0.o radia_chem.o radia.o \ |
r95mit.o radia0.o radia_chem.o radia.o \ |
99 |
radiagso_clm.o rd_ocean4atmrst.o readSTAER.o rtgases.o \ |
radiagso_clm.o readSTAER.o rtgases.o \ |
100 |
bgrghg.o sdrag.o senint.o sulfut.o surface.o \ |
bgrghg.o sdrag.o senint.o sulfut.o surface.o \ |
101 |
t2m.o tgases.o trends_igsm.o trends_giss.o trvdata.o \ |
t2m.o tgases.o trends_igsm.o trends_giss.o trvdata.o \ |
102 |
vfunct.o \ |
vfunct.o vweigav.o eppaemission.o kvcarbon.o \ |
103 |
vweigav.o wr_ocean4atmrst.o \ |
check_lib.o dd2g04.o util.o \ |
104 |
check_lib.o dd2g04.o util.o |
wr_rstrt_nem.o rd_rstrt_nem.o |
105 |
|
|
106 |
## |
## |
107 |
## === Assign dependencies: |
## === Assign dependencies: |
108 |
## |
## |
109 |
|
|
110 |
|
ifeq ($(MAKELIB),TRUE) |
111 |
ALL: $(TARGET) |
ALL: $(TARGET) |
112 |
|
|
113 |
$(TARGET): $(OBJECT) |
$(TARGET): $(OBJECT) |
117 |
.F.o: |
.F.o: |
118 |
$(CC) $(FFLAGS) $< |
$(CC) $(FFLAGS) $< |
119 |
|
|
120 |
|
else |
121 |
|
|
122 |
|
LIB3DO = $(LIBDIR)LIB3DO_DICSS.a |
123 |
|
LIB3DO = $(LIBDIR)LIB3DOCEAN.a |
124 |
|
LIBS:= $(LIBS) $(LIB3DO) |
125 |
|
|
126 |
|
ALL: $(OBJECT) $(INCFILE1) $(INCFILES2) $(INCFILES3) $(INCFILES4) |
127 |
|
$(CC) $(FFLAGS) $(OBJECT) -o mod.out $(LIBS) $(LFLAGCC) |
128 |
|
|
129 |
|
OBJECT: $(INCFILE1) $(INCFILES2) $(INCFILES3) $(INCFILES4) |
130 |
|
|
131 |
|
.F.o: |
132 |
|
$(CC) -c $(FFLAGS) $< |
133 |
|
|
134 |
|
endif |
135 |
|
|
136 |
#clean: |
#clean: |
137 |
# rm -f ./*.o ../fort.* |
# rm -f ./*.o ../fort.* |