blob: 91597cd653536aee7f2859f91641523b57d0eef0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
|
#! /bin/sh
# /*@@
# @file darwin
# @date Thu 10 May 2001
# @author Thomas Radke
# @desc
# Known architecture stuff for MacOS X (Darwin)
# @enddesc
# @version $Header: /mnt/data2/cvs2svn/cvs-repositories/Cactus/lib/make/known-architectures/darwin,v 1.6 2002-11-07 10:34:44 tradke Exp $
# @@*/
if test "$CCTK_CONFIG_STAGE" = 'preferred-compilers' ; then
:
else
# this fixes some darwin-specific preprocessor bugs (?)
CFLAGS='-no-cpp-precomp'
C_DEPEND='$(CC) -E -M $(CFLAGS) $(CPPFLAGS)'
# Determine which Fortran 90 compiler is in use
MAC_F90_COMP=none
if test -n "$F90" && test "$F90" != 'none' ; then
MAC_F90_COMP=absoft
elif test -n "$F77" ; then
if test "`$F77 -? 2>&1 | grep -i absoft`" ; then
MAC_F77_COMP=absoft77
else
echo Unknown MacOS X f77 compiler.
echo Please add appropriate information to
echo $srcdir/known-architectures/darwin
echo ad send the updated file to CactusMaint
echo We will try anyway ...
fi
fi
#Set the appropriate flags
case "$MAC_F90_COMP" in
absoft)
# : ${F90FLAGS='-N11'}
: ${LIBS='f90math fio f77math m'}
: ${F90_OPTIMISE_FLAGS='-s -O'}
: ${F77_OPTIMISE_FLAGS='-s -O'}
# Test if it is a version of the absoft compiler which has the library in a custom place.
if test -n "$ABSOFT" ; then
: ${LIBDIRS='$(ABSOFT)/lib'}
fi
: ${F77_DEBUG_FLAGS='-g'}
: ${F90_DEBUG_FLAGS='-g'}
: ${F77_WARN_FLAGS='-m0'}
: ${F90_WARN_FLAGS='-m0'}
;;
absoft77)
: ${LIBS='fio f77math m'}
F90FLAGS='-f'
# Test if it is a version of the absoft compiler which has the library in a custom place.
if test -n "$ABSOFT" ; then
: ${LIBDIRS='$(ABSOFT)/lib'}
fi
: ${F77_DEBUG_FLAGS='-g'}
: ${F90_DEBUG_FLAGS='-g'}
: ${F77_WARN_FLAGS='-m0'}
: ${F90_WARN_FLAGS='-m0'}
;;
none)
: ${LIBS='m'}
;;
*)
echo Unknown Darwin f90 compiler.
echo Please add appropriate information to
echo $srcdir/known-architectures/darwin
echo and send the updated file to CactusMaint
echo We will try anyway ...
;;
esac
# Darwin's ar command doesn't understand the '-s' flag
# so we have to use ranlib to add a table of contents to libraries
: ${ARFLAGS='ruc'}
: ${USE_RANLIB='yes'}
# MPI stuff
#
# Darwin has no native MPI, so we don't set any NATIVE_MPI_XXX variables.
# This is caught later on by lib/make/extras/MPI/NATIVE.
fi
|