Changeset 540c4ef


Ignore:
Timestamp:
Feb 15, 2017, 4:18:50 PM (9 years ago)
Author:
Frederik Heber <heber@…>
Children:
3bf29e
Parents:
2d63fb
git-author:
Frederik Heber <heber@…> (02/15/17 16:17:55)
git-committer:
Frederik Heber <heber@…> (02/15/17 16:18:50)
Message:

tempcommit: Fix into standalone package.

Files:
16 added
1 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • configure.ac

    r2d63fb r540c4ef  
    1313AC_CONFIG_AUX_DIR([build-aux])
    1414AC_CONFIG_MACRO_DIR([m4])
    15 AC_CONFIG_HEADERS([config.h])
    16 AM_INIT_AUTOMAKE([1.7 -Wall foreign subdir-objects])
     15AC_CONFIG_HEADERS([libvmg_config.h])
     16AM_INIT_AUTOMAKE([1.7 dist-bzip2 1.5 parallel-tests color-tests tar-pax subdir-objects])
    1717
    1818# We use mostly C++, but may need Fortran compiler infos for Lapack.
     
    2020
    2121# Release version switch
    22 AC_MSG_CHECKING(whether to enable release version)
    23 AC_ARG_ENABLE([release],
    24         AS_HELP_STRING([--enable-release], [Compile with release settings]),
    25         enable_release=$enableval,
    26         enable_release="no")
    27 AC_MSG_RESULT($enable_release)
    28 AS_IF([test "$enable_release" = "yes"], [
     22AC_MSG_CHECKING(whether to enable debug version)
     23AC_ARG_ENABLE([debug],
     24        AS_HELP_STRING([--enable-debug], [Compile with debug settings]),
     25        enable_debug=$enableval,
     26        enable_debug="no")
     27AC_MSG_RESULT($enable_debug)
     28AS_IF([test "$enable_debug" = "no"], [
    2929            AC_DEFINE([RELEASE], [1], [Release])
    3030            AC_DEFINE([NDEBUG], [1], [Skip asserts])
     
    183183AM_CONDITIONAL([COND_HAVE_BOOST_UNIT_TEST_LIB], [test x"$boost_cv_lib_unit_test_framework" = xyes])
    184184
    185 AC_PROG_RANLIB
    186 m4_ifdef([AM_PROG_AR], [AM_PROG_AR])
     185# use libtool
     186LT_INIT([static])
     187
     188# superceded by libtool
     189#AC_PROG_RANLIB
     190#4_ifdef([AM_PROG_AR], [AM_PROG_AR])
     191
     192# Define these substitions here to keep all version information in one place.
     193# For information on how to properly maintain the library version information,
     194# refer to the libtool manual, section "Updating library version information":
     195# http://www.gnu.org/software/libtool/manual/html_node/Updating-version-info.html
     196AC_SUBST([VMG_SO_VERSION], [1:0:0])
     197AC_SUBST([VMG_API_VERSION], [1.0.0])
    187198
    188199# Checks for libraries.
     
    239250        doc/Makefile
    240251        test/Makefile])
     252AC_CONFIG_FILES([vmg.pc:vmg.pc.in])
     253
    241254AC_OUTPUT
  • src/Makefile.am

    r2d63fb r540c4ef  
    1 if ENABLE_LIBRARY_INSTALL
    2 lib_LIBRARIES = libfcs_vmg.a
    3 else
    4 noinst_LIBRARIES = libfcs_vmg.a
    5 endif
    6 
    7 libfcs_vmg_a_SOURCES =  \
     1
     2VMGSOURCES =  \
    83        base/command_factory.cpp \
    9         base/command_factory.hpp \
    104        base/command_list.cpp \
    11         base/command_list.hpp \
    12         base/command.hpp \
    13         base/defs.hpp \
    14         base/discretization.hpp \
    155        base/factory.cpp \
    16         base/factory.hpp \
    17         base/has_tempgrids.hpp \
    186        base/helper.cpp \
    19         base/helper.hpp \
    207        base/index.cpp \
    21         base/index.hpp \
    228        base/interface.cpp \
    23         base/interface.hpp \
    24         base/math.hpp \
    259        base/matrix.cpp \
    26         base/matrix.hpp \
    2710        base/object.cpp \
    28         base/object.hpp \
    29         base/polynomial.hpp \
    3011        base/proxy.cpp \
    31         base/proxy.hpp \
    3212        base/stencil.cpp \
    33         base/stencil.hpp \
    3413        base/timer.cpp \
    35         base/timer.hpp \
    36         base/tuple.hpp \
    3714        base/vector.cpp \
    38         base/vector.hpp \
    3915        comm/comm_mpi.cpp \
    40         comm/comm_mpi.hpp \
    4116        comm/comm_serial.cpp \
    42         comm/comm_serial.hpp \
    4317        comm/comm.cpp \
    44         comm/comm.hpp \
    45         comm/domain_decomposition.hpp \
    4618        comm/domain_decomposition_mpi.cpp \
    47         comm/domain_decomposition_mpi.hpp \
    4819        comm/domain_decomposition_serial.cpp \
    49         comm/domain_decomposition_serial.hpp \
    5020        comm/mpi/datatype.cpp \
    51         comm/mpi/datatype.hpp \
    5221        comm/mpi/datatypes_global.cpp \
    53         comm/mpi/datatypes_global.hpp \
    5422        comm/mpi/datatypes_local.cpp \
    55         comm/mpi/datatypes_local.hpp \
    5623        comm/mpi/settings.cpp \
    57         comm/mpi/settings.hpp \
    5824        comm/mpi/error_handler.cpp \
    59         comm/mpi/error_handler.hpp \
    60         comm/mpi/has_request_vec.hpp \
    61         comm/mpi/key.hpp \
    6225        commands/com_check_consistency.cpp \
    6326        commands/com_check_iteration_counter.cpp \
     
    9356        commands/com_solve.cpp \
    9457        cycles/cycle.cpp \
     58        cycles/cycle_cs_dirichlet.cpp \
     59        cycles/cycle_cs_dirichlet_debug.cpp \
     60        cycles/cycle_cs_periodic.cpp \
     61        cycles/cycle_cs_periodic_debug.cpp \
     62        cycles/cycle_fas_dirichlet.cpp \
     63        cycles/cycle_fas_dirichlet_debug.cpp \
     64        cycles/cycle_fas_periodic.cpp \
     65        cycles/cycle_fas_periodic_debug.cpp \
     66        discretization/boundary_value_setter.cpp \
     67        discretization/discretization_poisson_fd.cpp \
     68        discretization/discretization_poisson_fv.cpp \
     69        grid/global_grid_partitioning.cpp \
     70        grid/grid_index_translations.cpp \
     71        grid/grid_iterator_suite.cpp \
     72        grid/grid.cpp \
     73        grid/multigrid.cpp \
     74        grid/tempgrid.cpp \
     75        level/level_operator_cs.cpp \
     76        level/level_operator_fas.cpp \
     77        smoother/gs.cpp \
     78        smoother/gsrb.cpp \
     79        smoother/gsrb_poisson_2.cpp \
     80        smoother/gsrb_poisson_4.cpp \
     81        smoother/jacobi.cpp \
     82        smoother/smoother.cpp \
     83        solver/solver_regular.cpp \
     84        solver/solver_singular.cpp \
     85        solver/solver.cpp \
     86        thirdparty/pugixml/pugixml.cpp \
     87        units/particle/bspline.cpp \
     88        units/particle/comm_mpi_particle.cpp \
     89        units/particle/interface_fcs.cpp \
     90        units/particle/interface_fcs.h \
     91        units/particle/interface_particles.cpp \
     92        units/particle/interpolation.cpp \
     93        units/particle/linked_cell_list.cpp \
     94        units/particle/particle.cpp \
     95        mg.cpp
     96
     97VMGHEADERS =  \
     98        base/command_factory.hpp \
     99        base/command_list.hpp \
     100        base/command.hpp \
     101        base/defs.hpp \
     102        base/discretization.hpp \
     103        base/factory.hpp \
     104        base/has_tempgrids.hpp \
     105        base/helper.hpp \
     106        base/index.hpp \
     107        base/interface.hpp \
     108        base/math.hpp \
     109        base/matrix.hpp \
     110        base/object.hpp \
     111        base/polynomial.hpp \
     112        base/proxy.hpp \
     113        base/stencil.hpp \
     114        base/timer.hpp \
     115        base/tuple.hpp \
     116        base/vector.hpp \
     117        comm/comm_mpi.hpp \
     118        comm/comm_serial.hpp \
     119        comm/comm.hpp \
     120        comm/domain_decomposition.hpp \
     121        comm/domain_decomposition_mpi.hpp \
     122        comm/domain_decomposition_serial.hpp \
     123        comm/mpi/datatype.hpp \
     124        comm/mpi/datatypes_global.hpp \
     125        comm/mpi/datatypes_local.hpp \
     126        comm/mpi/settings.hpp \
     127        comm/mpi/error_handler.hpp \
     128        comm/mpi/has_request_vec.hpp \
     129        comm/mpi/key.hpp \
    95130        cycles/cycle.hpp \
    96         cycles/cycle_cs_dirichlet.cpp \
    97131        cycles/cycle_cs_dirichlet.hpp \
    98         cycles/cycle_cs_dirichlet_debug.cpp \
    99132        cycles/cycle_cs_dirichlet_debug.hpp \
    100         cycles/cycle_cs_periodic.cpp \
    101133        cycles/cycle_cs_periodic.hpp \
    102         cycles/cycle_cs_periodic_debug.cpp \
    103134        cycles/cycle_cs_periodic_debug.hpp \
    104         cycles/cycle_fas_dirichlet.cpp \
    105135        cycles/cycle_fas_dirichlet.hpp \
    106         cycles/cycle_fas_dirichlet_debug.cpp \
    107136        cycles/cycle_fas_dirichlet_debug.hpp \
    108         cycles/cycle_fas_periodic.cpp \
    109137        cycles/cycle_fas_periodic.hpp \
    110         cycles/cycle_fas_periodic_debug.cpp \
    111138        cycles/cycle_fas_periodic_debug.hpp \
    112139        discretization/boundary_value.hpp \
    113         discretization/boundary_value_setter.cpp \
    114140        discretization/boundary_value_setter.hpp \
    115141        discretization/boundary_value_setter_open.hpp \
    116         discretization/discretization_poisson_fd.cpp \
    117142        discretization/discretization_poisson_fd.hpp \
    118         discretization/discretization_poisson_fv.cpp \
    119143        discretization/discretization_poisson_fv.hpp \
    120         grid/global_grid_partitioning.cpp \
    121144        grid/global_grid_partitioning.hpp \
    122145        grid/grid_double_iterator.hpp \
    123         grid/grid_index_translations.cpp \
    124146        grid/grid_index_translations.hpp \
    125147        grid/grid_iterator.hpp \
    126148        grid/grid_iterator_set.hpp \
    127         grid/grid_iterator_suite.cpp \
    128149        grid/grid_iterator_suite.hpp \
    129150        grid/grid_properties.hpp \
    130         grid/grid.cpp \
    131151        grid/grid.hpp \
    132152        grid/is_grid.hpp \
    133         grid/multigrid.cpp \
    134153        grid/multigrid.hpp \
    135         grid/tempgrid.cpp \
    136154        grid/tempgrid.hpp \
    137         level/level_operator_cs.cpp \
    138155        level/level_operator_cs.hpp \
    139         level/level_operator_fas.cpp \
    140156        level/level_operator_fas.hpp \
    141157        level/level_operator.hpp \
    142158        level/stencils.hpp \
    143         smoother/gs.cpp \
    144159        smoother/gs.hpp \
    145         smoother/gsrb.cpp \
    146160        smoother/gsrb.hpp \
    147         smoother/gsrb_poisson_2.cpp \
    148161        smoother/gsrb_poisson_2.hpp \
    149         smoother/gsrb_poisson_4.cpp \
    150162        smoother/gsrb_poisson_4.hpp \
    151         smoother/jacobi.cpp \
    152163        smoother/jacobi.hpp \
    153         smoother/smoother.cpp \
    154164        smoother/smoother.hpp \
    155165        solver/dgesv.hpp \
    156166        solver/dsysv.hpp \
    157167        solver/givens.hpp \
    158         solver/solver_regular.cpp \
    159168        solver/solver_regular.hpp \
    160         solver/solver_singular.cpp \
    161169        solver/solver_singular.hpp \
    162         solver/solver.cpp \
    163170        solver/solver.hpp \
    164171        thirdparty/pugixml/pugiconfig.hpp \
    165         thirdparty/pugixml/pugixml.cpp \
    166172        thirdparty/pugixml/pugixml.hpp \
    167         units/particle/bspline.cpp \
    168173        units/particle/bspline.hpp \
    169         units/particle/comm_mpi_particle.cpp \
    170174        units/particle/comm_mpi_particle.hpp \
    171         units/particle/interface_fcs.cpp \
    172175        units/particle/interface_fcs.h \
    173         units/particle/interface_particles.cpp \
    174176        units/particle/interface_particles.hpp \
    175         units/particle/interpolation.cpp \
    176177        units/particle/interpolation.hpp \
    177         units/particle/linked_cell_list.cpp \
    178178        units/particle/linked_cell_list.hpp \
    179         units/particle/particle.cpp \
    180179        units/particle/particle.hpp \
    181         mg.cpp \
    182180        mg.hpp
    183181
    184 libfcs_vmg_a_CPPFLAGS = $(BOOST_CPPFLAGS) $(VTK_CXXFLAGS)
    185 
    186 pkgconfigdir = $(libdir)/pkg-config
    187 pkgconfig_DATA = $(top_builddir)/VMG.pc
    188 
     182lib_LTLIBRARIES = libvmg.la
     183
     184libvmg_la_includedir = $(includedir)/vmg/
     185libvmg_la_CPPFLAGS = $(BOOST_CPPFLAGS) $(VTK_CXXFLAGS)
     186libvmg_la_LDFLAGS = \
     187        $(AM_LDFLAGS)
     188libvmg_la_LIBADD =
     189
     190nobase_libvmg_la_include_HEADERS = ${VMGHEADERS}
     191
     192## Define the source file list for the "libexample-@MOLECUILDER_API_VERSION@.la"
     193## target.  Note that @MOLECUILDER_API_VERSION@ is not interpreted by Automake and
     194## will therefore be treated as if it were literally part of the target name,
     195## and the variable name derived from that.
     196## The file extension .cc is recognized by Automake, and makes it produce
     197## rules which invoke the C++ compiler to produce a libtool object file (.lo)
     198## from each source file.  Note that it is not necessary to list header files
     199## which are already listed elsewhere in a _HEADERS variable assignment.
     200libvmg_la_SOURCES = ${VMGSOURCES}
     201
     202## Instruct libtool to include ABI version information in the generated shared
     203## library file (.so).  The library ABI version is defined in configure.ac, so
     204## that all version information is kept in one place.
     205libvmg_la_LDFLAGS += -version-info $(VMG_SO_VERSION)
     206
     207## The generated configuration header is installed in its own subdirectory of
     208## $(libdir).  The reason for this is that the configuration information put
     209## into this header file describes the target platform the installed library
     210## has been built for.  Thus the file must not be installed into a location
     211## intended for architecture-independent files, as defined by the Filesystem
     212## Hierarchy Standard (FHS).
     213## The nodist_ prefix instructs Automake to not generate rules for including
     214## the listed files in the distribution on 'make dist'.  Files that are listed
     215## in _HEADERS variables are normally included in the distribution, but the
     216## configuration header file is generated at configure time and should not be
     217## shipped with the source tarball.
     218libvmg_la_libincludedir = $(libdir)/vmg/include
     219nodist_libvmg_la_libinclude_HEADERS = $(top_builddir)/libvmg_config.h
     220
     221## Install the generated pkg-config file (.pc) into the expected location for
     222## architecture-dependent package configuration information.  Occasionally,
     223## pkg-config files are also used for architecture-independent data packages,
     224## in which case the correct install location would be $(datadir)/pkgconfig.
     225pkgconfigdir = $(libdir)/pkgconfig
     226pkgconfig_DATA = $(top_builddir)/vmg.pc
Note: See TracChangeset for help on using the changeset viewer.