Statistiques
| Révision :

root / Make.top @ 7

Historique | Voir | Annoter | Télécharger (8,92 ko)

1
#  
2
#  -- High Performance Computing Linpack Benchmark (HPL)                
3
#     HPL - 2.0 - September 10, 2008                          
4
#     Antoine P. Petitet                                                
5
#     University of Tennessee, Knoxville                                
6
#     Innovative Computing Laboratory                                 
7
#     (C) Copyright 2000-2008 All Rights Reserved                       
8
#                                                                       
9
#  -- Copyright notice and Licensing terms:                             
10
#                                                                       
11
#  Redistribution  and  use in  source and binary forms, with or without
12
#  modification, are  permitted provided  that the following  conditions
13
#  are met:                                                             
14
#                                                                       
15
#  1. Redistributions  of  source  code  must retain the above copyright
16
#  notice, this list of conditions and the following disclaimer.        
17
#                                                                       
18
#  2. Redistributions in binary form must reproduce  the above copyright
19
#  notice, this list of conditions,  and the following disclaimer in the
20
#  documentation and/or other materials provided with the distribution. 
21
#                                                                       
22
#  3. All  advertising  materials  mentioning  features  or  use of this
23
#  software must display the following acknowledgement:                 
24
#  This  product  includes  software  developed  at  the  University  of
25
#  Tennessee, Knoxville, Innovative Computing Laboratory.             
26
#                                                                       
27
#  4. The name of the  University,  the name of the  Laboratory,  or the
28
#  names  of  its  contributors  may  not  be used to endorse or promote
29
#  products  derived   from   this  software  without  specific  written
30
#  permission.                                                          
31
#                                                                       
32
#  -- Disclaimer:                                                       
33
#                                                                       
34
#  THIS  SOFTWARE  IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
35
#  ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,  INCLUDING,  BUT NOT
36
#  LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
37
#  A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE UNIVERSITY
38
#  OR  CONTRIBUTORS  BE  LIABLE FOR ANY  DIRECT,  INDIRECT,  INCIDENTAL,
39
#  SPECIAL,  EXEMPLARY,  OR  CONSEQUENTIAL DAMAGES  (INCLUDING,  BUT NOT
40
#  LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
41
#  DATA OR PROFITS; OR BUSINESS INTERRUPTION)  HOWEVER CAUSED AND ON ANY
42
#  THEORY OF LIABILITY, WHETHER IN CONTRACT,  STRICT LIABILITY,  OR TORT
43
#  (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
44
#  OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
45
# ######################################################################
46
#  
47
arch             = UNKNOWN
48
#
49
include Make.$(arch)
50
#
51
## build ###############################################################
52
#
53
build_src        :
54
	( $(CD) src/auxil/$(arch);         $(MAKE) )
55
	( $(CD) src/blas/$(arch);          $(MAKE) )
56
	( $(CD) src/comm/$(arch);          $(MAKE) )
57
	( $(CD) src/grid/$(arch);          $(MAKE) )
58
	( $(CD) src/panel/$(arch);         $(MAKE) )
59
	( $(CD) src/pauxil/$(arch);        $(MAKE) )
60
	( $(CD) src/pfact/$(arch);         $(MAKE) )
61
	( $(CD) src/pgesv/$(arch);         $(MAKE) )
62
#
63
build_tst        :
64
	( $(CD) testing/matgen/$(arch);    $(MAKE) )
65
	( $(CD) testing/timer/$(arch);     $(MAKE) )
66
	( $(CD) testing/pmatgen/$(arch);   $(MAKE) )
67
	( $(CD) testing/ptimer/$(arch);    $(MAKE) )
68
	( $(CD) testing/ptest/$(arch);     $(MAKE) )
69
#( SPMS_make_cd`' testing/test/$(arch);      SPMS_make_make`' )
70
#
71
## startup #############################################################
72
#
73
startup_dir      :
74
	- $(MKDIR) include/$(arch)
75
	- $(MKDIR) lib
76
	- $(MKDIR) lib/$(arch)
77
	- $(MKDIR) bin
78
	- $(MKDIR) bin/$(arch)
79
#
80
startup_src      :
81
	- $(MAKE) -f Make.top leaf le=src/auxil   arch=$(arch) topdir=$(topdir)
82
	- $(MAKE) -f Make.top leaf le=src/blas    arch=$(arch) topdir=$(topdir)
83
	- $(MAKE) -f Make.top leaf le=src/comm    arch=$(arch) topdir=$(topdir)
84
	- $(MAKE) -f Make.top leaf le=src/grid    arch=$(arch) topdir=$(topdir)
85
	- $(MAKE) -f Make.top leaf le=src/panel   arch=$(arch) topdir=$(topdir)
86
	- $(MAKE) -f Make.top leaf le=src/pauxil  arch=$(arch) topdir=$(topdir)
87
	- $(MAKE) -f Make.top leaf le=src/pfact   arch=$(arch) topdir=$(topdir)
88
	- $(MAKE) -f Make.top leaf le=src/pgesv   arch=$(arch) topdir=$(topdir)
89
#
90
startup_tst      :
91
	- $(MAKE) -f Make.top leaf le=testing/matgen  arch=$(arch) topdir=$(topdir)
92
	- $(MAKE) -f Make.top leaf le=testing/timer   arch=$(arch) topdir=$(topdir)
93
	- $(MAKE) -f Make.top leaf le=testing/pmatgen arch=$(arch) topdir=$(topdir)
94
	- $(MAKE) -f Make.top leaf le=testing/ptimer  arch=$(arch) topdir=$(topdir)
95
	- $(MAKE) -f Make.top leaf le=testing/ptest   arch=$(arch) topdir=$(topdir)
96
#- SPMS_make_make`' -f Make.top leaf le=testing/test    arch=$(arch) topdir=$(topdir)
97
#
98
## refresh #############################################################
99
#
100
refresh_src      :
101
	- $(CP) makes/Make.auxil    src/auxil/$(arch)/Makefile
102
	- $(CP) makes/Make.blas     src/blas/$(arch)/Makefile
103
	- $(CP) makes/Make.comm     src/comm/$(arch)/Makefile
104
	- $(CP) makes/Make.grid     src/grid/$(arch)/Makefile
105
	- $(CP) makes/Make.panel    src/panel/$(arch)/Makefile
106
	- $(CP) makes/Make.pauxil   src/pauxil/$(arch)/Makefile
107
	- $(CP) makes/Make.pfact    src/pfact/$(arch)/Makefile
108
	- $(CP) makes/Make.pgesv    src/pgesv/$(arch)/Makefile
109
#
110
refresh_tst      :
111
	- $(CP) makes/Make.matgen   testing/matgen/$(arch)/Makefile
112
	- $(CP) makes/Make.timer    testing/timer/$(arch)/Makefile
113
	- $(CP) makes/Make.pmatgen  testing/pmatgen/$(arch)/Makefile
114
	- $(CP) makes/Make.ptimer   testing/ptimer/$(arch)/Makefile
115
	- $(CP) makes/Make.ptest    testing/ptest/$(arch)/Makefile
116
#- SPMS_make_cp`' makes/Make.test     testing/test/$(arch)/Makefile
117
#
118
## clean ###############################################################
119
#
120
clean_src        :
121
	- ( $(CD) src/auxil/$(arch);        $(MAKE) clean )
122
	- ( $(CD) src/blas/$(arch);         $(MAKE) clean )
123
	- ( $(CD) src/comm/$(arch);         $(MAKE) clean )
124
	- ( $(CD) src/grid/$(arch);         $(MAKE) clean )
125
	- ( $(CD) src/panel/$(arch);        $(MAKE) clean )
126
	- ( $(CD) src/pauxil/$(arch);       $(MAKE) clean )
127
	- ( $(CD) src/pfact/$(arch);        $(MAKE) clean )
128
	- ( $(CD) src/pgesv/$(arch);        $(MAKE) clean )
129
#
130
clean_tst        :
131
	- ( $(CD) testing/matgen/$(arch);   $(MAKE) clean )
132
	- ( $(CD) testing/timer/$(arch);    $(MAKE) clean )
133
	- ( $(CD) testing/pmatgen/$(arch);  $(MAKE) clean )
134
	- ( $(CD) testing/ptimer/$(arch);   $(MAKE) clean )
135
	- ( $(CD) testing/ptest/$(arch);    $(MAKE) clean )
136
#- ( SPMS_make_cd`' testing/test/$(arch);     SPMS_make_make`' clean )
137
#
138
## clean_arch ##########################################################
139
#
140
clean_arch_src   :
141
	- $(RM) -r src/auxil/$(arch)
142
	- $(RM) -r src/blas/$(arch)
143
	- $(RM) -r src/comm/$(arch)
144
	- $(RM) -r src/grid/$(arch)
145
	- $(RM) -r src/panel/$(arch)
146
	- $(RM) -r src/pauxil/$(arch)
147
	- $(RM) -r src/pfact/$(arch)
148
	- $(RM) -r src/pgesv/$(arch)
149
#
150
clean_arch_tst   :
151
	- $(RM) -r testing/matgen/$(arch)
152
	- $(RM) -r testing/timer/$(arch)
153
	- $(RM) -r testing/pmatgen/$(arch)
154
	- $(RM) -r testing/ptimer/$(arch)
155
	- $(RM) -r testing/ptest/$(arch)
156
#- SPMS_make_rm`' -r testing/test/$(arch)
157
#
158
## clean_arch_all ######################################################
159
#
160
clean_arch_all   :
161
	- $(MAKE) -f Make.top clean_arch_src arch=$(arch) topdir=$(topdir)
162
	- $(MAKE) -f Make.top clean_arch_tst arch=$(arch) topdir=$(topdir)
163
	- $(RM) -r bin/$(arch) include/$(arch) lib/$(arch)
164
#
165
## clean_guard #########################################################
166
#
167
clean_guard_src  :
168
	- ( $(CD) src/auxil/$(arch);       $(RM) *.grd )
169
	- ( $(CD) src/blas/$(arch);        $(RM) *.grd )
170
	- ( $(CD) src/comm/$(arch);        $(RM) *.grd )
171
	- ( $(CD) src/grid/$(arch);        $(RM) *.grd )
172
	- ( $(CD) src/panel/$(arch);       $(RM) *.grd )
173
	- ( $(CD) src/pauxil/$(arch);      $(RM) *.grd )
174
	- ( $(CD) src/pfact/$(arch);       $(RM) *.grd )
175
	- ( $(CD) src/pgesv/$(arch);       $(RM) *.grd )
176
#
177
clean_guard_tst  :
178
	- ( $(CD) testing/matgen/$(arch);  $(RM) *.grd )
179
	- ( $(CD) testing/timer/$(arch);   $(RM) *.grd )
180
	- ( $(CD) testing/pmatgen/$(arch); $(RM) *.grd )
181
	- ( $(CD) testing/ptimer/$(arch);  $(RM) *.grd )
182
	- ( $(CD) testing/ptest/$(arch);   $(RM) *.grd )
183
#- ( SPMS_make_cd`' testing/test/$(arch);    SPMS_make_rm`' *.grd )
184
#
185
## misc ################################################################
186
#
187
leaf             :
188
	- ( $(CD) $(le) ; $(MKDIR) $(arch) )
189
	- ( $(CD) $(le)/$(arch) ; \
190
            $(LN_S) $(TOPdir)/Make.$(arch) Make.inc )
191
#
192
########################################################################