Skip to content
Snippets Groups Projects
Commit f296791d authored by Thimo Neubauer's avatar Thimo Neubauer
Browse files

got istl-dist working

[[Imported from SVN: r928]]
parent 05656982
No related branches found
No related tags found
No related merge requests found
Makefile Makefile
Makefile.in Makefile.in
semantic.cache semantic.cache
\ No newline at end of file istl.tar.gz
\ No newline at end of file
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
SUBDIRS = doc tutorial SUBDIRS = doc tutorial
SOURCES = allocator.hh basearray.hh bcrsmatrix.hh bvector.hh fmatrix.hh fvector.hh gsetc.hh io.hh istlexception.hh istl.hh precision.hh vbcrsmatrix.hh vbvector.hh SOURCES = allocator.hh basearray.hh bcrsmatrix.hh bvector.hh fmatrix.hh gsetc.hh io.hh istlexception.hh istl.hh precision.hh vbcrsmatrix.hh vbvector.hh ilu.hh operators.hh preconditioners.hh solvers.hh
istldir = $(includedir)/dune/istl istldir = $(includedir)/dune/istl
istl_HEADERS = $(SOURCES) istl_HEADERS = $(SOURCES)
...@@ -15,12 +15,22 @@ DISTDOCS = doc/istl.tex doc/istl.bib doc/istl.ps doc/istl.pdf ...@@ -15,12 +15,22 @@ DISTDOCS = doc/istl.tex doc/istl.bib doc/istl.ps doc/istl.pdf
# same for tutorial # same for tutorial
DISTTUT = tutorial/example.cc DISTTUT = tutorial/example.cc
# parts from dune needed for istl (only common, please!)
DUNESTUFF = common/exceptions.hh common/fvector.hh common/timer.hh
# these files are copied into the distribution but with .istl-dist stripped
RENAMESTUFF = README.istl-dist tutorial/Makefile.istl-dist
# more or less stolen from automake (a lot simpler though...) # more or less stolen from automake (a lot simpler though...)
istl-dist: istl-dist:
(cd doc && $(MAKE)) (cd doc && $(MAKE))
if test -e istl ; then echo Please remove `pwd`/istl!; exit 1; fi if test -e istl ; then echo Please remove `pwd`/istl!; exit 1; fi
$(mkdir_p) istl $(mkdir_p) istl
cp --parents $(SOURCES) $(DISTDOCS) $(DISTTUT) istl cp --parents $(SOURCES) $(DISTDOCS) $(DISTTUT) istl
(cd $(top_srcdir) && cp --parents $(DUNESTUFF) istl/istl )
for NAME in $(RENAMESTUFF) ; do \
cp $$NAME istl/`dirname $$NAME`/`basename $$NAME .istl-dist`; \
done
$(AMTAR) chf - istl --format=posix | \ $(AMTAR) chf - istl --format=posix | \
GZIP=$(GZIP_ENV) gzip -c > istl.tar.gz GZIP=$(GZIP_ENV) gzip -c > istl.tar.gz
rm -r istl rm -r istl
......
To use ISTL you just have to add the new istl-directory and
istl/common to your include-path, e.g.
g++ -I ~/istl -I ~/istl/common myprogram.cc
...@@ -8,4 +8,5 @@ ...@@ -8,4 +8,5 @@
*.pdf *.pdf
*.ps *.ps
Makefile Makefile
Makefile.in Makefile.in
\ No newline at end of file semantic.cache
\ No newline at end of file
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
#include <stdlib.h> #include <stdlib.h>
#include "../common/exceptions.hh" #include "exceptions.hh"
namespace Dune { namespace Dune {
......
# $Id$
CXXFLAGS = -I .. -I ../common
all: example
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment