#
FOREACH(lib ${DEAL_II_EXTERNAL_LIBRARIES} ${DEAL_II_LIBRARIES})
GET_FILENAME_COMPONENT(path ${lib} PATH)
- LIST(APPEND MAKEFILE_LDFLAGS "-Wl,-rpath -Wl,${path}")
+ LIST(APPEND MAKEFILE_RPATHFLAGS "-Wl,-rpath -Wl,${path}")
ENDFOREACH()
- LIST(REMOVE_DUPLICATES MAKEFILE_LDFLAGS)
- TO_STRING(MAKEFILE_LDFLAGS ${MAKEFILE_LDFLAGS})
- SET(MAKEFILE_LDFLAGS "${CMAKE_SHARED_LINKER_FLAGS} ${MAKEFILE_LDFLAGS}")
+ LIST(REMOVE_DUPLICATES MAKEFILE_RPATHFLAGS)
+ TO_STRING(MAKEFILE_RPATHFLAGS ${MAKEFILE_RPATHFLAGS})
+
+ SET(MAKEFILE_LDFLAGS "${CMAKE_SHARED_LINKER_FLAGS}")
CONFIGURE_FILE(
${CMAKE_CURRENT_SOURCE_DIR}/Make.global_options.in
# Compatibility Make.global_options file
#
-# TODO: Update this comment:
-###############################################################################
-## Please note:
-## The ./configure script generates Make.global_options from
-## Make.global_options.in, so if you want to change something,
-## then do it in the latter file and re-run ./configure in the
-## top level directory
-##
-##
-## This file exports several variables. They are documented in
-## the file doc/development/makefiles.html. If you add a new
-## variable, make sure it is documented in
-## doc/development/makefiles.1.html and listed in
-## doc/development/Makefile.
-###############################################################################
+# TODO: Update the old comment and put it back again
+#
+# - Setup OBJEXT and EXEEXT in a way this makefile expects them
+#
+# *** ISSUES ***
+#
+# - What is LIBS for? There is this other mechanism for specifying
+# full paths of necessary libraries. We know all the libraries with full
+# path, so we just use the latter mechanism and leave LIBS empty for now.
+#
+# - The link line "$(CXX) -o $@ <libraries> $(LIBS) $(LDFLAGS)"
+# of the examples is broken. LDFLAGS should be in front. As a workaround,
+# we have to specify the rpath flags ${MAKEFILE_RPATHFLAGS} directly in
+# front of the libraries.
+#
+# TODO: Set up the other configuration variables that are currently
+# removed...
+#
+
D = @CMAKE_INSTALL_PREFIX@
CXX = @CMAKE_CXX_COMPILER@
RANLIB = @CMAKE_RANLIB@
LDFLAGS = @MAKEFILE_LDFLAGS@
-#LIBS = @LIBS@ # TODO
+LIBS = #Empty
LIBDIR = @CMAKE_INSTALL_PREFIX@/@DEAL_II_LIBRARY_RELDIR@
DEAL_II_MAJOR = @DEAL_II_MAJOR@
DEAL_II_MINOR = @DEAL_II_MINOR@
-DEAL_II_USE_MPI = @DEAL_II_USE_MPI@
+DEAL_II_USE_MPI = @DEAL_II_WITH_MPI@
#TARGET = @target@ # TODO
# set paths to all the libraries we need:
-lib-deal2.o = ${MAKEFILE_LIBRARIES}
-lib-deal2.g = ${MAKEFILE_LIBRARIES}
+lib-deal2.o = ${MAKEFILE_RPATHFLAGS} ${MAKEFILE_LIBRARIES}
+lib-deal2.g = ${MAKEFILE_RPATHFLAGS} ${MAKEFILE_LIBRARIES}
# necessary includes: