From: Matthias Maier
Date: Sun, 11 Jan 2015 15:50:45 +0000 (+0100)
Subject: Remove component COMPAT_FILES
X-Git-Tag: v8.3.0-rc1~531^2~4
X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=761bb4a81d2cc5157f671e64bdf5d692b327c2ee;p=dealii.git
Remove component COMPAT_FILES
---
diff --git a/cmake/config/CMakeLists.txt b/cmake/config/CMakeLists.txt
index e457629e05..03e544b6b7 100644
--- a/cmake/config/CMakeLists.txt
+++ b/cmake/config/CMakeLists.txt
@@ -16,7 +16,6 @@
#
# This file sets up the project configuration consisting of
#
-# Make.global_options (legacy)
# deal.IIConfig.cmake
# deal.IIVersionConfig.cmake
#
@@ -32,7 +31,7 @@ MESSAGE(STATUS "Setting up project configuration")
#
CONFIGURE_FILE( # for binary dir:
${CMAKE_CURRENT_SOURCE_DIR}/template-arguments.in
- ${CMAKE_BINARY_DIR}/${DEAL_II_COMMON_RELDIR}/template-arguments
+ ${CMAKE_BINARY_DIR}/${DEAL_II_SHARE_RELDIR}/template-arguments
)
@@ -210,178 +209,4 @@ FOREACH(var ${res})
ENDIF()
ENDFOREACH()
-
-########################################################################
-# #
-# Configure and install the old Makefile configuration: #
-# #
-########################################################################
-
-IF(DEAL_II_COMPONENT_COMPAT_FILES)
- #
- # Transform some cmake lists into a string that the old Makefile
- # mechanism actually understands:
- #
-
- FOREACH(build ${DEAL_II_BUILD_TYPES})
-
- TO_STRING_AND_ADD_PREFIX(MAKEFILE_DEFINITIONS_${build}
- "-D"
- ${DEAL_II_USER_DEFINITIONS}
- ${DEAL_II_USER_DEFINITIONS_${build}}
- )
-
- #
- # Ideally, DEAL_II_EXTERNAL_LIBRARIES should just contain a list of
- # full library paths. Nevertheless, filter out all elements that are
- # not a full path starting with "/" or that happen to be a "framework"
- # - we won't deal with that in Make.global_options.
- #
-
- SET(_libs)
- FOREACH(_lib
- ${DEAL_II_LIBRARIES_${build}}
- ${DEAL_II_LIBRARIES}
- )
- IF(_lib MATCHES "^\\s*\\/" AND NOT _lib MATCHES "\\.framework$")
- LIST(APPEND _libs "${_lib}")
- ENDIF()
- ENDFOREACH()
-
- TO_STRING(MAKEFILE_TARGETS_${build}
- $(D)/${DEAL_II_LIBRARY_RELDIR}/${CONFIG_LIBRARY_${build}}
- ${_libs}
- )
-
- SET(_paths)
- FOREACH(_lib
- $(D)/${DEAL_II_LIBRARY_RELDIR}/${CONFIG_LIBRARY_${build}}
- ${DEAL_II_LIBRARIES_${build}}
- ${DEAL_II_LIBRARIES}
- )
-
- #
- # Strip leading and trailing whitespace
- #
- STRING(STRIP "${_lib}" _lib)
-
- IF(_lib MATCHES "^\\/.*\\.framework$")
- #
- # We have a MacOSX framework
- #
- # TODO: What do?
- #
-
- ELSEIF(_lib MATCHES "^(\\/|\\$\\(D\\))")
- #
- # Full path: /path/to/libfoo.(so|dylib|etc):
- #
-
- # Extract library paths:
- GET_FILENAME_COMPONENT(_path ${_lib} PATH)
- LIST(APPEND _paths ${_path})
-
- LIST(APPEND MAKEFILE_LIBS_${build} ${_lib})
-
- ELSEIF(_lib MATCHES "^-l")
- #
- # Library is of the form "-lfoo":
- #
- LIST(APPEND MAKEFILE_LIBS_${build} ${_lib})
-
- ELSEIF(NOT _lib MATCHES "^\\s*$" AND NOT _lib MATCHES "\\.so(\\.[0-9]+)*$")
- #
- # Well in this case we just assume that we have to append a "-l"
- #
-
- LIST(APPEND MAKEFILE_LIBS_${build} "-l${_lib}")
-
- ELSE()
- #
- # For now, ignore the rest.
- #
- # TODO: What do?
- #
- ENDIF()
-
- ENDFOREACH()
-
- #
- # And build up an rpath:
- #
- SET(_rpath "")
- LIST(REMOVE_DUPLICATES _paths)
- FOREACH(_path ${_paths})
- SET(_rpath "${_rpath} -Wl,-rpath,${_path}")
- ENDFOREACH()
-
- TO_STRING(MAKEFILE_LIBS_${build} ${MAKEFILE_LIBS_${build}} ${_rpath})
-
- #
- # Set up our linker flags:
- #
- SET(MAKEFILE_LDFLAGS_${build}
- "${DEAL_II_CXX_FLAGS} ${DEAL_II_CXX_FLAGS_${build}} ${DEAL_II_LINKER_FLAGS} ${DEAL_II_LINKER_FLAGS_${build}}"
- )
- ENDFOREACH()
-
- #
- # Boilerplate: The Make.global_options expects variables to be set to
- # yes, as is common for Makefiles.
- #
- COND_SET_TO_YES(DEAL_II_WITH_THREADS MAKEFILE_enablethreads)
- COND_SET_TO_YES(DEAL_II_WITH_MUPARSER MAKEFILE_enableparser)
- COND_SET_TO_YES(BUILD_SHARED_LIBS MAKEFILE_enableshared)
-
- COND_SET_TO_YES(DEAL_II_WITH_ARPACK MAKEFILE_ARPACK)
- COND_SET_TO_YES(DEAL_II_WITH_BLAS MAKEFILE_BLAS)
- COND_SET_TO_YES(DEAL_II_WITH_HDF5 MAKEFILE_HDF5)
- COND_SET_TO_YES(DEAL_II_WITH_LAPACK MAKEFILE_LAPACK)
- COND_SET_TO_YES(DEAL_II_WITH_METIS MAKEFILE_METIS)
- COND_SET_TO_YES(DEAL_II_WITH_MPI MAKEFILE_MPI)
- COND_SET_TO_YES(DEAL_II_WITH_OPENCASCADE MAKEFILE_OPENCASCADE)
- COND_SET_TO_YES(DEAL_II_WITH_P4EST MAKEFILE_P4EST)
- COND_SET_TO_YES(DEAL_II_WITH_PETSC MAKEFILE_PETSC)
- COND_SET_TO_YES(DEAL_II_WITH_SLEPC MAKEFILE_SLEPC)
- COND_SET_TO_YES(DEAL_II_WITH_TRILINOS MAKEFILE_TRILINOS)
- COND_SET_TO_YES(DEAL_II_WITH_UMFPACK MAKEFILE_UMFPACK)
-
- #
- # For binary dir:
- #
- SET(MAKEFILE_D ${CMAKE_BINARY_DIR})
- TO_STRING_AND_ADD_PREFIX(MAKEFILE_INCLUDE_DIRS "${CMAKE_INCLUDE_FLAG_CXX}"
- $(D)/install
- $(D)/install/deal.II
- ${CMAKE_SOURCE_DIR}/include/
- ${CMAKE_SOURCE_DIR}/include/deal.II
- ${DEAL_II_BUNDLED_INCLUDE_DIRS}
- ${DEAL_II_USER_INCLUDE_DIRS}
- )
- CONFIGURE_FILE(
- ${CMAKE_CURRENT_SOURCE_DIR}/Make.global_options.in
- ${CMAKE_BINARY_DIR}/${DEAL_II_COMMON_RELDIR}/Make.global_options
- )
- #
- # For installation:
- #
- SET(MAKEFILE_D ${CMAKE_INSTALL_PREFIX})
- TO_STRING_AND_ADD_PREFIX(MAKEFILE_INCLUDE_DIRS "${CMAKE_INCLUDE_FLAG_CXX}"
- $(D)/${DEAL_II_INCLUDE_RELDIR}
- $(D)/${DEAL_II_INCLUDE_RELDIR}/deal.II
- $(D)/${DEAL_II_INCLUDE_RELDIR}/deal.II/bundled
- ${DEAL_II_USER_INCLUDE_DIRS}
- )
- CONFIGURE_FILE(
- ${CMAKE_CURRENT_SOURCE_DIR}/Make.global_options.in
- ${CMAKE_CURRENT_BINARY_DIR}/Make.global_options
- )
- INSTALL(FILES
- ${CMAKE_BINARY_DIR}/${DEAL_II_COMMON_RELDIR}/template-arguments
- ${CMAKE_CURRENT_BINARY_DIR}/Make.global_options
- DESTINATION ${DEAL_II_COMMON_RELDIR}
- COMPONENT compat_files
- )
-ENDIF()
-
MESSAGE(STATUS "Setting up project configuration - Done")
diff --git a/cmake/config/Config.cmake.in b/cmake/config/Config.cmake.in
index 81744120dd..184fc8d9a3 100644
--- a/cmake/config/Config.cmake.in
+++ b/cmake/config/Config.cmake.in
@@ -46,7 +46,7 @@ SET(DEAL_II_BUILD_TYPES "@DEAL_II_BUILD_TYPES@")
#
SET(DEAL_II_CMAKE_MACROS_RELDIR "@DEAL_II_CMAKE_MACROS_RELDIR@")
-SET(DEAL_II_COMMON_RELDIR "@DEAL_II_COMMON_RELDIR@")
+SET(DEAL_II_SHARE_RELDIR "@DEAL_II_SHARE_RELDIR@")
SET(DEAL_II_DOCREADME_RELDIR "@DEAL_II_DOCREADME_RELDIR@")
SET(DEAL_II_DOCHTML_RELDIR "@DEAL_II_DOCHTML_RELDIR@")
SET(DEAL_II_EXAMPLES_RELDIR "@DEAL_II_EXAMPLES_RELDIR@")
diff --git a/cmake/config/Make.global_options.in b/cmake/config/Make.global_options.in
deleted file mode 100644
index aa3290857b..0000000000
--- a/cmake/config/Make.global_options.in
+++ /dev/null
@@ -1,98 +0,0 @@
-## ---------------------------------------------------------------------
-##
-## Copyright (C) 2012 - 2015 by the deal.II authors
-##
-## This file is part of the deal.II library.
-##
-## The deal.II library is free software; you can use it, redistribute
-## it, and/or modify it under the terms of the GNU Lesser General
-## Public License as published by the Free Software Foundation; either
-## version 2.1 of the License, or (at your option) any later version.
-## The full text of the license can be found in the file LICENSE at
-## the top level of the deal.II distribution.
-##
-## ---------------------------------------------------------------------
-
-
-#
-# Please note:
-#
-# This is a compatibility Make.global_options file generated by CMake
-# from the ./cmake/config/Make.global_options.in file.
-#
-
-
-D = @MAKEFILE_D@
-
-CXX = @CMAKE_CXX_COMPILER@
-CXX-ID = @CMAKE_CXX_COMPILER_ID@
-CXX-VERSION = @CMAKE_CXX_COMPILER_VERSION@
-SHLIBLD = @CMAKE_CXX_COMPILER@
-SHLIBFLAGS = @CMAKE_SHARED_LIBRARY_CREATE_CXX_FLAGS@
-
-ifeq ($(debug-mode), on)
- LDFLAGS = @MAKEFILE_LDFLAGS_DEBUG@
- LIBS = @MAKEFILE_LIBS_DEBUG@
-else
- LDFLAGS = @MAKEFILE_LDFLAGS_RELEASE@
- LIBS = @MAKEFILE_LIBS_RELEASE@
-endif
-
-LIBDIR = $(D)/@DEAL_II_LIBRARY_RELDIR@
-
-enable-threads = @MAKEFILE_enablethreads@
-enable-shared = @MAKEFILE_enableshared@
-enable-parser = @MAKEFILE_enableparser@
-DEAL_II_VERSION = @DEAL_II_PACKAGE_VERSION@
-DEAL_II_MAJOR = @DEAL_II_VERSION_MAJOR@
-DEAL_II_MINOR = @DEAL_II_VERSION_MINOR@
-DEAL_II_SUBMINOR = @DEAL_II_VERSION_SUBMINOR@
-
-PERL = perl
-
-
-USE_CONTRIB_PETSC = @MAKEFILE_PETSC@
-USE_CONTRIB_SLEPC = @MAKEFILE_SLEPC@
-USE_CONTRIB_TRILINOS = @MAKEFILE_TRILINOS@
-USE_CONTRIB_HDF5 = @MAKEFILE_HDF5@
-USE_CONTRIB_BLAS = @MAKEFILE_BLAS@
-USE_CONTRIB_LAPACK = @MAKEFILE_LAPACK@
-USE_CONTRIB_ARPACK = @MAKEFILE_ARPACK@
-USE_CONTRIB_METIS = @MAKEFILE_METIS@
-USE_CONTRIB_UMFPACK = @MAKEFILE_UMFPACK@
-USE_CONTRIB_P4EST = @MAKEFILE_P4EST@
-USE_CONTRIB_OPENCASCADE = @MAKEFILE_OPENCASCADE@
-DEAL_II_USE_MPI = @MAKEFILE_MPI@
-
-OBJEXT = o
-EXEEXT =
-
-shared-lib-suffix = .so
-static-lib-suffix = .a
-
-ifeq ($(enable-shared),yes)
- lib-suffix = $(shared-lib-suffix)
-else
- lib-suffix = $(static-lib-suffix)
-endif
-
-
-# set paths to all the libraries we need:
-lib-deal2.o = @MAKEFILE_TARGETS_RELEASE@
-lib-deal2.g = @MAKEFILE_TARGETS_DEBUG@
-
-
-# Include paths as command line flags
-INCLUDE = @MAKEFILE_INCLUDE_DIRS@
-
-
-# compiler flags for debug and optimized mode
-CXXFLAGS.g = @DEAL_II_CXX_FLAGS@ @DEAL_II_CXX_FLAGS_DEBUG@ @MAKEFILE_DEFINITIONS@ @MAKEFILE_DEFINITIONS_DEBUG@ $(INCLUDE)
-CXXFLAGS.o = @DEAL_II_CXX_FLAGS@ @DEAL_II_CXX_FLAGS_RELEASE@ @MAKEFILE_DEFINITIONS@ @MAKEFILE_DEFINITIONS_RELEASE@ $(INCLUDE)
-
-ifeq ($(enable-threads),yes)
- MT = MT
-else
- MT = ==
-endif
-
diff --git a/cmake/cpack-mac-bundle/dealii-terminal.in b/cmake/cpack-mac-bundle/dealii-terminal.in
index 383755815f..67b881832c 100755
--- a/cmake/cpack-mac-bundle/dealii-terminal.in
+++ b/cmake/cpack-mac-bundle/dealii-terminal.in
@@ -53,7 +53,7 @@ fi
# Everything seems to be okay. Launch a terminal with PATH's
# set up to work with deal.II.
-CONF=$DEAL_II_RESOURCES/@DEAL_II_COMMON_RELDIR@/dealii.conf
+CONF=$DEAL_II_RESOURCES/@DEAL_II_SHARE_RELDIR@/dealii.conf
if ! [[ -f $CONF ]]; then
return=`/usr/bin/osascript < ${CMAKE_CURRENT_BINARY_DIR}/${_inst_file}
)
diff --git a/cmake/scripts/CMakeLists.txt b/cmake/scripts/CMakeLists.txt
index 3da2440022..03f5bfbddd 100644
--- a/cmake/scripts/CMakeLists.txt
+++ b/cmake/scripts/CMakeLists.txt
@@ -1,6 +1,6 @@
## ---------------------------------------------------------------------
##
-## Copyright (C) 2012 - 2014 by the deal.II authors
+## Copyright (C) 2012 - 2015 by the deal.II authors
##
## This file is part of the deal.II library.
##
@@ -14,30 +14,7 @@
## ---------------------------------------------------------------------
ADD_EXECUTABLE(expand_instantiations_exe expand_instantiations.cc)
-SET_TARGET_PROPERTIES(expand_instantiations_exe
- PROPERTIES OUTPUT_NAME expand_instantiations
+SET_TARGET_PROPERTIES(expand_instantiations_exe PROPERTIES
+ OUTPUT_NAME expand_instantiations
+ RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/${DEAL_II_EXECUTABLE_RELDIR}
)
-
-IF(DEAL_II_COMPONENT_COMPAT_FILES)
- MESSAGE(STATUS "Setting up compat_files")
-
- #
- # Also build and install the old dependency_resolution executable:
- #
-
- ADD_EXECUTABLE(make_dependencies make_dependencies.cc)
-
- ADD_DEPENDENCIES(compat_files
- expand_instantiations_exe
- make_dependencies
- )
-
- SET_TARGET_PROPERTIES(expand_instantiations_exe make_dependencies
- PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/${DEAL_II_COMMON_RELDIR}/scripts
- )
- INSTALL(TARGETS expand_instantiations_exe make_dependencies
- DESTINATION ${DEAL_II_COMMON_RELDIR}/scripts
- COMPONENT compat_files
- )
- MESSAGE(STATUS "Setting up compat_files - Done")
-ENDIF()
diff --git a/cmake/scripts/make_dependencies.cc b/cmake/scripts/make_dependencies.cc
deleted file mode 100644
index 83ba9c433e..0000000000
--- a/cmake/scripts/make_dependencies.cc
+++ /dev/null
@@ -1,416 +0,0 @@
-// ---------------------------------------------------------------------
-//
-// Copyright (C) 2003 - 2014 by the deal.II authors
-//
-// This file is part of the deal.II library.
-//
-// The deal.II library is free software; you can use it, redistribute
-// it, and/or modify it under the terms of the GNU Lesser General
-// Public License as published by the Free Software Foundation; either
-// version 2.1 of the License, or (at your option) any later version.
-// The full text of the license can be found in the file LICENSE at
-// the top level of the deal.II distribution.
-//
-// ---------------------------------------------------------------------
-
-
-// Make a dependency file tree
-// usage: make_depencies -Iinc_path1 -Iinc_path2 ... -Bbasepath files
-
-// This program is basically a replacement for something like "gcc
-// -M", i.e. it generates for each input file a list of other files it
-// depends on by direct or indirect inclusion (or at least those files
-// that can be found in the directories specified by -I/path/.../
-// flags on the command line). The difference to gcc -M is that it is
-// much faster, since it doesn't really do much parsing except for
-// finding those lines that have a #include at the beginning
-//
-// The output looks like this:
-//
-// $basepath/.o-file $basepath/.g.o-file: file included_files
-//
-// $basepath is the dir where the object files are to be placed (as
-// given by the -B parameter to this script). if no path is given, no
-// path is printed. if one is given, a slash is appended if necessary
-
-// If the -n (for "new-style") flag is passed, then the output format
-// $basepath/optimized/.o-file $basepath/debug/.o-file: file included_files
-// is used.
-
-// Author: Wolfgang Bangerth, 2003 (and based on a previous perl
-// script written 1998, 1999, 2000, 2001, 2002)
-
-
-#include
-#include
-#include
-#include
- The default directory structure can be changed by by setting the
+ The default directory structure can be changed by setting the
following variables:
-DEAL_II_CMAKE_MACROS_RELDIR
-DEAL_II_COMMON_RELDIR
-DEAL_II_DOCHTML_RELDIR
-DEAL_II_DOCREADME_RELDIR
-DEAL_II_EXAMPLES_RELDIR
DEAL_II_EXECUTABLE_RELDIR
DEAL_II_INCLUDE_RELDIR
DEAL_II_LIBRARY_RELDIR
DEAL_II_PROJECT_CONFIG_RELDIR
+DEAL_II_SHARE_RELDIR
+DEAL_II_CMAKE_MACROS_RELDIR
+DEAL_II_DOCREADME_RELDIR
+DEAL_II_DOCHTML_RELDIR
+DEAL_II_EXAMPLES_RELDIR
-
Initial cache file and advanced options
diff --git a/doc/users/cmakelists.html b/doc/users/cmakelists.html
index 4282118f25..bad55716c4 100644
--- a/doc/users/cmakelists.html
+++ b/doc/users/cmakelists.html
@@ -47,7 +47,6 @@
Autopilot style CMakeLists.txt
deal.IIConfig.cmake
- Legacy Make.global_options
@@ -728,7 +727,7 @@ DEAL_II_BUILD_TYPES - an all caps list of available configurations,
DEAL_II_PATH
DEAL_II_CMAKE_MACROS_RELDIR
-DEAL_II_COMMON_RELDIR
+DEAL_II_SHARE_RELDIR
DEAL_II_DOCREADME_RELDIR
DEAL_II_DOCHTML_RELDIR
DEAL_II_EXAMPLES_RELDIR
@@ -808,35 +807,6 @@ DEAL_II_WITH_UMFPACK
DEAL_II_WITH_ZLIB
-
- Legacy Make.global_options
-
-
- Before version 8.0, deal.II used the
- traditional autoconf/make
configuration and build
- system. The interaction between these two programs, as well as
- propagation of information from deal.II to user
- programs happened through a number of files that were generated within
- the deal.II directory tree.
- The CMake build system sets up the following compatibility files (if
- DEAL_II_COMPONENT_COMPAT_FILES
is set, which is default):
-
-${CMAKE_INSTALL_PREFIX}/
- common/Make.global_options
- common/scripts/expand_instantiations
- common/scripts/make_dependencies
-
-
- Therefore, it should be sufficient to set D
in the old
- user Makefiles to:
-
-D=/path/install/dir
-
- where /path/install/dir
is the directory set up via
- CMAKE_INSTALL_PREFIX
(the path
- deal.II was installed to).
-
-