26 |
prland.F surf_ocean.F climate2tem.F zclimate2tem.F \ |
prland.F surf_ocean.F climate2tem.F zclimate2tem.F \ |
27 |
sur4clm.F surf_land.F surf_clm.F gr_clm.F \ |
sur4clm.F surf_land.F surf_clm.F gr_clm.F \ |
28 |
r95mit.F radia0.F radia_chem.F radia.F \ |
r95mit.F radia0.F radia_chem.F radia.F \ |
29 |
radiagso.F rd_ocean4atmrst.F readSTAER.F rtgases.F \ |
radiagso_clm.F rd_ocean4atmrst.F readSTAER.F rtgases.F \ |
30 |
bgrghg.F sdrag.F senint.F sulfut.F surface.F \ |
bgrghg.F sdrag.F senint.F sulfut.F surface.F \ |
31 |
t2m.F tgases.F trends4_igsm.F trends_giss.F trvdata.F \ |
t2m.F tgases.F trends4_igsm.F trends_giss.F trvdata.F \ |
32 |
vfunct.F \ |
vfunct.F \ |
33 |
vweigav.F wr_ocean4atmrst.F \ |
vweigav.F wr_ocean4atmrst.F \ |
34 |
check_lib.F dd2g04.F util.F |
check_lib.F dd2g04.F util.F |
35 |
|
|
36 |
INCDIR := ../inc/ |
INCDIR := ../inc/ |
37 |
LIBDIR := ./ |
LIBDIR := ./ |
38 |
|
|
58 |
else |
else |
59 |
FFLAGS = -I$(INCDIR) -r8 -i4 -Mdalign -Msave |
FFLAGS = -I$(INCDIR) -r8 -i4 -Mdalign -Msave |
60 |
endif |
endif |
61 |
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 |
|
62 |
|
|
|
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) |
|
63 |
endif |
endif |
64 |
|
|
65 |
OBJECT =atmosphere.o check_settings.o chemglobal.o chemtemco2.o \ |
OBJECT =atmosphere.o check_settings.o chemglobal.o chemtemco2.o \ |
72 |
prland.o surf_ocean.o climate2tem.o zclimate2tem.o \ |
prland.o surf_ocean.o climate2tem.o zclimate2tem.o \ |
73 |
sur4clm.o surf_land.o surf_clm.o gr_clm.o \ |
sur4clm.o surf_land.o surf_clm.o gr_clm.o \ |
74 |
r95mit.o radia0.o radia_chem.o radia.o \ |
r95mit.o radia0.o radia_chem.o radia.o \ |
75 |
radiagso.o rd_ocean4atmrst.o readSTAER.o rtgases.o \ |
radiagso_clm.o rd_ocean4atmrst.o readSTAER.o rtgases.o \ |
76 |
bgrghg.o sdrag.o senint.o sulfut.o surface.o \ |
bgrghg.o sdrag.o senint.o sulfut.o surface.o \ |
77 |
t2m.o tgases.o trends_igsm.o trends_giss.o trvdata.o \ |
t2m.o tgases.o trends_igsm.o trends_giss.o trvdata.o \ |
78 |
vfunct.o \ |
vfunct.o \ |
79 |
vweigav.o wr_ocean4atmrst.o \ |
vweigav.o wr_ocean4atmrst.o \ |
80 |
check_lib.o dd2g04.o util.o |
check_lib.o dd2g04.o util.o |
81 |
|
|
82 |
## |
## |
83 |
## === Assign dependencies: |
## === Assign dependencies: |
84 |
## |
## |
85 |
|
|
|
ifeq ($(MAKELIB),TRUE) |
|
86 |
ALL: $(TARGET) |
ALL: $(TARGET) |
87 |
|
|
88 |
$(TARGET): $(OBJECT) |
$(TARGET): $(OBJECT) |
92 |
.F.o: |
.F.o: |
93 |
$(CC) $(FFLAGS) $< |
$(CC) $(FFLAGS) $< |
94 |
|
|
|
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 |
|
95 |
|
|
96 |
#clean: |
#clean: |
97 |
# rm -f ./*.o ../fort.* |
# rm -f ./*.o ../fort.* |