| 1 |
# ====================================================================== |
| 2 |
# Laboratoire Jacques-Louis Lions |
| 3 |
# Université Pierre et Marie Curie-Paris6, UMR 7598, Paris, F-75005 France |
| 4 |
# http://www.ljll.math.upmc.fr/lehyaric |
| 5 |
# ====================================================================== |
| 6 |
# This file is part of Freefem++ |
| 7 |
# |
| 8 |
# Freefem++ is free software; you can redistribute it and/or modify |
| 9 |
# it under the terms of the GNU Lesser General Public License as |
| 10 |
# published by the Free Software Foundation; either version 2.1 of |
| 11 |
# the License, or (at your option) any later version. |
| 12 |
# |
| 13 |
# Freefem++ is distributed in the hope that it will be useful, |
| 14 |
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 15 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 16 |
# GNU Lesser General Public License for more details. |
| 17 |
# |
| 18 |
# You should have received a copy of the GNU Lesser General Public |
| 19 |
# License along with Freefem++; if not, write to the Free Software |
| 20 |
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
| 21 |
# ====================================================================== |
| 22 |
# headeralh default=0 freefem make multipleauthors start=19/03/10 upmc |
| 23 |
|
| 24 |
# Downloading and compiling extra libraries |
| 25 |
# ----------------------------------------- |
| 26 |
|
| 27 |
include Makefile.inc |
| 28 |
|
| 29 |
all-local: mumps |
| 30 |
mumps:../lib/WHERE.mumpsseq |
| 31 |
|
| 32 |
# Downloading and compiling mumps |
| 33 |
# ------------------------------- |
| 34 |
|
| 35 |
DIRPKG=../pkg |
| 36 |
SRCDIR=MUMPS_$(VERSION) |
| 37 |
PACKAGE1=$(DIRPKG)/MUMPS_$(VERSION).tar.gz |
| 38 |
INSTALL=../.. |
| 39 |
VERSION=5.0.2 |
| 40 |
|
| 41 |
# FFCS - install and WHERE need to be done sequentially, even in parallel builds |
| 42 |
|
| 43 |
../lib/WHERE.mumpsseq: install.done |
| 44 |
echo mumps_seq LD -L@DIR@/lib -ldmumpsFREEFEM-SEQ -lzmumpsFREEFEM-SEQ -lmumps_commonFREEFEM-SEQ \ |
| 45 |
-lpordFREEFEM-SEQ $(LIBSPTHREAD) > ../lib/WHERE.mumpsseq |
| 46 |
echo mumps_seq INCLUDE -I@DIR@/include/mumps_seq >> ../lib/WHERE.mumpsseq |
| 47 |
echo libseq LD -L@DIR@/lib -lmpiseqFREEFEM-SEQ >>../lib/WHERE.mumpsseq |
| 48 |
echo libseq INCLUDE -I@DIR@/include -I@DIR@/include/mumps_seq >> ../lib/WHERE.mumpsseq |
| 49 |
|
| 50 |
install.done: $(SRCDIR)/FAIT |
| 51 |
-mkdir -p ../include/mumps_seq |
| 52 |
cp $(SRCDIR)/include/*.h ../include/mumps_seq |
| 53 |
cp $(SRCDIR)/libseq/*.h ../include/mumps_seq |
| 54 |
-mkdir -p ../lib |
| 55 |
cp $(SRCDIR)/lib/*.a ../lib/ |
| 56 |
cp $(SRCDIR)/libseq/libmpiseqFREEFEM-SEQ.a ../lib/ |
| 57 |
touch $@ |
| 58 |
|
| 59 |
$(SRCDIR)/FAIT:Makefile.inc $(SRCDIR)/tag-tar |
| 60 |
cp Makefile.inc $(SRCDIR) |
| 61 |
# |
| 62 |
# FFCS - 22/5/12 - Mumps has difficulties compiling d & z in parallel |
| 63 |
# |
| 64 |
cd $(SRCDIR) && $(MAKE) d |
| 65 |
cd $(SRCDIR) && $(MAKE) z |
| 66 |
touch $@ |
| 67 |
|
| 68 |
Makefile.inc: ../../config.status Makefile Makefile-mumps-$(VERSION).inc |
| 69 |
../../config.status --file="Makefile.inc:Makefile-mumps-$(VERSION).inc" |
| 70 |
|
| 71 |
$(SRCDIR)/tag-tar:$(PACKAGE1) |
| 72 |
tar xzf $(PACKAGE1) |
| 73 |
touch $@ |
| 74 |
|
| 75 |
$(PACKAGE1): |
| 76 |
../getall -o MUMPS -a |
| 77 |
|
| 78 |
clean: |
| 79 |
-rm Makefile.inc FAIRE* *~ |
| 80 |
-rm -rf ../include/*mumps* |
| 81 |
-rm -rf ../lib/lib*mumps*SEQ* ../lib/libpord*SEQ.a ../lib/libmpiseq*SEQ.a ../lib/WHERE.mumpsseq |
| 82 |
-rm -rf $(SRCDIR) |
| 83 |
-rm *.done config.log |
| 84 |
|
| 85 |
# Local Variables: |
| 86 |
# mode:makefile |
| 87 |
# ispell-local-dictionary:"british" |
| 88 |
# coding:utf-8 |
| 89 |
# End: |