Debian Codegraph @

3rdparty/dissection/src/Makefiles/Makefile.SX

raw
1 #! \file Makefile
2 # \brief top of Makefile
3 # \author Atsushi Suzuki, Laboratoire Jacques-Louis Lions
4 # \date Jul. 12th 2015
5
6 # This file is part of Dissection
7 #
8 # Dissection is free software: you can redistribute it and/or modify
9 # it under the terms of the GNU General Public License as published by
10 # the Free Software Foundation, either version 3 of the License, or
11 # (at your option) any later version.
12 #
13 # Linking Dissection statically or dynamically with other modules is making
14 # a combined work based on Disssection. Thus, the terms and conditions of
15 # the GNU General Public License cover the whole combination.
16 #
17 # As a special exception, the copyright holders of Dissection give you
18 # permission to combine Dissection program with free software programs or
19 # libraries that are released under the GNU LGPL and with independent modules
20 # that communicate with Dissection solely through the Dissection-fortran
21 # interface. You may copy and distribute such a system following the terms of
22 # the GNU GPL for Dissection and the licenses of the other code concerned,
23 # provided that you include the source code of that other code when and as
24 # the GNU GPL requires distribution of source code and provided that you do
25 # not modify the Dissection-fortran interface.
26 #
27 # Note that people who make modified versions of Dissection are not obligated
28 # to grant this special exception for their modified versions; it is their
29 # choice whether to do so. The GNU General Public License gives permission to
30 # release a modified version without this exception; this exception also makes
31 # it possible to release a modified version which carries forward this
32 # exception. If you modify the Dissection-fortran interface, this exception
33 # does not apply to your modified version of Dissection, and you must remove
34 # this exception when you distribute your modified version.
35 #
36 # This exception is an additional permission under section 7 of the GNU
37 # General Public License, version 3 ("GPLv3")
38 #
39 # Dissection is distributed in the hope that it will be useful,
40 # but WITHOUT ANY WARRANTY; without even the implied warranty of
41 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
42 # GNU General Public License for more details.
43 #
44 # You should have received a copy of the GNU General Public License
45 # along with Dissection. If not, see <http://www.gnu.org/licenses/>.
46 #
47
48 include ./Defs.inc
49 all:
50 @(cd Compiler; $(MAKE) )
51 @(cd Splitters; $(MAKE) )
52 @(cd Algebra; $(MAKE) )
53 @(cd Driver; $(MAKE) )
54 @(cd qd; $(MAKE) )
55 @(cd C-test; $(MAKE) )
56 $(MPILD) $(LDOPT) -o MM-Dissection C-test/MM-Dissection.o \
57 Driver/*.o \
58 Algebra/*.o \
59 Splitters/*.o \
60 Compiler/*.o \
61 qd/*.o \
62 $(ASLQUAD_DIR)/qgemm.o \
63 $(ASLQUAD_DIR)/qtrsm.o \
64 $(ASLQUAD_DIR)/qger.o \
65 $(ASLQUAD_DIR)/qgemv.o \
66 $(ASLQUAD_DIR)/qtrsv.o \
67 $(ASLQUAD_DIR)/qscal.o \
68 $(ASLQUAD_DIR)/xerbla.o \
69 $(ASLQUAD_DIR)/lsame.o \
70 -L$(LIB_DIR_SCOTCH) -lscotch -lscotcherr \
71 -L$(LIB_DIR_METIS) -lmetis \
72 $(SHARED_COMPILER)
73 clean:
74 @(cd Compiler; make clean)
75 @(cd Splitters; make clean)
76 @(cd Algebra; make clean)
77 @(cd Driver; make clean)
78 @(cd Interfaces; make clean)
79 @(cd qd; make clean)
80 @rm -fr *~ *.o *.so *.d
81
82 distclean:
83 -make clean
84 @rm -rf */*.d */*.ti
85 @(cd C-test; make clean)
86
87 tar:
88 @tar cvzf src.tar.gz Defs.inc Make.inc Makefile */*.cpp */*.hpp */*.h */Makefile */Make.inc */*/Makefile