Make.top 9.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207
  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. PARS= arch=$(arch) \
  50. CFLAGS="$(CFLAGS)" \
  51. CCOMPILE=$(CCOMPILE) \
  52. BMC=$(BMC) \
  53. LINUX=$(LINUX) \
  54. BMCOBJS=$(BMCOBJS) \
  55. OPENMPOBJS=$(OPENMPOBJS) \
  56. LINUXOBJS=$(LINUXOBJS) \
  57. RCCEROOT=$(RCCEROOT) \
  58. RCCEINCLUDE=$(RCCEINCLUDE) \
  59. RCKINCLUDE=$(RCKINCLUDE) \
  60. RCCE_LIB_SRC=$(RCCE_LIB_SRC) \
  61. RCCEOBJS="$(RCCEOBJS)"
  62. #
  63. include Make.$(arch)
  64. #
  65. ## build ###############################################################
  66. #
  67. build_src :
  68. ( $(CD) src/auxil/$(arch); $(MAKE) $(PARS) )
  69. ( $(CD) src/blas/$(arch); $(MAKE) $(PARS) )
  70. ( $(CD) src/comm/$(arch); $(MAKE) $(PARS) )
  71. ( $(CD) src/grid/$(arch); $(MAKE) $(PARS) )
  72. ( $(CD) src/panel/$(arch); $(MAKE) $(PARS) )
  73. ( $(CD) src/pauxil/$(arch); $(MAKE) $(PARS) )
  74. ( $(CD) src/pfact/$(arch); $(MAKE) $(PARS) )
  75. ( $(CD) src/pgesv/$(arch); $(MAKE) $(PARS) )
  76. #
  77. build_tst :
  78. ( $(CD) testing/matgen/$(arch); $(MAKE) $(PARS) )
  79. ( $(CD) testing/timer/$(arch); $(MAKE) $(PARS) )
  80. ( $(CD) testing/pmatgen/$(arch); $(MAKE) $(PARS) )
  81. ( $(CD) testing/ptimer/$(arch); $(MAKE) $(PARS) )
  82. ( $(CD) testing/ptest/$(arch); $(MAKE) $(PARS) )
  83. #( SPMS_make_cd`' testing/test/$(arch); SPMS_make_make`' )
  84. #
  85. ## startup #############################################################
  86. #
  87. startup_dir :
  88. - $(MKDIR) include/$(arch)
  89. - $(MKDIR) lib
  90. - $(MKDIR) lib/$(arch)
  91. - $(MKDIR) bin
  92. - $(MKDIR) bin/$(arch)
  93. #
  94. startup_src :
  95. - $(MAKE) -f Make.top leaf le=src/auxil arch=$(arch)
  96. - $(MAKE) -f Make.top leaf le=src/blas arch=$(arch)
  97. - $(MAKE) -f Make.top leaf le=src/comm arch=$(arch)
  98. - $(MAKE) -f Make.top leaf le=src/grid arch=$(arch)
  99. - $(MAKE) -f Make.top leaf le=src/panel arch=$(arch)
  100. - $(MAKE) -f Make.top leaf le=src/pauxil arch=$(arch)
  101. - $(MAKE) -f Make.top leaf le=src/pfact arch=$(arch)
  102. - $(MAKE) -f Make.top leaf le=src/pgesv arch=$(arch)
  103. #
  104. startup_tst :
  105. - $(MAKE) -f Make.top leaf le=testing/matgen arch=$(arch)
  106. - $(MAKE) -f Make.top leaf le=testing/timer arch=$(arch)
  107. - $(MAKE) -f Make.top leaf le=testing/pmatgen arch=$(arch)
  108. - $(MAKE) -f Make.top leaf le=testing/ptimer arch=$(arch)
  109. - $(MAKE) -f Make.top leaf le=testing/ptest arch=$(arch)
  110. #- SPMS_make_make`' -f Make.top leaf le=testing/test arch=$(arch)
  111. #
  112. ## refresh #############################################################
  113. #
  114. refresh_src :
  115. - $(CP) makes/Make.auxil src/auxil/$(arch)/Makefile
  116. - $(CP) makes/Make.blas src/blas/$(arch)/Makefile
  117. - $(CP) makes/Make.comm src/comm/$(arch)/Makefile
  118. - $(CP) makes/Make.grid src/grid/$(arch)/Makefile
  119. - $(CP) makes/Make.panel src/panel/$(arch)/Makefile
  120. - $(CP) makes/Make.pauxil src/pauxil/$(arch)/Makefile
  121. - $(CP) makes/Make.pfact src/pfact/$(arch)/Makefile
  122. - $(CP) makes/Make.pgesv src/pgesv/$(arch)/Makefile
  123. #
  124. refresh_tst :
  125. - $(CP) makes/Make.matgen testing/matgen/$(arch)/Makefile
  126. - $(CP) makes/Make.timer testing/timer/$(arch)/Makefile
  127. - $(CP) makes/Make.pmatgen testing/pmatgen/$(arch)/Makefile
  128. - $(CP) makes/Make.ptimer testing/ptimer/$(arch)/Makefile
  129. - $(CP) makes/Make.ptest testing/ptest/$(arch)/Makefile
  130. #- SPMS_make_cp`' makes/Make.test testing/test/$(arch)/Makefile
  131. #
  132. ## clean ###############################################################
  133. #
  134. clean_src :
  135. - ( $(CD) src/auxil/$(arch); $(MAKE) clean )
  136. - ( $(CD) src/blas/$(arch); $(MAKE) clean )
  137. - ( $(CD) src/comm/$(arch); $(MAKE) clean )
  138. - ( $(CD) src/grid/$(arch); $(MAKE) clean )
  139. - ( $(CD) src/panel/$(arch); $(MAKE) clean )
  140. - ( $(CD) src/pauxil/$(arch); $(MAKE) clean )
  141. - ( $(CD) src/pfact/$(arch); $(MAKE) clean )
  142. - ( $(CD) src/pgesv/$(arch); $(MAKE) clean )
  143. #
  144. clean_tst :
  145. - ( $(CD) testing/matgen/$(arch); $(MAKE) clean )
  146. - ( $(CD) testing/timer/$(arch); $(MAKE) clean )
  147. - ( $(CD) testing/pmatgen/$(arch); $(MAKE) clean )
  148. - ( $(CD) testing/ptimer/$(arch); $(MAKE) clean )
  149. - ( $(CD) testing/ptest/$(arch); $(MAKE) clean )
  150. #- ( SPMS_make_cd`' testing/test/$(arch); SPMS_make_make`' clean )
  151. #
  152. ## clean_arch ##########################################################
  153. #
  154. clean_arch_src :
  155. - $(RM) -r src/auxil/$(arch)
  156. - $(RM) -r src/blas/$(arch)
  157. - $(RM) -r src/comm/$(arch)
  158. - $(RM) -r src/grid/$(arch)
  159. - $(RM) -r src/panel/$(arch)
  160. - $(RM) -r src/pauxil/$(arch)
  161. - $(RM) -r src/pfact/$(arch)
  162. - $(RM) -r src/pgesv/$(arch)
  163. #
  164. clean_arch_tst :
  165. - $(RM) -r testing/matgen/$(arch)
  166. - $(RM) -r testing/timer/$(arch)
  167. - $(RM) -r testing/pmatgen/$(arch)
  168. - $(RM) -r testing/ptimer/$(arch)
  169. - $(RM) -r testing/ptest/$(arch)
  170. #- SPMS_make_rm`' -r testing/test/$(arch)
  171. #
  172. ## clean_arch_all ######################################################
  173. #
  174. clean_arch_all :
  175. - $(MAKE) -f Make.top clean_arch_src arch=$(arch)
  176. - $(MAKE) -f Make.top clean_arch_tst arch=$(arch)
  177. - $(RM) -r bin/$(arch) include/$(arch) lib/$(arch)
  178. #
  179. ## clean_guard #########################################################
  180. #
  181. clean_guard_src :
  182. - ( $(CD) src/auxil/$(arch); $(RM) *.grd )
  183. - ( $(CD) src/blas/$(arch); $(RM) *.grd )
  184. - ( $(CD) src/comm/$(arch); $(RM) *.grd )
  185. - ( $(CD) src/grid/$(arch); $(RM) *.grd )
  186. - ( $(CD) src/panel/$(arch); $(RM) *.grd )
  187. - ( $(CD) src/pauxil/$(arch); $(RM) *.grd )
  188. - ( $(CD) src/pfact/$(arch); $(RM) *.grd )
  189. - ( $(CD) src/pgesv/$(arch); $(RM) *.grd )
  190. #
  191. clean_guard_tst :
  192. - ( $(CD) testing/matgen/$(arch); $(RM) *.grd )
  193. - ( $(CD) testing/timer/$(arch); $(RM) *.grd )
  194. - ( $(CD) testing/pmatgen/$(arch); $(RM) *.grd )
  195. - ( $(CD) testing/ptimer/$(arch); $(RM) *.grd )
  196. - ( $(CD) testing/ptest/$(arch); $(RM) *.grd )
  197. #- ( SPMS_make_cd`' testing/test/$(arch); SPMS_make_rm`' *.grd )
  198. #
  199. ## misc ################################################################
  200. #
  201. leaf :
  202. - ( $(CD) $(le) ; $(MKDIR) $(arch) )
  203. - ( $(CD) $(le)/$(arch) ; \
  204. $(LN_S) $(TOPdir)/Make.$(arch) Make.inc )
  205. #
  206. ########################################################################