1 |
#!/bin/bash |
2 |
# |
3 |
# $Header: /u/gcmpack/MITgcm/tools/build_options/darwin_ppc_xlf_tiger_baylor,v 1.1 2006/05/03 18:48:35 baylor Exp $ |
4 |
# $Name: $ |
5 |
|
6 |
# Build options for Darwin on G5 Mac with IBM XL Fortran compilers |
7 |
# tested on G5 dual, 2GHz |
8 |
# ( Darwin eaps-dhcp-162.lcs.mit.edu 6.7.5 Darwin Kernel Version 6.7.5: Mon Aug 11 19:28:40 PDT 2003; root:xnu/xnu-344.21.73.obj~1/RELEASE_PPC Power Macintosh powerpc ) |
9 |
# cc-compiler is available only with the Apple Developer Tools, |
10 |
# so make sure that those are installed |
11 |
# |
12 |
# **NOTES** |
13 |
# o with Darwin you must remember to build on a ufs file system. The default Darwin file system (hfs) treats |
14 |
# upper case and lower case file names as the same file. This breaks the current MITgcm build procedure. |
15 |
# o tim.c should use uembellished cloc() are the procedure name for XLF |
16 |
# ETIME (timers.F) and FDATE (utils.F) are not available with Darwin+XLF so need to be switched out. |
17 |
# |
18 |
|
19 |
#export TOOLSDIR=/Users/baylor/Research/MITgcm.up/tools |
20 |
|
21 |
CPP='/usr/bin/cpp -traditional -P -xassembler-with-cpp' |
22 |
FC=/opt/ibmcmp/xlf/8.1/bin/f77 |
23 |
LINK=/opt/ibmcmp/xlf/8.1/bin/f77 |
24 |
#LINK=/usr/local/bin/g77 |
25 |
FFLAGS='-qfixed=132 -qsuffix=f=for' |
26 |
FOPTIM='-O5' |
27 |
#SKIP_NETCDF_CHECK=t |
28 |
#HAVE_NETCDF=t |
29 |
LIBS='-L/Users/baylor/Research/netcdf-3.6.0-xlf/lib -lnetcdf -L/usr/lib -lSystemStubs' |
30 |
INCLUDES='-I/Users/baylor/Research/netcdf-3.6.0-xlf/include' |
31 |
# FC_NAMEMANGLE="#define FC_NAMEMANGLE(X) _ ## X" |
32 |
FC_NAMEMANGLE="#define FC_NAMEMANGLE(X) X" |
33 |
|
34 |
S64='$(TOOLSDIR)/set64bitConst.sh' |
35 |
#MAKEDEPEND='${TOOLSDIR}/xmakedepend' |
36 |
MAKEDEPEND=makedepend |
37 |
DEFINES='-DWORDLENGTH=4' |
38 |
NOOPTFILES='ini_curvilinear_grid.F' |
39 |
NOOPTFLAGS='-O3' |