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