])
+
+dnl -------------------------------------------------------------
+dnl
+dnl Check whether we can use -soname for linking in the shared
+dnl library version. On Mac OS X, -soname is called
+dnl -dylib_install_name
+dnl
+dnl -------------------------------------------------------------
+AC_DEFUN(DEAL_II_CHECK_LINK_SONAME,
+[
+ dnl First try -soname
+ OLD_LDFLAGS=$LDFLAGS
+ LDFLAGS="-Wl,-soname,libbase.so.6.2.1 $LDFLAGS"
+ AC_MSG_CHECKING([whether compiler understands option -Wl,-soname])
+ AC_LINK_IFELSE(
+ [ AC_LANG_PROGRAM([[]],[[]])],
+ [
+ AC_MSG_RESULT(yes)
+ DEAL_II_LD_UNDERSTANDS_SONAME="yes"
+ ],
+ [
+ AC_MSG_RESULT(no)
+ DEAL_II_LD_UNDERSTANDS_SONAME="no"
+ ]
+ )
+ LDFLAGS=$OLD_LDFLAGS
+ AC_SUBST(DEAL_II_LD_UNDERSTANDS_SONAME)
+
+ dnl Now try the -dylib_install_name thing
+ OLD_LDFLAGS=$LDFLAGS
+ LDFLAGS="-Wl,-dylib_install_name -Wl,libbase.so.6.2.1 $LDFLAGS"
+ AC_MSG_CHECKING([whether compiler understands option -Wl,-dylib_install_name])
+ AC_LINK_IFELSE(
+ [ AC_LANG_PROGRAM([[]],[[]])],
+ [
+ AC_MSG_RESULT(yes)
+ DEAL_II_LD_UNDERSTANDS_DYLIB_INSTALL_NAME="yes"
+ ],
+ [
+ AC_MSG_RESULT(no)
+ DEAL_II_LD_UNDERSTANDS_DYLIB_INSTALL_NAME="no"
+ ]
+ )
+ LDFLAGS=$OLD_LDFLAGS
+ AC_SUBST(DEAL_II_LD_UNDERSTANDS_DYLIB_INSTALL_NAME)
+])
+
+
+
dnl -------------------------------------------------------------
dnl Check whether user wants optimization for a certain type of
dnl CPU. If so, then set some flags, dependent on what he
$(LIBDIR)/libbase$(shared-lib-suffix): $(o-files)
@echo "=====base=============optimized==$(MT)== Linking library: $(@F)"
- @$(SHLIBLD) $(LDFLAGS) $(SHLIBFLAGS) -o $(LIBDIR)/libbase$(shared-lib-suffix).$(DEAL_II_VERSION) -Wl,-soname,libbase$(shared-lib-suffix).$(DEAL_II_VERSION) $(o-files) $(extra-o-files) $(deplibs.o)
- @ln -f -s libbase$(shared-lib-suffix).$(DEAL_II_VERSION) $@
+ @$(SHLIBLD) $(LDFLAGS) $(SHLIBFLAGS) -o $(LIBDIR)/$(call DEAL_II_SHLIB_NAME,base) $(call DEAL_II_ADD_SONAME,base) $(o-files) $(extra-o-files) $(deplibs.o)
+ @ln -f -s $(LIBDIR)/$(call DEAL_II_SHLIB_NAME,base) $@
$(LIBDIR)/libbase.g$(shared-lib-suffix): $(go-files)
@echo "=====base=============debug======$(MT)== Linking library: $(@F)"
- @$(SHLIBLD) $(LDFLAGS) $(SHLIBFLAGS) -o $(LIBDIR)/libbase.g$(shared-lib-suffix).$(DEAL_II_VERSION) -Wl,-soname,libbase.g$(shared-lib-suffix).$(DEAL_II_VERSION) $(go-files) $(extra-o-files) $(deplibs.g)
- @ln -f -s libbase.g$(shared-lib-suffix).$(DEAL_II_VERSION) $@
+ @$(SHLIBLD) $(LDFLAGS) $(SHLIBFLAGS) -o $(LIBDIR)/$(call DEAL_II_SHLIB_NAME,base.g) $(call DEAL_II_ADD_SONAME,base.g) $(go-files) $(extra-o-files) $(deplibs.g)
+ @ln -f -s $(LIBDIR)/$(call DEAL_II_SHLIB_NAME,base.g) $@
TARGET = @target@
######################################################
-# now configuration for compiler flags, pathes, etc
+# now configuration for compiler flags, paths, etc
# path for libraries
lib-deal2-2d.g = $(LIBDIR)/libdeal_II_2d.g$(lib-suffix)
lib-deal2-3d.g = $(LIBDIR)/libdeal_II_3d.g$(lib-suffix)
+# dealing with shared libraries
+DEAL_II_SHLIB_NAME = lib$(1)$(shared-lib-suffix).$(DEAL_II_VERSION)
+
+ifeq (@DEAL_II_LD_UNDERSTANDS_SONAME@,yes)
+ DEAL_II_ADD_SONAME = -Wl,-soname,$(call DEAL_II_SHLIB_NAME,$(1))
+else
+ ifeq (@DEAL_II_LD_UNDERSTANDS_SONAME@,yes)
+ DEAL_II_ADD_SONAME = -Wl,-dylib_install_name -Wl,$(call DEAL_II_SHLIB_NAME,$(1))
+ else
+ DEAL_II_ADD_SONAME =
+ endif
+endif
+
# since the PETSc libs are called the same for both debug and
# optimized mode, we have to have a trick to let the executable
# know which ones are the right (since apparently LD_LIBRARY_PATH
F77FLAGSG
F77FLAGSPIC
F77LIBS
+DEAL_II_LD_UNDERSTANDS_SONAME
+DEAL_II_LD_UNDERSTANDS_DYLIB_INSTALL_NAME
enableshared
static_lib_suffix
shared_lib_suffix
fi
-
-
-shared_lib_suffix=".so"
-static_lib_suffix=".a"
-
case "$target" in
*-aix4* | alpha*-linux* | alpha*-osf45* | hppa64-unknown-linux-gnu )
{ echo "$as_me:$LINENO: WARNING: Shared libraries not supported on $target. Using static libs instead" >&5
echo "$as_me: WARNING: Shared libraries not supported on $target. Using static libs instead" >&2;}
enableshared=no
;;
-esac
-
-case "$target" in
*cygwin )
shared_lib_suffix=".dll"
cygwin_shared_lib="yes"
;;
-esac
-
-
-case "$target" in
*-apple-darwin* )
shared_lib_suffix=".dylib"
darwin_shared_lib="yes"
;;
+ * )
+ shared_lib_suffix=".so"
+ static_lib_suffix=".a"
+ ;;
esac
-
if test "x$enableshared" = "xyes" ; then
CFLAGS="$CFLAGS $CFLAGSPIC"
CXXFLAGSG="$CXXFLAGSG $CXXFLAGSPIC"
;;
esac
+
+ OLD_LDFLAGS=$LDFLAGS
+ LDFLAGS="-Wl,-soname,libbase.so.6.2.1 $LDFLAGS"
+ { echo "$as_me:$LINENO: checking whether compiler understands option -Wl,-soname" >&5
+echo $ECHO_N "checking whether compiler understands option -Wl,-soname... $ECHO_C" >&6; }
+ cat >conftest.$ac_ext <<_ACEOF
+ /* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+
+int
+main ()
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
+ (eval "$ac_link") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_cxx_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest$ac_exeext &&
+ $as_test_x conftest$ac_exeext; then
+
+ { echo "$as_me:$LINENO: result: yes" >&5
+echo "${ECHO_T}yes" >&6; }
+ DEAL_II_LD_UNDERSTANDS_SONAME="yes"
+
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+
+ { echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6; }
+ DEAL_II_LD_UNDERSTANDS_SONAME="no"
+
+
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
+ conftest$ac_exeext conftest.$ac_ext
+ LDFLAGS=$OLD_LDFLAGS
+
+
+ OLD_LDFLAGS=$LDFLAGS
+ LDFLAGS="-Wl,-dylib_install_name -Wl,libbase.so.6.2.1 $LDFLAGS"
+ { echo "$as_me:$LINENO: checking whether compiler understands option -Wl,-dylib_install_name" >&5
+echo $ECHO_N "checking whether compiler understands option -Wl,-dylib_install_name... $ECHO_C" >&6; }
+ cat >conftest.$ac_ext <<_ACEOF
+ /* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+
+int
+main ()
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
+ (eval "$ac_link") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_cxx_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest$ac_exeext &&
+ $as_test_x conftest$ac_exeext; then
+
+ { echo "$as_me:$LINENO: result: yes" >&5
+echo "${ECHO_T}yes" >&6; }
+ DEAL_II_LD_UNDERSTANDS_DYLIB_INSTALL_NAME="yes"
+
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+
+ { echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6; }
+ DEAL_II_LD_UNDERSTANDS_DYLIB_INSTALL_NAME="no"
+
+
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
+ conftest$ac_exeext conftest.$ac_ext
+ LDFLAGS=$OLD_LDFLAGS
+
+
else
LDFLAGSSTATIC="-static"
case "$target" in
F77FLAGSG!$F77FLAGSG$ac_delim
F77FLAGSPIC!$F77FLAGSPIC$ac_delim
F77LIBS!$F77LIBS$ac_delim
+DEAL_II_LD_UNDERSTANDS_SONAME!$DEAL_II_LD_UNDERSTANDS_SONAME$ac_delim
+DEAL_II_LD_UNDERSTANDS_DYLIB_INSTALL_NAME!$DEAL_II_LD_UNDERSTANDS_DYLIB_INSTALL_NAME$ac_delim
enableshared!$enableshared$ac_delim
static_lib_suffix!$static_lib_suffix$ac_delim
shared_lib_suffix!$shared_lib_suffix$ac_delim
DEAL_II_EXPAND_PETSC_VECTOR!$DEAL_II_EXPAND_PETSC_VECTOR$ac_delim
DEAL_II_EXPAND_PETSC_BLOCKVECTOR!$DEAL_II_EXPAND_PETSC_BLOCKVECTOR$ac_delim
USE_CONTRIB_PETSC!$USE_CONTRIB_PETSC$ac_delim
-DEAL_II_PETSC_DIR!$DEAL_II_PETSC_DIR$ac_delim
-DEAL_II_PETSC_ARCH!$DEAL_II_PETSC_ARCH$ac_delim
_ACEOF
if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
ac_delim='%!_!# '
for ac_last_try in false false false false false :; do
cat >conf$$subs.sed <<_ACEOF
+DEAL_II_PETSC_DIR!$DEAL_II_PETSC_DIR$ac_delim
+DEAL_II_PETSC_ARCH!$DEAL_II_PETSC_ARCH$ac_delim
DEAL_II_PETSC_VERSION_MAJOR!$DEAL_II_PETSC_VERSION_MAJOR$ac_delim
DEAL_II_PETSC_VERSION_MINOR!$DEAL_II_PETSC_VERSION_MINOR$ac_delim
DEAL_II_PETSC_VERSION_SUBMINOR!$DEAL_II_PETSC_VERSION_SUBMINOR$ac_delim
LTLIBOBJS!$LTLIBOBJS$ac_delim
_ACEOF
- if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 31; then
+ if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 33; then
break
elif $ac_last_try; then
{ { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
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 Mac OS X systems, where we don't know how to create shared libs
-dnl at all (at least at present)
-
-dnl For Cygwin Windows systems, the shared library suffix becomes ".dll".
-
-shared_lib_suffix=".so"
-static_lib_suffix=".a"
-
+dnl a few other systems.
+dnl
+dnl For Cygwin Windows systems, the shared library suffix becomes ".dll",
+dnl on Mac OS X it is .dylib.
case "$target" in
*-aix4* | alpha*-linux* | alpha*-osf[45]* | hppa64-unknown-linux-gnu )
AC_MSG_WARN(Shared libraries not supported on $target. Using static libs instead)
enableshared=no
;;
-esac
-
-case "$target" in
*cygwin )
shared_lib_suffix=".dll"
cygwin_shared_lib="yes"
;;
-esac
-
-
-dnl TODO Maybe the major version number should be inserted before .dylib
-dnl (.5.dylib for example).
-case "$target" in
*-apple-darwin* )
shared_lib_suffix=".dylib"
darwin_shared_lib="yes"
;;
+ * )
+ shared_lib_suffix=".so"
+ static_lib_suffix=".a"
+ ;;
esac
-
if test "x$enableshared" = "xyes" ; then
CFLAGS="$CFLAGS $CFLAGSPIC"
CXXFLAGSG="$CXXFLAGSG $CXXFLAGSPIC"
;;
esac
+ dnl See if we can use -Wl,-soname,... for linking
+ DEAL_II_CHECK_LINK_SONAME
else
dnl The gcc compiler needs -static for static linking. For the case
dnl other compilers do not like this flag we should introduce a
# $Id$
-# Copyright (C) 2001, 2002, 2003, 2004, 2006 by Wolfgang Bangerth
+# Copyright (C) 2001, 2002, 2003, 2004, 2006, 2008 by Wolfgang Bangerth
D = ../..
@$(AR) ru $@ $(o-files)
@$(RANLIB) $@
-# link the object files to a shared library. since this is not C++,
-# simply use the C compiler, rather than $(SHLIBLD)
+# link the object files to a shared library.
$(LIBDIR)/libhsl$(shared-lib-suffix): $(forward-declarations) $(o-files)
@echo =====hsl==============optimized==$(MT)== Linking library: $(@F)
- @$(SHLIBLD) $(LDFLAGS) -shared -o $@ $(o-files) $(F77LIBS)
+ @$(SHLIBLD) $(LDFLAGS) -shared -o $(LIBDIR)/$(call DEAL_II_SHLIB_NAME,hsl) $(call DEAL_II_ADD_SONAME,hsl) $(o-files) $(F77LIBS)
+ @ln -f -s $(LIBDIR)/$(call DEAL_II_SHLIB_NAME,hsl) $@
$(LIBDIR)/libdeal_II_1d.g$(shared-lib-suffix): $(go-files-1d)
@echo "=====deal.II====1d====debug======$(MT)== Linking library: $(@F)"
- @$(SHLIBLD) $(LDFLAGS) $(SHLIBFLAGS) -o $(LIBDIR)/libdeal_II_1d.g$(shared-lib-suffix).$(DEAL_II_VERSION) -Wl,-soname,libdeal_II_1d.g$(shared-lib-suffix).$(DEAL_II_VERSION) $(go-files-1d) $(deplibs.g)
- @ln -f -s libdeal_II_1d.g$(shared-lib-suffix).$(DEAL_II_VERSION) $@
+ @$(SHLIBLD) $(LDFLAGS) $(SHLIBFLAGS) -o $(LIBDIR)/$(call DEAL_II_SHLIB_NAME,deal_II_1d.g) $(call DEAL_II_ADD_SONAME,deal_II_1d.g) $(go-files-1d) $(deplibs.g)
+ @ln -f -s $(LIBDIR)/$(call DEAL_II_SHLIB_NAME,deal_II_1d.g) $@
$(LIBDIR)/libdeal_II_1d$(shared-lib-suffix): $(o-files-1d)
@echo "=====deal.II====1d====optimized==$(MT)== Linking library: $(@F)"
- @$(SHLIBLD) $(LDFLAGS) $(SHLIBFLAGS) -o $(LIBDIR)/libdeal_II_1d$(shared-lib-suffix).$(DEAL_II_VERSION) -Wl,-soname,libdeal_II_1d$(shared-lib-suffix).$(DEAL_II_VERSION) $(o-files-1d) $(deplibs.o)
- @ln -f -s libdeal_II_1d$(shared-lib-suffix).$(DEAL_II_VERSION) $@
+ @$(SHLIBLD) $(LDFLAGS) $(SHLIBFLAGS) -o $(LIBDIR)/$(call DEAL_II_SHLIB_NAME,deal_II_1d) $(call DEAL_II_ADD_SONAME,deal_II_1d) $(o-files-1d) $(deplibs.o)
+ @ln -f -s $(LIBDIR)/$(call DEAL_II_SHLIB_NAME,deal_II_1d) $@
$(LIBDIR)/libdeal_II_2d.g$(shared-lib-suffix): $(go-files-2d)
@echo "=====deal.II====2d====debug======$(MT)== Linking library: $(@F)"
- @$(SHLIBLD) $(LDFLAGS) $(SHLIBFLAGS) -o $(LIBDIR)/libdeal_II_2d.g$(shared-lib-suffix).$(DEAL_II_VERSION) -Wl,-soname,libdeal_II_2d.g$(shared-lib-suffix).$(DEAL_II_VERSION) $(go-files-2d) $(deplibs.g)
- @ln -f -s libdeal_II_2d.g$(shared-lib-suffix).$(DEAL_II_VERSION) $@
+ @$(SHLIBLD) $(LDFLAGS) $(SHLIBFLAGS) -o $(LIBDIR)/$(call DEAL_II_SHLIB_NAME,deal_II_2d.g) $(call DEAL_II_ADD_SONAME,deal_II_2d.g) $(go-files-2d) $(deplibs.g)
+ @ln -f -s $(LIBDIR)/$(call DEAL_II_SHLIB_NAME,deal_II_2d.g) $@
$(LIBDIR)/libdeal_II_2d$(shared-lib-suffix): $(o-files-2d)
@echo "=====deal.II====2d====optimized==$(MT)== Linking library: $(@F)"
- @$(SHLIBLD) $(LDFLAGS) $(SHLIBFLAGS) -o $(LIBDIR)/libdeal_II_2d$(shared-lib-suffix).$(DEAL_II_VERSION) -Wl,-soname,libdeal_II_2d$(shared-lib-suffix).$(DEAL_II_VERSION) $(o-files-2d) $(deplibs.o)
- @ln -f -s libdeal_II_2d$(shared-lib-suffix).$(DEAL_II_VERSION) $@
+ @$(SHLIBLD) $(LDFLAGS) $(SHLIBFLAGS) -o $(LIBDIR)/$(call DEAL_II_SHLIB_NAME,deal_II_2d) $(call DEAL_II_ADD_SONAME,deal_II_2d) $(o-files-2d) $(deplibs.o)
+ @ln -f -s $(LIBDIR)/$(call DEAL_II_SHLIB_NAME,deal_II_2d) $@
$(LIBDIR)/libdeal_II_3d.g$(shared-lib-suffix): $(go-files-3d)
@echo "=====deal.II====3d====debug======$(MT)== Linking library: $(@F)"
- @$(SHLIBLD) $(LDFLAGS) $(SHLIBFLAGS) -o $(LIBDIR)/libdeal_II_3d.g$(shared-lib-suffix).$(DEAL_II_VERSION) -Wl,-soname,libdeal_II_3d.g$(shared-lib-suffix).$(DEAL_II_VERSION) $(go-files-3d) $(deplibs.g)
- @ln -f -s libdeal_II_3d.g$(shared-lib-suffix).$(DEAL_II_VERSION) $@
+ @$(SHLIBLD) $(LDFLAGS) $(SHLIBFLAGS) -o $(LIBDIR)/$(call DEAL_II_SHLIB_NAME,deal_II_3d.g) $(call DEAL_II_ADD_SONAME,deal_II_3d.g) $(go-files-3d) $(deplibs.g)
+ @ln -f -s $(LIBDIR)/$(call DEAL_II_SHLIB_NAME,deal_II_3d.g) $@
$(LIBDIR)/libdeal_II_3d$(shared-lib-suffix): $(o-files-3d)
@echo "=====deal.II====3d====optimized==$(MT)== Linking library: $(@F)"
- @$(SHLIBLD) $(LDFLAGS) $(SHLIBFLAGS) -o $(LIBDIR)/libdeal_II_3d$(shared-lib-suffix).$(DEAL_II_VERSION) -Wl,-soname,libdeal_II_3d$(shared-lib-suffix).$(DEAL_II_VERSION) $(o-files-3d) $(deplibs.o)
- @ln -f -s libdeal_II_3d$(shared-lib-suffix).$(DEAL_II_VERSION) $@
+ @$(SHLIBLD) $(LDFLAGS) $(SHLIBFLAGS) -o $(LIBDIR)/$(call DEAL_II_SHLIB_NAME,deal_II_3d) $(call DEAL_II_ADD_SONAME,deal_II_3d) $(o-files-3d) $(deplibs.o)
+ @ln -f -s $(LIBDIR)/$(call DEAL_II_SHLIB_NAME,deal_II_3d) $@
$(LIBDIR)/liblac$(shared-lib-suffix): $(o-files)
@echo "=====lac==============optimized==$(MT)== Linking library: $(@F)"
- @$(SHLIBLD) $(LDFLAGS) $(SHLIBFLAGS) -o $(LIBDIR)/liblac$(shared-lib-suffix).$(DEAL_II_VERSION) $(o-files) -Wl,-soname,liblac$(shared-lib-suffix).$(DEAL_II_VERSION) $(deplibs.o)
- @ln -f -s liblac$(shared-lib-suffix).$(DEAL_II_VERSION) $@
+ @$(SHLIBLD) $(LDFLAGS) $(SHLIBFLAGS) -o $(LIBDIR)/$(call DEAL_II_SHLIB_NAME,lac) $(call DEAL_II_ADD_SONAME,lac) $(o-files) $(deplibs.o)
+ @ln -f -s $(LIBDIR)/$(call DEAL_II_SHLIB_NAME,lac) $@
$(LIBDIR)/liblac.g$(shared-lib-suffix): $(go-files)
@echo "=====lac==============debug======$(MT)== Linking library: $(@F)"
- @$(SHLIBLD) $(LDFLAGS) $(SHLIBFLAGS) -o $(LIBDIR)/liblac.g$(shared-lib-suffix).$(DEAL_II_VERSION) -Wl,-soname,liblac.g$(shared-lib-suffix).$(DEAL_II_VERSION) $(go-files) $(deplibs.g)
- @ln -f -s liblac.g$(shared-lib-suffix).$(DEAL_II_VERSION) $@
+ @$(SHLIBLD) $(LDFLAGS) $(SHLIBFLAGS) -o $(LIBDIR)/$(call DEAL_II_SHLIB_NAME,lac.g) $(call DEAL_II_ADD_SONAME,lac.g) $(go-files) $(deplibs.g)
+ @ln -f -s $(LIBDIR)/$(call DEAL_II_SHLIB_NAME,lac.g) $@
clean:
libpetscall.g$(shared-lib-suffix): $(xlib.g)
@echo "======================debug============= Linking library: libpetscall.g$(shared-lib-suffix)"
- @$(SHLIBLD) $(LDFLAGS) $(SHLIBFLAGS) -o libpetscall.g$(shared-lib-suffix).$(DEAL_II_VERSION) \
- -Wl,-soname,libpetscall.g$(shared-lib-suffix).$(DEAL_II_VERSION) $(xlib.g)
- @ln -f -s libpetscall.g$(shared-lib-suffix).$(DEAL_II_VERSION) $@
+ @$(SHLIBLD) $(LDFLAGS) $(SHLIBFLAGS) -o $(LIBDIR)/$(call DEAL_II_SHLIB_NAME,petscall.g) $(call DEAL_II_ADD_SONAME,petscall.g) $(xlib.g)
+ @ln -f -s $(LIBDIR)/$(call DEAL_II_SHLIB_NAME,petscall.g) $@
libpetscall$(shared-lib-suffix): $(xlib.o)
@echo "======================optimized========= Linking library: libpetscall$(shared-lib-suffix)"
- @$(SHLIBLD) $(LDFLAGS) $(SHLIBFLAGS) -o libpetscall$(shared-lib-suffix).$(DEAL_II_VERSION) \
- -Wl,-soname,libpetscall$(shared-lib-suffix).$(DEAL_II_VERSION) $(xlib.o)
- @ln -f -s libpetscall$(shared-lib-suffix).$(DEAL_II_VERSION) $@
+ @$(SHLIBLD) $(LDFLAGS) $(SHLIBFLAGS) -o$(LIBDIR)/$(call DEAL_II_SHLIB_NAME,petscall) $(call DEAL_II_ADD_SONAME,petscall) $(xlib.o)
+ @ln -f -s $(LIBDIR)/$(call DEAL_II_SHLIB_NAME,petscall) $@
else