| 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 |
include Makefile.inc |
| 25 |
|
| 26 |
all-local: mumps |
| 27 |
|
| 28 |
# Downloading and compiling mumps |
| 29 |
# ------------------------------- |
| 30 |
|
| 31 |
DIRPKG=../pkg |
| 32 |
SRCDIR=MUMPS_$(VERSION) |
| 33 |
PACKAGE1=$(DIRPKG)/MUMPS_$(VERSION).tar.gz |
| 34 |
VERSION=5.0.2 |
| 35 |
|
| 36 |
mumps:../lib/WHERE.mumps |
| 37 |
|
| 38 |
$(SRCDIR)/FAIT: $(SRCDIR)/tag-tar |
| 39 |
cp Makefile.inc $(SRCDIR) |
| 40 |
# |
| 41 |
# ALH - 'd' and 'z' versions need to be made sequentially |
| 42 |
# |
| 43 |
cd $(SRCDIR);make d |
| 44 |
cd $(SRCDIR);make z |
| 45 |
touch $@ |
| 46 |
|
| 47 |
# ALH - WHERE was not built properly during a full compile from a clean source. This goal has been rewritten to solve |
| 48 |
# this issue. |
| 49 |
|
| 50 |
../lib/WHERE.mumps:install.done |
| 51 |
echo mumps LD -L@DIR@/lib -ldmumpsFREEFEM -lzmumpsFREEFEM -lmumps_commonFREEFEM -lpordFREEFEM $(LIBSPTHREAD) > $@ |
| 52 |
echo mumps INCLUDE -I@DIR@/include >> $@ |
| 53 |
|
| 54 |
install.done:$(SRCDIR)/FAIT |
| 55 |
-mkdir -p ../include/libseq |
| 56 |
cp $(SRCDIR)/include/*.h ../include/ |
| 57 |
cp $(SRCDIR)/libseq/*.h ../include/libseq |
| 58 |
-mkdir -p ../lib |
| 59 |
cp $(SRCDIR)/lib/*.a ../lib/ |
| 60 |
cp $(SRCDIR)/libseq/libmpiseqFREEFEM.a ../lib/ |
| 61 |
touch $@ |
| 62 |
|
| 63 |
FAIRE-$(VERSION):WHERE |
| 64 |
touch FAIRE-$(VERSION) |
| 65 |
|
| 66 |
# ALH - "make d" and "make z" need to be done sequentially |
| 67 |
$(SRCDIR)/FAIT:$(SRCDIR)/tag-tar Makefile.inc |
| 68 |
cp Makefile.inc $(SRCDIR) |
| 69 |
cd $(SRCDIR) && $(MAKE) d |
| 70 |
cd $(SRCDIR) && $(MAKE) z |
| 71 |
touch $@ |
| 72 |
|
| 73 |
Makefile.inc:../../config.status Makefile Makefile-mumps-$(VERSION).inc |
| 74 |
../../config.status --file="Makefile.inc:Makefile-mumps-$(VERSION).inc" |
| 75 |
|
| 76 |
$(SRCDIR)/tag-tar:$(PACKAGE1) |
| 77 |
tar xzf $(PACKAGE1) |
| 78 |
#patch -d MUMPS_$(VERSION) -p 1 < MUMPS_$(VERSION).patch |
| 79 |
touch $(SRCDIR)/tag-tar |
| 80 |
|
| 81 |
clean:clean-local |
| 82 |
clean-local: |
| 83 |
#FH -cd $(SRCDIR) && $(MAKE) clean -C $(SRCDIR) |
| 84 |
-rm Makefile.inc FAIRE* ../lib/WHERE.mumps |
| 85 |
-rm -rf ../include/*mumps* |
| 86 |
-rm -rf ../lib/lib*mumpsFREEFEM* ../lib/libpordFREEFEM.a ../lib/libmpiseqFREEFEM.a |
| 87 |
-rm -rf $(SRCDIR) |
| 88 |
# -rm $(PACKAGE1) |
| 89 |
-rm config.log *.done |
| 90 |
|
| 91 |
# Local Variables: |
| 92 |
# mode:makefile |
| 93 |
# ispell-local-dictionary:"british" |
| 94 |
# coding:utf-8 |
| 95 |
# End: |