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 obso3.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.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 trends4_igsm.F trends_giss.F trvdata.F \ |
31 |
vfunct.F \ |
vfunct.F vweigav.F \ |
|
vweigav.F wr_ocean4atmrst.F \ |
|
32 |
check_lib.F dd2g04.F util.F |
check_lib.F dd2g04.F util.F |
33 |
|
|
34 |
INCDIR := ../inc/ |
INCDIR := ../inc/ |
35 |
LIBDIR := ./ |
LIBDIR := ./ |
36 |
|
|
56 |
else |
else |
57 |
FFLAGS = -I$(INCDIR) -r8 -i4 -Mdalign -Msave |
FFLAGS = -I$(INCDIR) -r8 -i4 -Mdalign -Msave |
58 |
endif |
endif |
59 |
CC = /usr/local/pkg/pgi/pgi-6.1-5/linux86/6.1/bin/pgf90 |
CC = pgf90 |
|
|
|
|
endif |
|
|
|
|
|
#LIBS = $(LIBDIR)GACM64.a |
|
|
#LIBC = $(LIBDIR)LIBCHEM.a |
|
|
#LIBM = $(LIBDIR)LIBMETA.a |
|
|
#LIBCLM = $(LIBDIR)LIBCLM.old.a |
|
|
#LIBCLM = $(LIBDIR)LIBCLM.032706.a |
|
|
#LIBTEM = $(LIBDIR)LIBTEM.a |
|
|
#LIBNCDF= /usr/local/netcdf-3.5.1-beta13/lib/libnetcdf.a |
|
60 |
|
|
|
ifeq ($(CHEM),TRUE) |
|
|
LIBS:= $(LIBS) $(LIBC) |
|
|
endif |
|
|
ifeq ($(META),TRUE) |
|
|
LIBS:= $(LIBS) $(LIBM) |
|
|
endif |
|
|
ifeq ($(CLM),TRUE) |
|
|
LIBS:= $(LIBS) $(LIBCLM) $(LIBDIR)libesmf.a $(LIBDIR)libmpiuni.a |
|
|
LIBS:= $(LIBS) $(LIBNCDF) |
|
|
endif |
|
|
ifeq ($(TEM),TRUE) |
|
|
LIBS:= $(LIBS) $(LIBTEM) |
|
61 |
endif |
endif |
62 |
|
|
63 |
OBJECT =atmosphere.o check_settings.o chemglobal.o chemtemco2.o \ |
OBJECT =atmosphere.o check_settings.o chemglobal.o chemtemco2.o \ |
65 |
drycnv.o eddypa.o fft36.o fltr4tem.o forcedozone.o \ |
drycnv.o eddypa.o fft36.o fltr4tem.o forcedozone.o \ |
66 |
forset.o gr_for_3docean.o grland.o grocean.o \ |
forset.o gr_for_3docean.o grland.o grocean.o \ |
67 |
hordiff_all.o hordiff.o input.o \ |
hordiff_all.o hordiff.o input.o \ |
68 |
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 \ |
|
69 |
prland.o surf_ocean.o climate2tem.o zclimate2tem.o \ |
prland.o surf_ocean.o climate2tem.o zclimate2tem.o \ |
70 |
sur4clm.o surf_land.o surf_clm.o gr_clm.o \ |
sur4clm.o surf_land.o surf_clm.o gr_clm.o \ |
71 |
r95mit.o radia0.o radia_chem.o radia.o \ |
r95mit.o radia0.o radia_chem.o radia.o \ |
72 |
radiagso.o rd_ocean4atmrst.o readSTAER.o rtgases.o \ |
radiagso_clm.o readSTAER.o rtgases.o \ |
73 |
bgrghg.o sdrag.o senint.o sulfut.o surface.o \ |
bgrghg.o sdrag.o senint.o sulfut.o surface.o \ |
74 |
t2m.o tgases.o trends_igsm.o trends_giss.o trvdata.o \ |
t2m.o tgases.o trends_igsm.o trends_giss.o trvdata.o \ |
75 |
vfunct.o \ |
vfunct.o vweigav.o \ |
|
vweigav.o wr_ocean4atmrst.o \ |
|
76 |
check_lib.o dd2g04.o util.o |
check_lib.o dd2g04.o util.o |
77 |
|
|
78 |
## |
## |
79 |
## === Assign dependencies: |
## === Assign dependencies: |
80 |
## |
## |
81 |
|
|
|
ifeq ($(MAKELIB),TRUE) |
|
82 |
ALL: $(TARGET) |
ALL: $(TARGET) |
83 |
|
|
84 |
$(TARGET): $(OBJECT) |
$(TARGET): $(OBJECT) |
88 |
.F.o: |
.F.o: |
89 |
$(CC) $(FFLAGS) $< |
$(CC) $(FFLAGS) $< |
90 |
|
|
|
else |
|
|
|
|
|
LIB3DO = $(LIBDIR)LIB3DO_DICSS.a |
|
|
LIB3DO = $(LIBDIR)LIB3DOCEAN.a |
|
|
LIBS:= $(LIBS) $(LIB3DO) |
|
|
|
|
|
ALL: $(OBJECT) $(INCFILE1) $(INCFILES2) $(INCFILES3) $(INCFILES4) |
|
|
$(CC) $(FFLAGS) $(OBJECT) -o mod.out $(LIBS) $(LFLAGCC) |
|
|
|
|
|
OBJECT: $(INCFILE1) $(INCFILES2) $(INCFILES3) $(INCFILES4) |
|
|
|
|
|
.F.o: |
|
|
$(CC) -c $(FFLAGS) $< |
|
|
|
|
|
endif |
|
91 |
|
|
92 |
#clean: |
#clean: |
93 |
# rm -f ./*.o ../fort.* |
# rm -f ./*.o ../fort.* |