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