2 |
|
|
3 |
# $Header$ |
# $Header$ |
4 |
# |
# |
5 |
# Build options for Darwin on G5 Mac with IBM XL Fortran compilers |
# Notes: |
6 |
# tested on G5 dual, 2GHz |
# This optfile was created by Nicolas Wienders and Ed Hill and |
7 |
# ( 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 ) |
# is known to work (complete with netCDF) on at least one Mac |
8 |
# cc-compiler is available only with the Apple Developer Tools, |
# system. |
|
# so make sure that those are installed |
|
|
# |
|
|
# **NOTES** |
|
|
# o with Darwin you must remember to build on a ufs file system. The default Darwin file system (hfs) treats |
|
|
# upper case and lower case file names as the same file. This breaks the current MITgcm build procedure. |
|
|
# o tim.c should use uembellished cloc() are the procedure name for XLF |
|
|
# ETIME (timers.F) and FDATE (utils.F) are not available with Darwin+XLF so need to be switched out. |
|
|
# |
|
9 |
|
|
10 |
CPP='/usr/bin/cpp -traditional -P -xassembler-with-cpp' |
CPP='/usr/bin/cpp -traditional -P -xassembler-with-cpp' |
11 |
FC=/opt/ibmcmp/xlf/8.1/bin/f77 |
FC=/opt/ibmcmp/xlf/8.1/bin/f77 |
13 |
FFLAGS='-qfixed=132 -qsuffix=f=for' |
FFLAGS='-qfixed=132 -qsuffix=f=for' |
14 |
FOPTIM='-O3' |
FOPTIM='-O3' |
15 |
NOOPTFLAGS='-O0' |
NOOPTFLAGS='-O0' |
16 |
|
LIBS='-L/usr/local/netcdf/lib -lnetcdf' |
17 |
|
INCLUDES='-I/usr/local/netcdf/include' |
18 |
|
SKIP_NETCDF_CHECK=t |
19 |
|
HAVE_NETCDF=t |
20 |
|
FC_NAMEMANGLE="#define FC_NAMEMANGLE(X) X" |
21 |
|
|
22 |
S64='$(TOOLSDIR)/set64bitConst.sh' |
S64='$(TOOLSDIR)/set64bitConst.sh' |
|
#MAKEDEPEND='${TOOLSDIR}/xmakedepend' |
|
|
##MAKEDEPEND=makedepend |
|
23 |
MAKEDEPEND='$(TOOLSDIR)/cyrus-imapd-makedepend/makedepend' |
MAKEDEPEND='$(TOOLSDIR)/cyrus-imapd-makedepend/makedepend' |
24 |
DEFINES='-DWORDLENGTH=4 -DNML_TERMINATOR=" /"' |
DEFINES='-DWORDLENGTH=4 -DNML_TERMINATOR=" /"' |