~ubuntu-branches/ubuntu/trusty/scotch/trusty

« back to all changes in this revision

Viewing changes to src/Makefile

  • Committer: Bazaar Package Importer
  • Author(s): Christophe Prud'homme
  • Date: 2008-01-25 09:13:53 UTC
  • Revision ID: james.westby@ubuntu.com-20080125091353-zghdao60dfsyc2bt
Tags: upstream-5.0.1.dfsg
ImportĀ upstreamĀ versionĀ 5.0.1.dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
## Copyright 2004,2007 ENSEIRB, INRIA & CNRS
 
2
##
 
3
## This file is part of the Scotch software package for static mapping,
 
4
## graph partitioning and sparse matrix ordering.
 
5
##
 
6
## This software is governed by the CeCILL-C license under French law
 
7
## and abiding by the rules of distribution of free software. You can
 
8
## use, modify and/or redistribute the software under the terms of the
 
9
## CeCILL-C license as circulated by CEA, CNRS and INRIA at the following
 
10
## URL: "http://www.cecill.info".
 
11
## 
 
12
## As a counterpart to the access to the source code and rights to copy,
 
13
## modify and redistribute granted by the license, users are provided
 
14
## only with a limited warranty and the software's author, the holder of
 
15
## the economic rights, and the successive licensors have only limited
 
16
## liability.
 
17
## 
 
18
## In this respect, the user's attention is drawn to the risks associated
 
19
## with loading, using, modifying and/or developing or reproducing the
 
20
## software by the user in light of its specific status of free software,
 
21
## that may mean that it is complicated to manipulate, and that also
 
22
## therefore means that it is reserved for developers and experienced
 
23
## professionals having in-depth computer knowledge. Users are therefore
 
24
## encouraged to load and test the software's suitability as regards
 
25
## their requirements in conditions enabling the security of their
 
26
## systems and/or data to be ensured and, more generally, to use and
 
27
## operate it in the same conditions as regards security.
 
28
## 
 
29
## The fact that you are presently reading this means that you have had
 
30
## knowledge of the CeCILL-C license and that you accept its terms.
 
31
##
 
32
 
 
33
VERSION = 5.0
 
34
 
 
35
.PHONY                          :       clean   default install ptscotch        realclean       required        scotch
 
36
 
 
37
default                         :       scotch
 
38
 
 
39
required                        :       Makefile.inc
 
40
 
 
41
Makefile.inc                    :
 
42
                                        @echo "#####################################################################"
 
43
                                        @echo "BEFORE COMPILING Scotch OR PT-Scotch, YOU SHOULD HAVE AN APPROPRIATE"
 
44
                                        @echo "Makefile.inc FILE IN THIS DIRECTORY. PLEASE LOOK INTO DIRECTORY"
 
45
                                        @echo " ./Make.inc FOR AN EXISTING Makefile.inc FILE THAT FITS YOUR NEED, OR"
 
46
                                        @echo "USE THEM AS MODELS IN CASE YOU NEED TO BUILD A NEW ONE FOR YOUR"
 
47
                                        @echo "PARTICULAR PLATFORM."
 
48
                                        @echo "#####################################################################"
 
49
                                        @echo "Then, type \"make scotch\" (default) for the sequential library"
 
50
                                        @echo "and software, or \"make ptscotch\" for the parallel library and"
 
51
                                        @echo "software."
 
52
                                        @exit 1
 
53
 
 
54
include Makefile.inc
 
55
 
 
56
scotch                          :       required
 
57
                                        (cd common ;         $(MAKE)                        scotch && $(MAKE) install)
 
58
                                        (cd libscotch ;      $(MAKE) VERSION=\"$(VERSION)\" scotch && $(MAKE) install)
 
59
                                        (cd scotch ;         $(MAKE) VERSION=\"$(VERSION)\" scotch && $(MAKE) install)
 
60
                                        (cd libscotchmetis ; $(MAKE)                        scotch && $(MAKE) install)
 
61
 
 
62
ptscotch                        :       required
 
63
                                        (cd common ;         $(MAKE)                        ptscotch && $(MAKE) ptinstall)
 
64
                                        (cd libscotch ;      $(MAKE) VERSION=\"$(VERSION)\" ptscotch && $(MAKE) ptinstall)
 
65
                                        (cd scotch ;         $(MAKE) VERSION=\"$(VERSION)\" ptscotch && $(MAKE) ptinstall)
 
66
                                        (cd libscotchmetis ; $(MAKE)                        ptscotch && $(MAKE) ptinstall)
 
67
 
 
68
install                         :       required
 
69
                                        -$(CP) -f ../bin/*scotch*.h $(prefix)/include
 
70
                                        -$(CP) -f ../bin/*scotc*[^m]$(LIB) $(prefix)/lib
 
71
 
 
72
clean                           :       required
 
73
                                        (cd common ;         $(MAKE) clean)
 
74
                                        (cd libscotch ;      $(MAKE) clean)
 
75
                                        (cd scotch ;         $(MAKE) clean)
 
76
                                        (cd libscotchmetis ; $(MAKE) clean)
 
77
 
 
78
realclean                       :       required
 
79
                                        (cd common ;         $(MAKE) realclean)
 
80
                                        (cd libscotch ;      $(MAKE) realclean)
 
81
                                        (cd scotch ;         $(MAKE) realclean)
 
82
                                        (cd libscotchmetis ; $(MAKE) realclean)
 
83
                                        -$(RM) ../bin/*