Statistiques
| Révision :

root / setup / make_generic

Historique | Voir | Annoter | Télécharger (4,27 ko)

1
#!/bin/sh
2
#
3
#  
4
#  -- High Performance Computing Linpack Benchmark (HPL)                
5
#     HPL - 2.0 - September 10, 2008                          
6
#     Antoine P. Petitet                                                
7
#     University of Tennessee, Knoxville                                
8
#     Innovative Computing Laboratory                                 
9
#     (C) Copyright 2000-2008 All Rights Reserved                       
10
#                                                                       
11
#  -- Copyright notice and Licensing terms:                             
12
#                                                                       
13
#  Redistribution  and  use in  source and binary forms, with or without
14
#  modification, are  permitted provided  that the following  conditions
15
#  are met:                                                             
16
#                                                                       
17
#  1. Redistributions  of  source  code  must retain the above copyright
18
#  notice, this list of conditions and the following disclaimer.        
19
#                                                                       
20
#  2. Redistributions in binary form must reproduce  the above copyright
21
#  notice, this list of conditions,  and the following disclaimer in the
22
#  documentation and/or other materials provided with the distribution. 
23
#                                                                       
24
#  3. All  advertising  materials  mentioning  features  or  use of this
25
#  software must display the following acknowledgement:                 
26
#  This  product  includes  software  developed  at  the  University  of
27
#  Tennessee, Knoxville, Innovative Computing Laboratory.             
28
#                                                                       
29
#  4. The name of the  University,  the name of the  Laboratory,  or the
30
#  names  of  its  contributors  may  not  be used to endorse or promote
31
#  products  derived   from   this  software  without  specific  written
32
#  permission.                                                          
33
#                                                                       
34
#  -- Disclaimer:                                                       
35
#                                                                       
36
#  THIS  SOFTWARE  IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
37
#  ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,  INCLUDING,  BUT NOT
38
#  LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
39
#  A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE UNIVERSITY
40
#  OR  CONTRIBUTORS  BE  LIABLE FOR ANY  DIRECT,  INDIRECT,  INCIDENTAL,
41
#  SPECIAL,  EXEMPLARY,  OR  CONSEQUENTIAL DAMAGES  (INCLUDING,  BUT NOT
42
#  LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
43
#  DATA OR PROFITS; OR BUSINESS INTERRUPTION)  HOWEVER CAUSED AND ON ANY
44
#  THEORY OF LIABILITY, WHETHER IN CONTRACT,  STRICT LIABILITY,  OR TORT
45
#  (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
46
#  OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
47
# ######################################################################
48
#  
49
#
50
# Configure script to create Make.UNKNOWN from  Make.UNKNOWN.in  for the
51
# HPL distribution, so users without a real Unix system can have a gene-
52
# ric  Make.UNKNOWN  to  edit  for  their needs. This script substitutes
53
# pathless version of all the system programs, and commonly used options
54
# values into Make.UNKNOWN.in.
55
#
56
########################################################################
57
#
58
sed -e 's%@SHELL@%/bin/sh%' \
59
    -e 's%@CD@%cd%' \
60
    -e 's%@CP@%cp%' \
61
    -e 's%@LN_S@%ln -s%' \
62
    -e 's%@MKDIR@%mkdir%' \
63
    -e 's%@RM@%/bin/rm -f%' \
64
    -e 's%@TOUCH@%touch%' \
65
    -e 's%@ARCH@%UNKNOWN%' \
66
    -e 's%@CC@%mpicc%' \
67
    -e 's%@CCNOOPT@%%' \
68
    -e 's%@CCFLAGS@%%' \
69
    -e 's%@LINKER@%mpif77%' \
70
    -e 's%@LINKFLAGS@%%' \
71
    -e 's%@ARCHIVER@%ar%' \
72
    -e 's%@ARFLAGS@%r%' \
73
    -e 's%@RANLIB@%echo%' \
74
    -e 's%@MPDIR@%%' \
75
    -e 's%@MPINC@%%' \
76
    -e 's%@MPLIB@%%' \
77
    -e 's%@F2CDEFS@%-DAdd_ -DF77_INTEGER=int -DStringSunStyle%' \
78
    -e 's%@LADIR@%%' \
79
    -e 's%@LAINC@%%' \
80
    -e 's%@LALIB@%-lblas%' \
81
    Make.UNKNOWN.in > Make.UNKNOWN
82
#
83
########################################################################