]> https://gitweb.dealii.org/ - dealii.git/commitdiff
changes to configuration / makefiles to support arbitrary library file suffixes ...
authorrschulz <rschulz@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 17 Dec 2004 16:59:49 +0000 (16:59 +0000)
committerrschulz <rschulz@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 17 Dec 2004 16:59:49 +0000 (16:59 +0000)
git-svn-id: https://svn.dealii.org/trunk@9816 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/base/Makefile
deal.II/common/Make.global_options.in
deal.II/configure
deal.II/configure.in
deal.II/deal.II/Makefile
deal.II/doc/development/Makefile
deal.II/doc/development/makefiles.1.html
deal.II/doc/news/c-5.0.html
deal.II/lac/Makefile
deal.II/lib/Makefile

index d3e979d62825116da63311b1490b449cf0eee4cc..81adc642d9c8bc37d087f46b4d9044bf7fece6f7 100644 (file)
@@ -34,32 +34,26 @@ $(LIBDIR)/base/%.$(OBJEXT) :
 
 
 # rules
-ifeq ($(enable-shared),yes)
-  lib: $(LIBDIR)/libbase.g.so $(LIBDIR)/libbase.so
-  libg: $(LIBDIR)/libbase.g.so
-  libo: $(LIBDIR)/libbase.so
-else
-  lib: $(LIBDIR)/libbase.g.a $(LIBDIR)/libbase.a
-  libg: $(LIBDIR)/libbase.g.a
-  libo: $(LIBDIR)/libbase.a
-endif
+lib: $(LIBDIR)/libbase.g$(lib-suffix) $(LIBDIR)/libbase$(lib-suffix)
+libg: $(LIBDIR)/libbase.g$(lib-suffix)
+libo: $(LIBDIR)/libbase$(lib-suffix)
 
-$(LIBDIR)/libbase.a: $(o-files)
+$(LIBDIR)/libbase$(static-lib-suffix): $(o-files)
        @echo "=====base=============optimized==$(MT)== Linking library:   $(@F)"
        @$(AR) ru $@ $(o-files)
        @$(RANLIB) $@
 
-$(LIBDIR)/libbase.g.a: $(go-files)
+$(LIBDIR)/libbase.g$(static-lib-suffix): $(go-files)
        @echo "=====base=============debug======$(MT)== Linking library:   $(@F)"
        @$(AR) ru $@ $(go-files)
        @$(RANLIB) $@
 
 
-$(LIBDIR)/libbase.so: $(o-files)
+$(LIBDIR)/libbase$(shared-lib-suffix): $(o-files)
        @echo "=====base=============optimized==$(MT)== Linking library:   $(@F)"
        @$(SHLIBLD) $(LDFLAGS) -shared -o $@ $(o-files)
 
-$(LIBDIR)/libbase.g.so: $(go-files)
+$(LIBDIR)/libbase.g$(shared-lib-suffix): $(go-files)
        @echo "=====base=============debug======$(MT)== Linking library:   $(@F)"
        @$(SHLIBLD) $(LDFLAGS) -shared -o $@ $(go-files)
 
@@ -91,4 +85,4 @@ Makefile.dep: $(cc-files) $(h-files) Makefile $D/common/Make.global_options
 include Makefile.dep
 
 .PHONY: clean
-.PHONY: lib lib.a lib.g.a
+.PHONY: lib lib$(static-lib-suffix) lib.g$(static-lib-suffix)
index 451b50bbc3fcf5bdbe7854a353e577bc8f503a43..f0b6051f52e3999daa9bd4078f879fb6655a3cbb 100644 (file)
@@ -72,14 +72,19 @@ endif
 
 LIBPATH    += $(addprefix -L,$(LIBDIR))
 
+static-lib-suffix = @static_lib_suffix@
+shared-lib-suffix = @shared_lib_suffix@
 
-# add search path for libraries to make dependencies
-vpath %.a $(libdir)
-vpath %.so $(libdir)
-
+ifeq ($(enable-shared),yes)
+   lib-suffix = $(shared-lib-suffix)
+else
+   lib-suffix = $(static-lib-suffix)
+endif
 
+# add search path for libraries to make dependencies
+vpath %@static_lib_suffix@ $(libdir)
+vpath %@shared_lib_suffix@ $(libdir)
 
-lib-suffix = @lib_suffix@
 OBJEXT     = @OBJEXT@
 EXEEXT     = @EXEEXT@
 
index 856de501afc50ac75e87e4df2e4bc4856cec1881..018e6a5cfad28dd9b8827b68cdb0e1be5730368d 100755 (executable)
@@ -1,5 +1,5 @@
 #! /bin/sh
-# From configure.in Revision: 1.179 .
+# From configure.in Revision: 1.180 .
 # Guess values for system-dependent variables and create Makefiles.
 # Generated by GNU Autoconf 2.57.
 #
@@ -273,7 +273,7 @@ PACKAGE_BUGREPORT=
 
 ac_unique_file="deal.II"
 ac_subdirs_all="$ac_subdirs_all contrib tests"
-ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS DEAL_II_VERSION DEAL_II_MAJOR DEAL_II_MINOR DEAL_II_PATH DEAL2_DIR build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX GXX_VERSION CXXFLAGSG CXXFLAGSO CXXFLAGSPIC SHLIBLD CC_VERSION enablemultithreading withmultithreading F77 F77_VERSION F77FLAGSO F77FLAGSG F77FLAGSPIC F77LIBS enableshared lib_suffix AR RANLIB ac_ct_RANLIB NEEDS_F77LIBS BLAS_LIB TECPLOT_LIB TECPLOT_INCLUDE_DIR HSL_LIB HSL_INCLUDE_DIR USE_CONTRIB_HSL USE_CONTRIB_PETSC DEAL_II_PETSC_DIR DEAL_II_PETSC_ARCH DEAL_II_PETSC_VERSION_MAJOR DEAL_II_PETSC_VERSION_MINOR DEAL_II_PETSC_VERSION_SUBMINOR DEAL_II_DEFINE_DEAL_II_USE_PETSC USE_CONTRIB_METIS DEAL_II_METIS_DIR UMFPACK_LIB UMFPACK_INCLUDE_DIR USE_CONTRIB_UMFPACK DOXYGEN DOT DEAL_II_HAVE_DOT PERL subdirs LDFLAGSPIC LIBOBJS LTLIBOBJS'
+ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS DEAL_II_VERSION DEAL_II_MAJOR DEAL_II_MINOR DEAL_II_PATH DEAL2_DIR build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX GXX_VERSION CXXFLAGSG CXXFLAGSO CXXFLAGSPIC SHLIBLD CC_VERSION enablemultithreading withmultithreading F77 F77_VERSION F77FLAGSO F77FLAGSG F77FLAGSPIC F77LIBS enableshared static_lib_suffix shared_lib_suffix AR RANLIB ac_ct_RANLIB NEEDS_F77LIBS BLAS_LIB TECPLOT_LIB TECPLOT_INCLUDE_DIR HSL_LIB HSL_INCLUDE_DIR USE_CONTRIB_HSL USE_CONTRIB_PETSC DEAL_II_PETSC_DIR DEAL_II_PETSC_ARCH DEAL_II_PETSC_VERSION_MAJOR DEAL_II_PETSC_VERSION_MINOR DEAL_II_PETSC_VERSION_SUBMINOR DEAL_II_DEFINE_DEAL_II_USE_PETSC USE_CONTRIB_METIS DEAL_II_METIS_DIR UMFPACK_LIB UMFPACK_INCLUDE_DIR USE_CONTRIB_UMFPACK DOXYGEN DOT DEAL_II_HAVE_DOT PERL subdirs LDFLAGSPIC LIBOBJS LTLIBOBJS'
 ac_subst_files=''
 
 # Initialize some variables set by options.
@@ -7826,6 +7826,9 @@ else
   enableshared=yes
 fi;
 
+shared_lib_suffix=".so"
+static_lib_suffix=".a"
+
 case "$target" in
    *-aix4* | alpha*-linux* | alpha*-osf45* | *cygwin | powerpc-apple-darwin* | hppa64-unknown-linux-gnu )
           { echo "$as_me:$LINENO: WARNING: Shared libraries not supported on $target. Using static libs instead" >&5
@@ -7834,11 +7837,6 @@ echo "$as_me: WARNING: Shared libraries not supported on $target. Using static l
           ;;
 esac
 
-if test "x$enableshared" = "xyes" ; then
-  lib_suffix=".so"
-else
-  lib_suffix=".a"
-fi
 
 
 
@@ -9682,7 +9680,8 @@ s,@F77FLAGSG@,$F77FLAGSG,;t t
 s,@F77FLAGSPIC@,$F77FLAGSPIC,;t t
 s,@F77LIBS@,$F77LIBS,;t t
 s,@enableshared@,$enableshared,;t t
-s,@lib_suffix@,$lib_suffix,;t t
+s,@static_lib_suffix@,$static_lib_suffix,;t t
+s,@shared_lib_suffix@,$shared_lib_suffix,;t t
 s,@AR@,$AR,;t t
 s,@RANLIB@,$RANLIB,;t t
 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
@@ -10328,6 +10327,7 @@ if test "x$doxygen_not_found" = "xyes" ; then
   echo "     WARNING: documentation generation program could be found."
   echo "     WARNING: You can still use the library, but you won't be"
   echo "     WARNING: able to generate API documentation locally on"
-  echo "     WARNING: your machine."
+  echo "     WARNING: your machine. It is available for download,"
+  echo "     WARNING: however."
   echo
 fi
index d7ff72539c7366363797838c2f4cd89d0151f8a4..993b894081176e44445f98fd672883039417a0fb 100644 (file)
@@ -265,6 +265,9 @@ dnl On AIX 4.x and alpha, shared libs don't work for us at present, so
 dnl disable them (we should probably use libtool there). Likewise on
 dnl CygWin Windows and Mac OS X systems, where we don't know how to
 dnl create shared libs at all (at least at present)
+shared_lib_suffix=".so"
+static_lib_suffix=".a"
+
 case "$target" in
    *-aix4* | alpha*-linux* | alpha*-osf[45]* | *cygwin | powerpc-apple-darwin* | hppa64-unknown-linux-gnu )
           AC_MSG_WARN(Shared libraries not supported on $target. Using static libs instead)
@@ -272,14 +275,9 @@ case "$target" in
           ;;
 esac
 
-if test "x$enableshared" = "xyes" ; then
-  lib_suffix=".so"
-else
-  lib_suffix=".a"
-fi
-
 AC_SUBST(enableshared)
-AC_SUBST(lib_suffix)
+AC_SUBST(static_lib_suffix)
+AC_SUBST(shared_lib_suffix)
 
 dnl Also look for RANLIB, since some rather old systems (ah, and MAC OS X!)
 dnl still require it for statically linked libraries. On other systems, 
index 4323b974b5e3a9ce819706be965d368d5269c49d..316e5f7547cf2aacb5cd5c9568f4d5e32ad7790a 100644 (file)
@@ -16,21 +16,12 @@ default: 2dg 2d
 all: 2dg 2d 3dg 3d 1dg 1d
 
 
-ifeq ($(enable-shared),yes)
-  1dg: $(LIBDIR)/libdeal_II_1d.g.so
-  1d : $(LIBDIR)/libdeal_II_1d.so
-  2dg: $(LIBDIR)/libdeal_II_2d.g.so 
-  2d : $(LIBDIR)/libdeal_II_2d.so
-  3dg: $(LIBDIR)/libdeal_II_3d.g.so 
-  3d : $(LIBDIR)/libdeal_II_3d.so
-else
-  1dg: $(LIBDIR)/libdeal_II_1d.g.a
-  1d : $(LIBDIR)/libdeal_II_1d.a
-  2dg: $(LIBDIR)/libdeal_II_2d.g.a
-  2d : $(LIBDIR)/libdeal_II_2d.a
-  3dg: $(LIBDIR)/libdeal_II_3d.g.a
-  3d : $(LIBDIR)/libdeal_II_3d.a
-endif
+1dg: $(LIBDIR)/libdeal_II_1d.g$(lib-suffix)
+1d : $(LIBDIR)/libdeal_II_1d$(lib-suffix)
+2dg: $(LIBDIR)/libdeal_II_2d.g$(lib-suffix) 
+2d : $(LIBDIR)/libdeal_II_2d$(lib-suffix)
+3dg: $(LIBDIR)/libdeal_II_3d.g$(lib-suffix) 
+3d : $(LIBDIR)/libdeal_II_3d$(lib-suffix)
 
 # create lists of file names
 cc-files     = $(shell echo source/*/*.cc)
@@ -102,59 +93,59 @@ endif
 
 
 # rules how to make the libraries themselves
-$(LIBDIR)/libdeal_II_1d.g.a: $(go-files-1d)
+$(LIBDIR)/libdeal_II_1d.g$(static-lib-suffix): $(go-files-1d)
        @echo "=====deal.II====1d====debug======$(MT)== Linking library:   $(@F)"
        @$(AR) ru $@ $(go-files-1d)
        @$(RANLIB) $@
-$(LIBDIR)/libdeal_II_1d.a: $(o-files-1d)
+$(LIBDIR)/libdeal_II_1d$(static-lib-suffix): $(o-files-1d)
        @echo "=====deal.II====1d====optimized==$(MT)== Linking library:   $(@F)"
        @$(AR) ru $@ $(o-files-1d)
        @$(RANLIB) $@
 
 
-$(LIBDIR)/libdeal_II_2d.g.a: $(go-files-2d)
+$(LIBDIR)/libdeal_II_2d.g$(static-lib-suffix): $(go-files-2d)
        @echo "=====deal.II====2d====debug======$(MT)== Linking library:   $(@F)"
        @$(AR) ru $@ $(go-files-2d)
        @$(RANLIB) $@
-$(LIBDIR)/libdeal_II_2d.a: $(o-files-2d)
+$(LIBDIR)/libdeal_II_2d$(static-lib-suffix): $(o-files-2d)
        @echo "=====deal.II====2d====optimized==$(MT)== Linking library:   $(@F)"
        @$(AR) ru $@ $(o-files-2d)
        @$(RANLIB) $@
 
 
-$(LIBDIR)/libdeal_II_3d.g.a: $(go-files-3d)
+$(LIBDIR)/libdeal_II_3d.g$(static-lib-suffix): $(go-files-3d)
        @echo "=====deal.II====3d====debug======$(MT)== Linking library:   $(@F)"
        @$(AR) ru $@ $(go-files-3d)
        @$(RANLIB) $@
-$(LIBDIR)/libdeal_II_3d.a: $(o-files-3d)
+$(LIBDIR)/libdeal_II_3d$(static-lib-suffix): $(o-files-3d)
        @echo "=====deal.II====3d====optimized==$(MT)== Linking library:   $(@F)"
        @$(AR) ru $@ $(o-files-3d)
        @$(RANLIB) $@
 
 
-$(LIBDIR)/libdeal_II_1d.g.so: $(go-files-1d)
+$(LIBDIR)/libdeal_II_1d.g$(shared-lib-suffix): $(go-files-1d)
        @echo "=====deal.II====1d====debug======$(MT)== Linking library:   $(@F)"
        @$(SHLIBLD) $(LDFLAGS) -shared -o $@ $(go-files-1d) $(deplibs.g)
 
-$(LIBDIR)/libdeal_II_1d.so: $(o-files-1d)
+$(LIBDIR)/libdeal_II_1d$(shared-lib-suffix): $(o-files-1d)
        @echo "=====deal.II====1d====optimized==$(MT)== Linking library:   $(@F)"
        @$(SHLIBLD) $(LDFLAGS) -shared -o $@ $(o-files-1d) $(deplibs.o)
 
 
-$(LIBDIR)/libdeal_II_2d.g.so: $(go-files-2d)
+$(LIBDIR)/libdeal_II_2d.g$(shared-lib-suffix): $(go-files-2d)
        @echo "=====deal.II====2d====debug======$(MT)== Linking library:   $(@F)"
        @$(SHLIBLD) $(LDFLAGS) -shared -o $@ $(go-files-2d) $(deplibs.g)
 
-$(LIBDIR)/libdeal_II_2d.so: $(o-files-2d)
+$(LIBDIR)/libdeal_II_2d$(shared-lib-suffix): $(o-files-2d)
        @echo "=====deal.II====2d====optimized==$(MT)== Linking library:   $(@F)"
        @$(SHLIBLD) $(LDFLAGS) -shared -o $@ $(o-files-2d) $(deplibs.o)
 
 
-$(LIBDIR)/libdeal_II_3d.g.so: $(go-files-3d)
+$(LIBDIR)/libdeal_II_3d.g$(shared-lib-suffix): $(go-files-3d)
        @echo "=====deal.II====3d====debug======$(MT)== Linking library:   $(@F)"
        @$(SHLIBLD) $(LDFLAGS) -shared -o $@ $(go-files-3d) $(deplibs.g)
 
-$(LIBDIR)/libdeal_II_3d.so: $(o-files-3d)
+$(LIBDIR)/libdeal_II_3d$(shared-lib-suffix): $(o-files-3d)
        @echo "=====deal.II====3d====optimized==$(MT)== Linking library:   $(@F)"
        @$(SHLIBLD) $(LDFLAGS) -shared -o $@ $(o-files-3d) $(deplibs.o)
 
index e1a914837b97add469aa735c9475e0f23bdf908a..f4b92c60660a58838ae5925cea592b02e1a4deee 100644 (file)
@@ -20,6 +20,7 @@ makefiles.html: Makefile makefiles.1.html $D/common/Make.global_options makefile
        @echo '<li><code>SHLIBLD=$(SHLIBLD)</code>' >> $@
        @echo '<li><code>OBJEXT=$(OBJEXT)</code>' >> $@
        @echo '<li><code>EXEEXT=$(EXEEXT)</code>' >> $@
+       @echo '<li><code>enable-shared=$(enable-shared)</code>' >> $@
        @echo '<li><code>PERL=$(PERL)</code>' >> $@
        @echo '<li><code>DEAL_II_MAJOR=$(DEAL_II_MAJOR)</code>' >> $@
        @echo '<li><code>DEAL_II_MINOR=$(DEAL_II_MINOR)</code>' >> $@
@@ -35,6 +36,9 @@ makefiles.html: Makefile makefiles.1.html $D/common/Make.global_options makefile
        @echo '<li><code>lib-path-deal2=$(lib-path-deal2)</code>' >> $@
        @echo '<li><code>LIBPATH=$(LIBPATH)</code>' >> $@
        @echo '<li><code>LIBS=$(LIBS)</code>' >> $@
+       @echo '<li><code>static-lib-suffix=$(static-lib-suffix)</code>' >> $@
+       @echo '<li><code>shared-lib-suffix=$(shared-lib-suffix)</code>' >> $@
+       @echo '<li><code>lib-suffix=$(lib-suffix)</code>' >> $@
        @echo '<li><code>lib-base.o=$(lib-base.o)</code>' >> $@
        @echo '<li><code>lib-base.g=$(lib-base.g)</code>' >> $@
        @echo '<li><code>lib-lac.o=$(lib-lac.o)</code>' >> $@
index e8d23dac48de6cfebcb8f020cc27e385f50a1d01..9f144c8451f4d9ef69dba589257838553868e902 100644 (file)
@@ -16,7 +16,7 @@
     The file <code>common/Make.global_options</code> exports several
     make variables to other Makefiles which 
     include it. You will want to include this file into the Makefiles of
-    your project to use the same compiler flags and to access the pathes
+    your project to use the same compiler flags and to access the paths
     to libraries. This page documents <a href="#flags">available
     flags</a>, documents the <a href="#values">values which are used
     in your local installation</a>, and shows 
            </p>
       </dd>
 
+      <dt> <code>enable-shared</code> </dt>
+      <dd> <p>
+           Determines whether shared or static libraries are used.
+           Set to <code>yes</code> if you want to use shared
+           libraries.
+           </p>
+      </dd>
 
       <dt> <code>PERL</code> </dt>
       <dd> <p>
     <li><h4>Paths and filenames of libraries</h4>
 
     <dl>
+      <dt> <code>static-lib-suffix</code> </dt>
+      <dd> <p>
+           File extension of static libraries. Usually set to .a
+           </p>
+      </dd>
+      <dt> <code>shared-lib-suffix</code> </dt>
+      <dd> <p>
+           File extension of shared libraries. If shared libraries
+           are supported, this suffix is usually .so, if shared
+           libraries are not supported, it is set to the same value
+           as <code>static-lib-suffix</code>.
+           </p>
+      </dd>
+      <dt> <code>lib-suffix</code> </dt>
+      <dd> <p>
+           File extension of libraries. Depending on the value of
+           <code>enable-shared</code>, it is either set to 
+           <code>static-lib-suffix</code> or to
+           <code>shared-lib-suffix</code>.
+           </p>
+      </dd>
       <dt> <code>lib-base.o</code> </dt>
       <dd> <p>
            Path and filename of the base library in optimized
 
 
 
-    <li><h4>Pathes to include files</h4>
+    <li><h4>Paths to include files</h4>
 
     <dl>
       <dt> <code>include-path-base</code> </dt>
index b1b33a42d8ae2b7d2ac2017224279cec0eb97cfb..c49fb65be72cc995993d5a5f73dcc2ea6680ab55 100644 (file)
@@ -73,6 +73,14 @@ inconvenience this causes.
 <h3>General</h3>
 
 <ol>
+  <li> <p>
+       Fixed: Configuration scripts were changed to allow any file suffix for
+       shared and static libraries to allow in the future the creation of dlls
+       under cygwin.
+       <br>
+       (Ralf B. Schulz, 2004/12/17)
+       </p>
+
   <li> <p>
        New: Configuration now detects the Intel Fortran compiler and can set 
        compilation flags accordingly.
index e037e2326948631b91d1a53301e1b5cf1c0da060..9bfb4e80309abcca8157a2f90b70d9482c337dfa 100644 (file)
@@ -33,15 +33,9 @@ $(LIBDIR)/lac/%.$(OBJEXT) :
 
 
 # rules
-ifeq ($(enable-shared),yes)
-  lib: $(LIBDIR)/liblac.g.so $(LIBDIR)/liblac.so
-  libg: $(LIBDIR)/liblac.g.so
-  libo: $(LIBDIR)/liblac.so
-else
-  lib: $(LIBDIR)/liblac.g.a $(LIBDIR)/liblac.a
-  libg: $(LIBDIR)/liblac.g.a
-  libo: $(LIBDIR)/liblac.a
-endif
+lib: $(LIBDIR)/liblac.g$(lib-suffix) $(LIBDIR)/liblac$(lib-suffix)
+libg: $(LIBDIR)/liblac.g$(lib-suffix)
+libo: $(LIBDIR)/liblac$(lib-suffix)
 
 # if we use HSL, then we need to link against libhsl.so. if we don't, then
 # don't set this variable
@@ -70,22 +64,22 @@ else
 endif
 
 
-$(LIBDIR)/liblac.a: $(o-files)
+$(LIBDIR)/liblac$(static-lib-suffix): $(o-files)
        @echo "=====lac==============optimized==$(MT)== Linking library:   $(@F)"
        @$(AR) ru $@ $(o-files)
        @$(RANLIB) $@
 
-$(LIBDIR)/liblac.g.a: $(go-files)
+$(LIBDIR)/liblac.g$(static-lib-suffix): $(go-files)
        @echo "=====lac==============debug======$(MT)== Linking library:   $(@F)"
        @$(AR) ru $@ $(go-files)
        @$(RANLIB) $@
 
 
-$(LIBDIR)/liblac.so: $(o-files)
+$(LIBDIR)/liblac$(shared-lib-suffix): $(o-files)
        @echo "=====lac==============optimized==$(MT)== Linking library:   $(@F)"
        @$(SHLIBLD) $(LDFLAGS) -shared -o $@ $(o-files) $(deplibs.o)
 
-$(LIBDIR)/liblac.g.so: $(go-files)
+$(LIBDIR)/liblac.g$(shared-lib-suffix): $(go-files)
        @echo "=====lac==============debug======$(MT)== Linking library:   $(@F)"
        @$(SHLIBLD) $(LDFLAGS) -shared -o $@ $(go-files) $(deplibs.g)
 
@@ -115,4 +109,4 @@ Makefile.dep: $(cc-files) $(h-files) Makefile $D/common/Make.global_options
 include Makefile.dep
 
 .PHONY: clean
-.PHONY: lib lib.a lib.g.a
+.PHONY: lib lib$(static-lib-suffix) lib.g$(static-lib-suffix)
index 575c6e8c89fe109f583c0b509cd970ab9eeaef94..016e17210e717cb438c20f5e67cc17960df7e2e0 100644 (file)
@@ -43,6 +43,7 @@ ifeq ($(DEAL_II_PETSC_VERSION_MINOR),1)
 else
   xlib-ksp=libpetscksp
 endif
+
   xlib.g = $(lib-contrib-petsc-path.g)/$(xlib-ksp)$(lib-suffix) \
            $(lib-contrib-petsc-path.g)/libpetscdm$(lib-suffix) \
            $(lib-contrib-petsc-path.g)/libpetscmat$(lib-suffix) \
@@ -57,11 +58,11 @@ endif
   ifeq ($(enable-shared),yes)
     external-links-petsc:
        @echo Setting up libraries for PETSc
-       @echo "======================debug============= Linking library:   libpetsc.g$(lib-suffix)"
-       @$(CXX) -shared -o libpetsc.g$(lib-suffix) \
+       @echo "======================debug============= Linking library:   libpetsc.g$(shared-lib-suffix)"
+       @$(CXX) -shared -o libpetsc.g$(shared-lib-suffix) \
                -Wl,-rpath,$(lib-contrib-petsc-path.g) $(xlib.g)
-       @echo "======================optimized========= Linking library:   libpetsc$(lib-suffix)"
-       @$(CXX) -shared -o libpetsc$(lib-suffix) \
+       @echo "======================optimized========= Linking library:   libpetsc$(shared-lib-suffix)"
+       @$(CXX) -shared -o libpetsc$(shared-lib-suffix) \
                -Wl,-rpath,$(lib-contrib-petsc-path.o) $(xlib.o)
 else
 
@@ -70,22 +71,22 @@ else
   # single new archive. Do the same for debug and optimized mode.
   external-links-petsc:
        @echo Setting up libraries for PETSc
-       @echo "======================debug============= Linking library:   libpetsc.g.a"
+       @echo "======================debug============= Linking library:   libpetsc.g$(static-lib-suffix)"
        @mkdir ar_tmp; cd ar_tmp; \
         for arfile in $(xlib.g) ; do \
           $(AR) x $$arfile; \
         done
-       @$(AR) ru libpetsc.g.a ar_tmp/*
+       @$(AR) ru libpetsc.g$(static-lib-suffix) ar_tmp/*
        @rm -r ar_tmp
-       @$(RANLIB) libpetsc.g.a
-       @echo "======================optimized========= Linking library:   libpetsc.a"
+       @$(RANLIB) libpetsc.g$(static-lib-suffix)
+       @echo "======================optimized========= Linking library:   libpetsc$(static-lib-suffix)"
        @mkdir ar_tmp; cd ar_tmp; \
         for arfile in $(xlib.o) ; do \
           $(AR) x $$arfile; \
         done
-       @$(AR) ru libpetsc.a ar_tmp/*
+       @$(AR) ru libpetsc$(static-lib-suffix) ar_tmp/*
        @rm -r ar_tmp
-       @$(RANLIB) libpetsc.a
+       @$(RANLIB) libpetsc$(static-lib-suffix)
 endif
 
 

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.