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

« back to all changes in this revision

Viewing changes to .pc/install.patch/src/Makefile

  • Committer: Bazaar Package Importer
  • Author(s): "Adam C. Powell, IV", Christophe Trophime, Johannes Ring, Adam C. Powell, IV, Angel Abad
  • Date: 2011-03-27 14:55:43 UTC
  • Revision ID: james.westby@ubuntu.com-20110327145543-4z6ls5frctvzodla
Tags: 5.1.11.dfsg-4
[Christophe Trophime]
* Add support for multiple Integer size versions (closes: #619840)
* debian/rules : rewrite to support multiple integer size versions and remove
  cdbs

[Johannes Ring]
* Remove -DSCOTCH_PTHREAD option from debian/Makefile*.inc (closes: #612621)
* Removed no-extra-clean.patch (closes: #612606).

[ Adam C. Powell, IV ]
* Fixed a couple of issues in debian/rules clean target.
* Reinstated debugging package builds after cdbs removal.

[ Angel Abad ]
* Fix FTBFS with binutils-gold (closes: #612170)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
## Copyright 2004,2007-2010 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
 
34
RELEASE = 1
 
35
PATCHLEVEL = 10
 
36
 
 
37
.PHONY                          :       clean   default install ptscotch        realclean       required        scotch
 
38
 
 
39
default                         :       scotch ptscotch
 
40
 
 
41
required                        :       Makefile.inc    ../bin  ../include      ../lib
 
42
 
 
43
Makefile.inc                    :
 
44
                                        @echo "#####################################################################"
 
45
                                        @echo "BEFORE COMPILING Scotch OR PT-Scotch, YOU SHOULD HAVE AN APPROPRIATE"
 
46
                                        @echo "Makefile.inc FILE IN THIS DIRECTORY. PLEASE LOOK INTO DIRECTORY"
 
47
                                        @echo " ./Make.inc FOR AN EXISTING Makefile.inc FILE THAT FITS YOUR NEED, OR"
 
48
                                        @echo "USE THEM AS MODELS IN CASE YOU NEED TO BUILD A NEW ONE FOR YOUR"
 
49
                                        @echo "PARTICULAR PLATFORM."
 
50
                                        @echo "#####################################################################"
 
51
                                        @echo "Then, type \"make scotch\" (default) for the sequential library"
 
52
                                        @echo "and software, or \"make ptscotch\" for the parallel library and"
 
53
                                        @echo "software."
 
54
                                        @exit 1
 
55
 
 
56
include Makefile.inc
 
57
 
 
58
prefix          ?= /usr/local
 
59
bindir          ?= $(prefix)/bin
 
60
includedir      ?= $(prefix)/include
 
61
libdir          ?= $(prefix)/lib
 
62
datarootdir     ?= $(prefix)/share
 
63
mandir          ?= $(datarootdir)/man
 
64
 
 
65
../bin                          :
 
66
                                        -$(MKDIR) ../bin
 
67
 
 
68
../include                      :
 
69
                                        -$(MKDIR) ../include
 
70
 
 
71
../lib                          :
 
72
                                        -$(MKDIR) ../lib
 
73
 
 
74
$(bindir)                       :
 
75
                                        -$(MKDIR) $(bindir)
 
76
 
 
77
$(datarootdir)                  :
 
78
                                        -$(MKDIR) $(datarootdir)
 
79
 
 
80
$(includedir)                   :
 
81
                                        -$(MKDIR) $(includedir)
 
82
 
 
83
$(libdir)                       :
 
84
                                        -$(MKDIR) $(libdir)
 
85
 
 
86
$(mandir)                       :       $(datarootdir)
 
87
                                        -$(MKDIR) $(mandir)
 
88
 
 
89
$(mandir)/man1                  :       $(mandir)
 
90
                                        -$(MKDIR) $(mandir)/man1
 
91
 
 
92
scotch                          :       required
 
93
                                        (cd libscotch ;      $(MAKE) VERSION=$(VERSION) RELEASE=$(RELEASE) PATCHLEVEL=$(PATCHLEVEL) scotch && $(MAKE) install)
 
94
                                        (cd scotch ;         $(MAKE) VERSION=$(VERSION) RELEASE=$(RELEASE) PATCHLEVEL=$(PATCHLEVEL) scotch && $(MAKE) install)
 
95
                                        (cd libscotchmetis ; $(MAKE)                                                                scotch && $(MAKE) install)
 
96
                                        (cd esmumps ;        $(MAKE)                                                                scotch && $(MAKE) install)
 
97
 
 
98
ptscotch                        :       required
 
99
                                        (cd libscotch ;      $(MAKE) VERSION=$(VERSION) RELEASE=$(RELEASE) PATCHLEVEL=$(PATCHLEVEL) ptscotch && $(MAKE) ptinstall)
 
100
                                        (cd scotch ;         $(MAKE) VERSION=$(VERSION) RELEASE=$(RELEASE) PATCHLEVEL=$(PATCHLEVEL) ptscotch && $(MAKE) ptinstall)
 
101
                                        (cd libscotchmetis ; $(MAKE)                                                                ptscotch && $(MAKE) ptinstall)
 
102
                                        (cd esmumps ;        $(MAKE)                                                                ptscotch && $(MAKE) ptinstall)
 
103
 
 
104
install                         :       required        $(bindir)       $(includedir)   $(libdir)       $(mandir)/man1
 
105
                                        -$(CP) -f ../bin/[agm]*$(EXE) $(bindir)
 
106
                                        -$(CP) -f ../include/*scotch*.h $(includedir)
 
107
                                        -$(CP) -f ../lib/*scotch*$(LIB) $(libdir)
 
108
                                        -$(CP) -Rf ../man/* $(mandir)
 
109
 
 
110
clean                           :       required
 
111
                                        (cd libscotch ;      $(MAKE) clean)
 
112
                                        (cd scotch ;         $(MAKE) clean)
 
113
                                        (cd libscotchmetis ; $(MAKE) clean)
 
114
                                        (cd esmumps ;        $(MAKE) clean)
 
115
 
 
116
realclean                       :       required
 
117
                                        (cd libscotch ;      $(MAKE) realclean)
 
118
                                        (cd scotch ;         $(MAKE) realclean)
 
119
                                        (cd libscotchmetis ; $(MAKE) realclean)
 
120
                                        (cd esmumps ;        $(MAKE) realclean)
 
121
                                        -$(RM) ../bin/* ../include/* ../lib/*