1
## Copyright 2004,2007-2010 ENSEIRB, INRIA & CNRS
3
## This file is part of the Scotch software package for static mapping,
4
## graph partitioning and sparse matrix ordering.
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".
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
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.
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.
37
.PHONY : clean default install ptscotch realclean required scotch
39
default : scotch ptscotch
41
required : Makefile.inc ../bin ../include ../lib
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"
59
bindir ?= $(prefix)/bin
60
includedir ?= $(prefix)/include
61
libdir ?= $(prefix)/lib
62
datarootdir ?= $(prefix)/share
63
mandir ?= $(datarootdir)/man
78
-$(MKDIR) $(datarootdir)
81
-$(MKDIR) $(includedir)
86
$(mandir) : $(datarootdir)
89
$(mandir)/man1 : $(mandir)
90
-$(MKDIR) $(mandir)/man1
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)
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)
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)
111
(cd libscotch ; $(MAKE) clean)
112
(cd scotch ; $(MAKE) clean)
113
(cd libscotchmetis ; $(MAKE) clean)
114
(cd esmumps ; $(MAKE) clean)
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/*