blob: 9fae6e998befba28ae8c687a3afa273569faedd3 (
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
|
#! /bin/sh
# /*@@
# @file solaris
# @date Mon May 8 11:56:45 2000
# @author Tom Goodale
# @desc
#
# @enddesc
# @version $Header: /mnt/data2/cvs2svn/cvs-repositories/Cactus/lib/make/known-architectures/solaris,v 1.9 2002-08-13 12:05:00 tradke Exp $
# @@*/
if test "$CCTK_CONFIG_STAGE" = "preferred-compilers" ; then
: ${CC='cc'}
: ${CXX='CC'}
else
if test "x$F90" = 'xf90'; then
f90_path="`which f90 | sed -e 's:/bin/f90::'`"
SOLARIS_F90_LIBDIR="`find $f90_path -name libfsu.a -follow -print | grep lib/libfsu.a | sed -e 's:/libfsu.a::'`"
if test -n "$SOLARIS_F90_LIBDIR"; then
SOLARIS_F90_LIBS="fsu fsumai fminvai fmaxvai fai sunmath mvec"
fi
fi
: ${LIBS="socket nsl $SOLARIS_F90_LIBS m ucb"}
if test -d /usr/ucblib ; then
: ${LIBDIRS="/usr/ucblib $SOLARIS_F90_LIBDIR"}
else
: ${LIBDIRS="/usr/ucb $SOLARIS_F90_LIBDIR"}
fi
: ${C_DEPEND='$(CPP) -M $(CPPFLAGS)'}
: ${CXX_DEPEND='$(CPP) -M $(CPPFLAGS)'}
if test "$CC" = 'cc' ; then
: ${C_OPTIMISE_FLAGS='-xO5 -xtarget=native -fast'}
fi
if test "$CXX" = 'CC' ; then
: ${CXX_OPTIMISE_FLAGS='-xO5 -xtarget=native -fast'}
fi
: ${F90_OPTIMISE_FLAGS='-xO5 -xtarget=native -fast'}
: ${F77_OPTIMISE_FLAGS='-xO5 -xtarget=native -fast'}
# MPI stuff
if test -n "$MPI" ; then
NATIVE_MPI_LIBS="mpi"
NATIVE_MPI_LIB_DIRS="/opt/SUNWhpc/lib"
NATIVE_MPI_INC_DIRS="/opt/SUNWhpc/include"
fi
fi
|