From: wolf Date: Wed, 28 Apr 2004 19:10:54 +0000 (+0000) Subject: Allow for the creation of static petsc libs. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bd823e123bd16abdd4396bbf15b5251fce02b3f6;p=dealii-svn.git Allow for the creation of static petsc libs. git-svn-id: https://svn.dealii.org/trunk@9112 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/lib/Makefile b/deal.II/lib/Makefile index c6988bb109..13898420bf 100644 --- a/deal.II/lib/Makefile +++ b/deal.II/lib/Makefile @@ -55,14 +55,24 @@ endif $(lib-contrib-petsc-path.o)/libpetscmat$(lib-suffix) \ $(lib-contrib-petsc-path.o)/libpetscvec$(lib-suffix) \ $(lib-contrib-petsc-path.o)/libpetsc$(lib-suffix) - external-links-petsc: + + ifeq ($(enable-shared),yes) + external-links-petsc: @echo Setting up libraries for PETSc - @echo "======================debug============= Linking library: libpetsc.g.so" - @$(CXX) -shared -o libpetsc.g.so \ + @echo "======================debug============= Linking library: libpetsc.g$(lib-suffix)" + @$(CXX) -shared -o libpetsc.g$(lib-suffix) \ -Wl,-rpath,$(lib-contrib-petsc-path.g) $(xlib.g) - @echo "======================optimized========= Linking library: libpetsc.so" - @$(CXX) -shared -o libpetsc.so \ + @echo "======================optimized========= Linking library: libpetsc$(lib-suffix)" + @$(CXX) -shared -o libpetsc$(lib-suffix) \ -Wl,-rpath,$(lib-contrib-petsc-path.o) $(xlib.o) + else + external-links-petsc: + @echo Setting up libraries for PETSc + @echo "======================debug============= Linking library: libpetsc.g$(lib-suffix)" + @$(AR) ru libpetsc.g$(lib-suffix) $(xlib.g) + @echo "======================optimized========= Linking library: libpetsc$(lib-suffix)" + @$(AR) ru libpetsc$(lib-suffix) $(xlib.o) + endif else external-links-petsc: