1 |
#!/bin/csh -fxv |
2 |
# |
3 |
set OPATH = ( ../../run/mmout ) |
4 |
set OINC = ( ../../run ) |
5 |
|
6 |
source ${BUILDROOT}/mytools/comp_profile.BASE |
7 |
source ${BUILDROOT}/mytools/comp_profile.${COMP_PROF} |
8 |
|
9 |
set includes = ( -I${OPATH} -I${OINC} ${compinc} ) |
10 |
set libs = ( -L${OPATH} -lmitgcm_org_ocn -lmitgcmrtl ${complibs} -lesmf ) |
11 |
|
12 |
$comp $compopts -c ../utils/mitgcm_org_esmf_utils.F $includes $libs |
13 |
$comp $compopts -c mitgcm_org_ocn_esmf_exports.F $includes $libs |
14 |
$comp $compopts -c mitgcm_org_ocn_esmf_imports.F $includes $libs |
15 |
$comp $compopts -c mitgcm_org_ocn_esmf_driver.F $includes $libs |
16 |
\rm main.o |
17 |
|
18 |
${arcommand} ${aropts} libmitgcm_org_ocn_esmf_driver.a *.o |
19 |
|
20 |
if ( ! -d ${APPLIB_PATH} ) then |
21 |
mkdir -p ${APPLIB_PATH} |
22 |
endif |
23 |
if ( ! -d ${APPF90MOD_PATH} ) then |
24 |
mkdir -p ${APPF90MOD_PATH} |
25 |
endif |
26 |
cp *.a ${APPLIB_PATH} |
27 |
cp *.mod ${APPF90MOD_PATH} |
28 |
\rm *.a *.mod |
29 |
|