Skip to content
Snippets Groups Projects
Commit e315ed2c authored by Sander, Oliver's avatar Sander, Oliver
Browse files

Remove the AutoTools build system

Only cmake is supported from now on.
parent 4444ded7
No related branches found
No related tags found
No related merge requests found
......@@ -19,7 +19,6 @@ include(DuneMacros)
dune_project()
add_subdirectory("src")
add_subdirectory("m4")
add_subdirectory("dune")
add_subdirectory("doc")
add_subdirectory("cmake/modules")
......
# $Id$
# we need the module file to be able to build via dunecontrol
EXTRA_DIST=dune.module
SUBDIRS = doc m4 dune src test
# possible options
LDADD = $(IPOPT_LDFLAGS) $(IPOPT_LIBS)
AM_CPPFLAGS += $(IPOPT_CPPFLAGS)
ADOLC_CPPFLAGS = -I/home/sander/adolc-inst/include
ADOLC_LDFLAGS = -L/home/sander/adolc-inst/lib64
ADOLC_LIBS = -ladolc
noinst_PROGRAMS = finite-strain-elasticity \
mixed-cosserat-continuum \
rodobstacle rod-eoc
finite_strain_elasticity_SOURCES = finite-strain-elasticity.cc
finite_strain_elasticity_CXXFLAGS = $(UG_CPPFLAGS) $(IPOPT_CPPFLAGS) \
$(ADOLC_CPPFLAGS) $(PYTHON_CPPFLAGS) $(UMFPACK_CPPFLAGS)
finite_strain_elasticity_LDADD = $(UG_LIBS) $(IPOPT_LIBS) \
$(ADOLC_LIBS) $(PYTHON_LIBS) $(UMFPACK_LIBS)
finite_strain_elasticity_LDFLAGS = $(UG_LDFLAGS) $(IPOPT_LDFLAGS) \
$(ADOLC_LDFLAGS) $(PYTHON_LDFLAGS) $(UMFPACK_LDFLAGS)
mixed_cosserat_continuum_SOURCES = mixed-cosserat-continuum.cc
mixed_cosserat_continuum_CXXFLAGS = $(UG_CPPFLAGS) $(IPOPT_CPPFLAGS) \
$(ADOLC_CPPFLAGS) $(PYTHON_CPPFLAGS)
mixed_cosserat_continuum_LDADD = $(UG_LIBS) $(IPOPT_LIBS) \
$(ADOLC_LIBS) $(PYTHON_LIBS)
mixed_cosserat_continuum_LDFLAGS = $(UG_LDFLAGS) $(IPOPT_LDFLAGS) \
$(ADOLC_LDFLAGS) $(PYTHON_LDFLAGS)
rodobstacle_SOURCES = rodobstacle.cc
rod_eoc_SOURCES = rod-eoc.cc
# don't follow the full GNU-standard
# we need automake 1.5
AUTOMAKE_OPTIONS = foreign 1.5
include $(top_srcdir)/am/global-rules
include $(top_srcdir)/am/top-rules
Preparing the Sources
=========================
Additional to the software mentioned in README you'll need the
following programs installed on your system:
automake >= 1.9
autoconf >= 2.62
libtool
Getting started
---------------
If these preliminaries are met, you should run
dunecontrol all
which will find all installed dune modules as well as all dune modules
(not installed) which sources reside in a subdirectory of the current
directory. Note that if dune is not installed properly you will either
have to add the directory where the dunecontrol script resides (probably
./dune-common/bin) to your path or specify the relative path of the script.
On your project and all uninstalled DUNE source modules found the script
will then calls the GNU autoconf/automake to create a ./configure-script
and the Makefiles. Afterwards that configure script will be called and the
modules will be build using make all
Most probably you'll have to provide additional information to dunecontrol
(e. g. compilers, configure options) and/or make options.
The most convenient way is to use options files in this case. The files
defining three variables:
AUTOGEN_FLAGS flags passed to autogen
CONFIGURE_FLAGS flags passed to configure
MAKE_FLAGS flags passed to make
An example options file might look like this:
#use this options to autogen, configure and make if no other options are given
AUTOGEN_FLAGS="--ac=2.50 --ac=1.8" #Forces automake 2,50 and autoconf 1.8
CONFIGURE_FLAGS="CXX=g++-3.4 --prefix=/install/path" #force g++-3.4 as compiler
MAKE_FLAGS=install #Per default run make install instead of simply make
If you save this information into example.opts you can path the opts file to
dunecontrol via the --opts option, e. g.
dunecontrol --opts=example.opts all
To get a full list of available configure flags just run
dunecontrol configure --help
after running at least
dunecontrol autogen
More info
---------
See
dunecontrol --help
for further options.
The full build-system is described in the dune-common/doc/buildsystem (SVN version) or under share/doc/dune-common/buildsystem if you installed DUNE!
$Id$
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ(2.50)
DUNE_AC_INIT
AM_INIT_AUTOMAKE
AC_CONFIG_SRCDIR([src/rod3d.cc])
AM_CONFIG_HEADER([config.h])
# we need no more than the standard DUNE-stuff
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
doc/Makefile
doc/doxygen/Makefile
doc/doxygen/Doxyfile
dune/Makefile
dune/gfe/Makefile
dune/gfe/coupling/Makefile
src/Makefile
test/Makefile
m4/Makefile
dune-gfe.pc
])
AC_OUTPUT
# finally print the summary information
DUNE_SUMMARY_ALL
SUBDIRS = doxygen
CURDIR = doc
BASEDIR = ..
# where to install the documentation too
docdir=$(datadir)/doc/dune-gfe
include $(top_srcdir)/am/webstuff
include $(top_srcdir)/am/global-rules
BASEDIR=../..
CURDIR=doc/doxygen
include $(top_srcdir)/am/doxygen
include $(top_srcdir)/am/global-rules
# $Id: $
SUBDIRS = gfe
include $(top_srcdir)/am/global-rules
# $Id: $
SUBDIRS = coupling
AM_CPPFLAGS = @AM_CPPFLAGS@ -I$(top_srcdir)/..
srcincludedir = $(includedir)/dune/common
srcinclude_HEADERS = averagedistanceassembler.hh \
averageinterface.hh \
cosseratvtkwriter.hh \
cosseratvtkreader.hh \
embeddedglobalgfefunction.hh \
geodesicdifference.hh \
geodesicfeassembler.hh \
geodesicfefunctionadaptor.hh \
globalgeodesicfefunction.hh \
globalgfetestfunctionbasis.hh \
globalgfetestfunction.hh \
harmonicenergystiffness.hh \
hyperbolichalfspacepoint.hh \
linearalgebra.hh \
localgeodesicfefunction.hh \
localgeodesicfestiffness.hh \
localgeodesicfefdstiffness.hh \
localgfetestfunctionbasis.hh \
localprojectedfefunction.hh \
maxnormtrustregion.hh \
orthogonalmatrix.hh \
quaternion.hh \
realtuple.hh \
riemanniantrsolver.hh \
rigidbodymotion.hh \
rodassembler.hh \
rodfactory.hh \
rodlocalstiffness.hh \
rodwriter.hh \
rotation.hh \
skewmatrix.hh \
svd.hh \
targetspacertrsolver.hh \
tensorssd.hh \
tensor3.hh \
trustregionmmgbasesolver.hh \
trustregionsolver.hh \
trustregionsolver.cc \
unitvector.hh \
vtkfile.hh
include $(top_srcdir)/am/global-rules
# $Id: $
SUBDIRS =
srcincludedir = $(includedir)/dune/common/coupling
srcinclude_HEADERS = rodcontinuumcomplex.hh \
rodcontinuumddstep.hh \
rodcontinuumfixedpointstep.hh \
rodcontinuumsteklovpoincarestep.hh
include $(top_srcdir)/am/global-rules
install(PROGRAMS dune-gfe.m4 DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/dune/aclocal)
ALLM4S = dune-gfe.m4
aclocaldir = $(datadir)/aclocal
aclocal_DATA = $(ALLM4S)
EXTRA_DIST = $(ALLM4S)
include $(top_srcdir)/am/global-rules
dnl -*- autoconf -*-
# Macros needed to find dune-gfe and dependent libraries. They are called by
# the macros in ${top_src_dir}/dependencies.m4, which is generated by
# "dunecontrol autogen"
# Additional checks needed to build dune-gfe
# This macro should be invoked by every module which depends on dune-gfe, as
# well as by dune-gfe itself
AC_DEFUN([DUNE_GFE_CHECKS],[])
# Additional checks needed to find dune-gfe
# This macro should be invoked by every module which depends on dune-gfe, but
# not by dune-gfe itself
AC_DEFUN([DUNE_GFE_CHECK_MODULE],
[
DUNE_CHECK_MODULES([dune-gfe],[gfe/rotation.hh])
])
SUBDIRS =
ADOLC_CPPFLAGS = -I/home/sander/adolc-inst/include
ADOLC_LDFLAGS = -L/home/sander/adolc-inst/lib64
ADOLC_LIBS = -ladolc
noinst_PROGRAMS = cosserat-continuum \
harmonicmaps \
rod3d
cosserat_continuum_SOURCES = cosserat-continuum.cc
cosserat_continuum_CXXFLAGS = $(UG_CPPFLAGS) $(IPOPT_CPPFLAGS) \
$(ADOLC_CPPFLAGS) $(PYTHON_CPPFLAGS)
cosserat_continuum_LDADD = $(UG_LIBS) $(IPOPT_LIBS) \
$(ADOLC_LIBS) $(PYTHON_LIBS)
cosserat_continuum_LDFLAGS = $(UG_LDFLAGS) $(IPOPT_LDFLAGS) \
$(ADOLC_LDFLAGS) $(PYTHON_LDFLAGS)
harmonicmaps_SOURCES = harmonicmaps.cc
harmonicmaps_CXXFLAGS = $(UG_CPPFLAGS) $(AMIRAMESH_CPPFLAGS) $(IPOPT_CPPFLAGS) $(PSURFACE_CPPFLAGS) \
$(ADOLC_CPPFLAGS) $(PYTHON_CPPFLAGS)
harmonicmaps_LDADD = $(UG_LIBS) $(AMIRAMESH_LIBS) \
$(IPOPT_LIBS) $(PSURFACE_LIBS) \
$(ADOLC_LIBS) $(PYTHON_LIBS)
harmonicmaps_LDFLAGS = $(UG_LDFLAGS) $(AMIRAMESH_LDFLAGS) \
$(IPOPT_LDFLAGS) $(PSURFACE_LDFLAGS) \
$(ADOLC_LDFLAGS) $(PYTHON_LDFLAGS)
rod3d_SOURCES = rod3d.cc
rod3d_CXXFLAGS = $(IPOPT_CPPFLAGS)
rod3d_LDADD = $(IPOPT_LIBS)
rod3d_LDFLAGS = $(IPOPT_LDFLAGS)
# we need automake 1.5
AUTOMAKE_OPTIONS = foreign 1.5
# pass most important options when "make distcheck" is used
DISTCHECK_CONFIGURE_FLAGS = --with-dune-common=$(DUNE_COMMON_ROOT) --with-dune-geometry=$(DUNE_GEOMETRY_ROOT) --with-dune-grid=$(DUNE_GRID_ROOT) --with-dune-istl=$(DUNE_ISTL_ROOT) --with-dune-localfunctions=$(DUNE_LOCALFUNCTIONS_ROOT) CXX="$(CXX)" CC="$(CC)"
include $(top_srcdir)/am/global-rules
A stamp file to signify that this directory comes from a version control system, not an unpacked tarball
# $Id: Makefile.am 1867 2007-12-31 15:45:00Z sander@PCPOOL.MI.FU-BERLIN.DE $
# ADOL-C while it doesn't support pkg-config yet
# ADOLC_CPPFLAGS = -I/usr/include
# ADOLC_LDFLAGS = -L/usr/lib
ADOLC_CPPFLAGS = -I/home/sander/adolc-inst/include
ADOLC_LDFLAGS = -L/home/sander/adolc-inst/lib64
ADOLC_LIBS = -ladolc
# possible options
LDADD = $(UG_LDFLAGS) $(AMIRAMESH_LDFLAGS) $(UG_LIBS) $(AMIRAMESH_LIBS) $(IPOPT_LDFLAGS) $(IPOPT_LIBS)
AM_CPPFLAGS += $(ADOLC_CPPFLAGS) $(UG_CPPFLAGS) $(AMIRAMESH_CPPFLAGS) -Wall $(IPOPT_CPPFLAGS) $(PYTHON_CPPFLAGS)
check_PROGRAMS = adolctest \
averagedistanceassemblertest \
cosseratenergytest \
frameinvariancetest \
globalgfetestfunctionbasistest \
harmonicenergytest \
interpolationtest \
interillustration \
localgeodesicfefunctiontest \
localgeodesicfestiffnesstest \
localgfetestfunctiontest \
nestednesstest \
nonconvexitytest \
nonconvexitytest_simple \
orthogonalmatrixtest \
rodassemblertest \
rotationtest \
svdtest \
targetspacetest \
true-adolctest \
vtkreadertest
adolctest_SOURCES = adolctest.cc
adolctest_LDFLAGS = $(ADOLC_LDFLAGS) $(PYTHON_LDFLAGS) $(IPOPT_LDFLAGS)
adolctest_LDADD = $(ADOLC_LIBS) $(PYTHON_LIBS) $(IPOPT_LIBS) -lmpfr -lgmpxx -lgmp
true_adolctest_SOURCES = true-adolctest.cc
true_adolctest_LDFLAGS = $(ADOLC_LDFLAGS) $(PYTHON_LDFLAGS) $(IPOPT_LDFLAGS)
true_adolctest_LDADD = $(ADOLC_LIBS) $(PYTHON_LIBS) $(IPOPT_LIBS)
frameinvariancetest_SOURCES = frameinvariancetest.cc
rotationtest_SOURCES = rotationtest.cc
localgeodesicfefunctiontest_SOURCES = localgeodesicfefunctiontest.cc
localgeodesicfestiffnesstest_SOURCES = localgeodesicfestiffnesstest.cc
localgfetestfunctiontest_SOURCES = localgfetestfunctiontest.cc
nestednesstest_SOURCES = nestednesstest.cc
nonconvexitytest_SOURCES = nonconvexitytest.cc
nonconvexitytest_LDADD = -ladolc
nonconvexitytest_simple_SOURCES = nonconvexitytest_simple.cc
nonconvexitytest_simple_LDADD = -ladolc
globalgfetestfunctionbasistest_SOURCES = globalgfetestfunctionbasistest.cc
harmonicenergytest_SOURCES = harmonicenergytest.cc
interpolationtest_SOURCES = interpolationtest.cc
interillustration_SOURCES = interillustration.cc
cosseratenergytest_SOURCES = cosseratenergytest.cc
averagedistanceassemblertest_SOURCES = averagedistanceassemblertest.cc
orthogonalmatrixtest_SOURCES = orthogonalmatrixtest.cc
rodassemblertest_SOURCES = rodassemblertest.cc
targetspacetest_SOURCES = targetspacetest.cc
svdtest_SOURCES = svdtest.cc
vtkreadertest_SOURCES = vtkreadertest.cc
vtkreadertest_CXXFLAGS = -DHAVE_TINYXML2
vtkreadertest_LDADD = -ltinyxml2
# don't follow the full GNU-standard
# we need automake 1.5
AUTOMAKE_OPTIONS = foreign 1.5
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment