# PLEASE adhere to the alphabetical ordering in this Makefile! # Also indentation by a single tab INCLUDES = -I$(top_srcdir)/src AM_LDFLAGS = $(CPPUNIT_LIBS) -ldl # Position-Independent Code necessary for shared library AM_CXXFLAGS = $(CPPUNIT_CFLAGS) AM_CPPFLAGS = ${BOOST_CPPFLAGS} LINALGSOURCE = \ ${HELPERSOURCE} \ BoxVector.cpp \ Eigenspace.cpp \ leastsquaremin.cpp \ Line.cpp \ LineSegment.cpp \ LineSegmentSet.cpp \ linearsystemofequations.cpp \ MatrixContent.cpp \ MatrixVector_ops.cpp \ Plane.cpp \ RealSpaceMatrix.cpp \ Space.cpp \ Subspace.cpp \ vector_ops.cpp \ Vector.cpp \ VectorContent.cpp \ VectorInterface.cpp LINALGHEADER = \ BoxVector.hpp \ Eigenspace.hpp \ leastsquaremin.hpp \ Line.hpp \ LineSegment.hpp \ LineSegmentSet.hpp \ linearsystemofequations.hpp \ MatrixContent.hpp \ MatrixVector_ops.hpp \ RealSpaceMatrix.hpp \ Plane.hpp \ Space.hpp \ Subspace.hpp \ vector_ops.hpp \ Vector.hpp \ VectorContent.hpp \ VectorInterface.hpp lib_LTLIBRARIES = libMolecuilderLinearAlgebra-@MOLECUILDER_API_VERSION@.la libMolecuilderLinearAlgebra_includedir = $(includedir)/molecuilder-$(MOLECUILDER_API_VERSION)/Actions/ libMolecuilderLinearAlgebra_libs = ../Exceptions/libMolecuilderExceptions-@MOLECUILDER_API_VERSION@.la $(GSL_LIBS) nobase_libMolecuilderLinearAlgebra_include_HEADERS = ${LINALGHEADER} ## Define the source file list for the "libexample-@MOLECUILDER_API_VERSION@.la" ## target. Note that @MOLECUILDER_API_VERSION@ is not interpreted by Automake and ## will therefore be treated as if it were literally part of the target name, ## and the variable name derived from that. ## The file extension .cc is recognized by Automake, and makes it produce ## rules which invoke the C++ compiler to produce a libtool object file (.lo) ## from each source file. Note that it is not necessary to list header files ## which are already listed elsewhere in a _HEADERS variable assignment. libMolecuilderLinearAlgebra_@MOLECUILDER_API_VERSION@_la_SOURCES = ${LINALGSOURCE} ## Instruct libtool to include ABI version information in the generated shared ## library file (.so). The library ABI version is defined in configure.ac, so ## that all version information is kept in one place. libMolecuilderLinearAlgebra_@MOLECUILDER_API_VERSION@_la_LDFLAGS = -version-info $(MOLECUILDER_SO_VERSION) ## The generated configuration header is installed in its own subdirectory of ## $(libdir). The reason for this is that the configuration information put ## into this header file describes the target platform the installed library ## has been built for. Thus the file must not be installed into a location ## intended for architecture-independent files, as defined by the Filesystem ## Hierarchy Standard (FHS). ## The nodist_ prefix instructs Automake to not generate rules for including ## the listed files in the distribution on 'make dist'. Files that are listed ## in _HEADERS variables are normally included in the distribution, but the ## configuration header file is generated at configure time and should not be ## shipped with the source tarball. libMolecuilderLinearAlgebra_libincludedir = $(libdir)/molecuilder-$(MOLECUILDER_API_VERSION)/include nodist_libMolecuilderLinearAlgebra_libinclude_HEADERS = $(top_builddir)/libmolecuilder_config.h ## Install the generated pkg-config file (.pc) into the expected location for ## architecture-dependent package configuration information. Occasionally, ## pkg-config files are also used for architecture-independent data packages, ## in which case the correct install location would be $(datadir)/pkgconfig. pkgconfigdir = $(libdir)/pkgconfig pkgconfig_DATA = $(top_builddir)/molecuilder-$(MOLECUILDER_API_VERSION).pc unity.cpp: echo "" > unity.cpp; \ list='$(LINALGSOURCE)'; for file in $$list; do \ echo "#include \"$(srcdir)/$$file\"" >> unity.cpp; \ done; MOSTLYCLEANFILES = unity.cpp