1 |
cnh |
1.1 |
#!/bin/bash |
2 |
|
|
|
3 |
|
|
# $Header: /u/gcmpack/MITgcm/tools/build_options/darwin_ppc_xlf,v 1.2 2003/11/13 22:03:39 edhill Exp $ |
4 |
|
|
# |
5 |
|
|
# Build options for Darwin on G5 Mac with IBM XL Fortran compilers |
6 |
|
|
# tested on G5 dual, 2GHz |
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 ) |
8 |
|
|
# cc-compiler is available only with the Apple Developer Tools, |
9 |
|
|
# so make sure that those are installed |
10 |
|
|
# |
11 |
|
|
# **NOTES** |
12 |
|
|
# o with Darwin you must remember to build on a ufs file system. The default Darwin file system (hfs) treats |
13 |
|
|
# upper case and lower case file names as the same file. This breaks the current MITgcm build procedure. |
14 |
|
|
# o tim.c should use uembellished cloc() are the procedure name for XLF |
15 |
|
|
# ETIME (timers.F) and FDATE (utils.F) are not available with Darwin+XLF so need to be switched out. |
16 |
|
|
# |
17 |
|
|
|
18 |
|
|
CPP='/usr/bin/cpp -traditional -P -xassembler-with-cpp' |
19 |
|
|
FC=/opt/ibmcmp/xlf/8.1/bin/f77 |
20 |
|
|
LINK=/opt/ibmcmp/xlf/8.1/bin/f77 |
21 |
|
|
FFLAGS='-qfixed=132 -qsuffix=f=for' |
22 |
|
|
FOPTIM='-O3' |
23 |
|
|
NOOPTFLAGS='-O0' |
24 |
|
|
|
25 |
|
|
S64='$(TOOLSDIR)/set64bitConst.sh' |
26 |
|
|
MAKEDEPEND='${TOOLSDIR}/xmakedepend' |
27 |
|
|
#MAKEDEPEND=makedepend |
28 |
|
|
DEFINES='-DWORDLENGTH=4 -DNML_TERMINATOR=" /"' |