From f95f6a5f71125ad94893ad4f38525c59303403d0 Mon Sep 17 00:00:00 2001 From: Elias Pipping <elias.pipping@fu-berlin.de> Date: Sun, 10 Feb 2013 22:21:58 +0100 Subject: [PATCH] Clean up the build system --- .gitignore | 1 - Makefile.am | 14 ++------------ configure.ac | 12 ------------ doc/Makefile.am | 12 ------------ doc/doxygen/Doxylocal | 30 ------------------------------ doc/doxygen/Makefile.am | 7 ------- src/tests/Makefile.am | 26 ++++++++++++++++++++++++-- 7 files changed, 26 insertions(+), 76 deletions(-) delete mode 100644 doc/Makefile.am delete mode 100644 doc/doxygen/Doxylocal delete mode 100644 doc/doxygen/Makefile.am diff --git a/.gitignore b/.gitignore index 0a336d85..77ba5a6a 100644 --- a/.gitignore +++ b/.gitignore @@ -9,7 +9,6 @@ /configure /depcomp /dependencies.m4 -/doc/doxygen/Doxyfile.in /install-sh /ltmain.sh /missing diff --git a/Makefile.am b/Makefile.am index 2a4b3154..4eed0f14 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,16 +1,6 @@ -# $Id$ +EXTRA_DIST = dune.module -# we need the module file to be able to build via dunecontrol -EXTRA_DIST=dune.module - -SUBDIRS = src m4 dune doc - -if BUILD_DOCS -#SUBDIRS += doc -endif - -# pass most important options when "make distcheck" is used -DISTCHECK_CONFIGURE_FLAGS = --with-dune-common=$(DUNE_COMMON_ROOT) --with-dune-fufem=$(DUNE_FUFEM_ROOT) --with-dune-tnnmg=$(DUNE_TNNMG_ROOT) CXX="$(CXX)" CC="$(CC)" +SUBDIRS = src m4 dune include $(top_srcdir)/am/top-rules include $(top_srcdir)/am/global-rules diff --git a/configure.ac b/configure.ac index 308e2748..30bd4d5d 100644 --- a/configure.ac +++ b/configure.ac @@ -7,24 +7,12 @@ AM_SILENT_RULES AC_CONFIG_SRCDIR([src/one-body-sample.cc]) AC_CONFIG_HEADERS([config.h]) - -# we need no more than the standard DE-stuff -# this module depends on dune-common dune-fufem dune-tnnmg -# this implies checking for [dune-common], [dune-grid], [dune-istl], [dune-localfunctions], [dune-fufem], [dune-solvers], [dune-tnnmg] DUNE_CHECK_ALL -# implicitly set the Dune-flags everywhere -AC_SUBST(AM_CPPFLAGS, $DUNE_CPPFLAGS) -AC_SUBST(AM_LDFLAGS, $DUNE_LDFLAGS) -LIBS="$DUNE_LIBS" - AC_CONFIG_FILES([ Makefile src/Makefile src/tests/Makefile - doc/Makefile - doc/doxygen/Makefile - doc/doxygen/Doxyfile dune/Makefile dune/tectonic/Makefile m4/Makefile diff --git a/doc/Makefile.am b/doc/Makefile.am deleted file mode 100644 index f9314497..00000000 --- a/doc/Makefile.am +++ /dev/null @@ -1,12 +0,0 @@ - -SUBDIRS = doxygen -CURDIR = doc -BASEDIR = .. - -# add list of html files to generate from wml -PAGES= - -docdir=$(datadir)/doc/dune-tectonic - -include $(top_srcdir)/am/webstuff -include $(top_srcdir)/am/global-rules diff --git a/doc/doxygen/Doxylocal b/doc/doxygen/Doxylocal deleted file mode 100644 index e16f3eda..00000000 --- a/doc/doxygen/Doxylocal +++ /dev/null @@ -1,30 +0,0 @@ -# This file contains local changes to the doxygen configuration -# please us '+=' to add file/directories to the lists - -# The INPUT tag can be used to specify the files and/or directories that contain -# documented source files. You may enter file names like "myfile.cpp" or -# directories like "/usr/src/myproject". Separate the files or directories -# with spaces. - -INPUT += @top_srcdir@/dune/ -# see e.g. dune-grid for the examples of mainpage and modules -# INPUT += @srcdir@/mainpage # @srcdir@/modules - -# The EXCLUDE tag can be used to specify files and/or directories that should -# excluded from the INPUT source files. This way you can easily exclude a -# subdirectory from a directory tree whose root is specified with the INPUT tag. - -# EXCLUDE += @top_srcdir@/dune/tectonic/test - -# The EXAMPLE_PATH tag can be used to specify one or more files or -# directories that contain example code fragments that are included (see -# the \include command). - -# EXAMPLE_PATH += @top_srcdir@/src - -# The IMAGE_PATH tag can be used to specify one or more files or -# directories that contain image that are included in the documentation (see -# the \image command). - -# IMAGE_PATH += @top_srcdir@/dune/tectonic/pics - diff --git a/doc/doxygen/Makefile.am b/doc/doxygen/Makefile.am deleted file mode 100644 index d94c751b..00000000 --- a/doc/doxygen/Makefile.am +++ /dev/null @@ -1,7 +0,0 @@ - -BASEDIR=../.. -CURDIR=doc/doxygen - -include $(top_srcdir)/am/doxygen -include $(top_srcdir)/am/global-rules - diff --git a/src/tests/Makefile.am b/src/tests/Makefile.am index 90342183..899cb29b 100644 --- a/src/tests/Makefile.am +++ b/src/tests/Makefile.am @@ -37,8 +37,30 @@ test_minimise2_SOURCES = test-minimise2.cc TESTS = $(check_PROGRAMS) +AM_CXXFLAGS = \ + -Wall \ + -Wextra \ + -Wno-c++11-compat \ + -Wno-c++11-extensions \ + -Wno-deprecated-declarations \ + -Wno-mismatched-tags \ + -Wno-missing-declarations \ + -Wno-overloaded-virtual \ + -Wno-reorder \ + -Wno-sign-compare \ + -Wno-tautological-compare \ + -Wno-type-limits \ + -Wno-unused-parameter \ + -Wno-unused-variable + AM_CPPFLAGS = \ + -DDUNE_FMatrix_WITH_CHECKING \ $(DUNE_CPPFLAGS) \ - $(PYTHON_CPPFLAGS) \ - $(ALUGRID_CPPFLAGS) \ -I$(top_srcdir) + +# The libraries have to be given in reverse order (most basic libraries +# last). +LDADD = \ + $(DUNE_LDFLAGS) $(DUNE_LIBS) +AM_LDFLAGS = \ + $(DUNE_LDFLAGS) -- GitLab