| 1 | # PLEASE adhere to the alphabetical ordering in this Makefile!
|
|---|
| 2 | # Also indentation by a single tab
|
|---|
| 3 |
|
|---|
| 4 | INCLUDES = -I$(top_srcdir)/src
|
|---|
| 5 |
|
|---|
| 6 | AM_LDFLAGS = ${CodePatterns_LIBS} -ldl
|
|---|
| 7 | AM_CPPFLAGS = ${BOOST_CPPFLAGS} ${CodePatterns_CFLAGS}
|
|---|
| 8 |
|
|---|
| 9 | LINALGSOURCE = \
|
|---|
| 10 | ../Helpers/defs.cpp \
|
|---|
| 11 | ../Helpers/helpers.cpp \
|
|---|
| 12 | BoxVector.cpp \
|
|---|
| 13 | Eigenspace.cpp \
|
|---|
| 14 | leastsquaremin.cpp \
|
|---|
| 15 | Line.cpp \
|
|---|
| 16 | LineSegment.cpp \
|
|---|
| 17 | LineSegmentSet.cpp \
|
|---|
| 18 | LinearSystemOfEquations.cpp \
|
|---|
| 19 | MatrixContent.cpp \
|
|---|
| 20 | MatrixVector_ops.cpp \
|
|---|
| 21 | Plane.cpp \
|
|---|
| 22 | RealSpaceMatrix.cpp \
|
|---|
| 23 | Space.cpp \
|
|---|
| 24 | Subspace.cpp \
|
|---|
| 25 | vector_ops.cpp \
|
|---|
| 26 | Vector.cpp \
|
|---|
| 27 | VectorContent.cpp \
|
|---|
| 28 | VectorInterface.cpp
|
|---|
| 29 |
|
|---|
| 30 | LINALGHEADER = \
|
|---|
| 31 | ../Helpers/defs.hpp \
|
|---|
| 32 | ../Helpers/helpers.hpp \
|
|---|
| 33 | BoxVector.hpp \
|
|---|
| 34 | Eigenspace.hpp \
|
|---|
| 35 | leastsquaremin.hpp \
|
|---|
| 36 | Line.hpp \
|
|---|
| 37 | LineSegment.hpp \
|
|---|
| 38 | LineSegmentSet.hpp \
|
|---|
| 39 | LinearSystemOfEquations.hpp \
|
|---|
| 40 | MatrixContent.hpp \
|
|---|
| 41 | MatrixVector_ops.hpp \
|
|---|
| 42 | RealSpaceMatrix.hpp \
|
|---|
| 43 | Plane.hpp \
|
|---|
| 44 | Space.hpp \
|
|---|
| 45 | Subspace.hpp \
|
|---|
| 46 | vector_ops.hpp \
|
|---|
| 47 | Vector.hpp \
|
|---|
| 48 | VectorContent.hpp \
|
|---|
| 49 | VectorInterface.hpp
|
|---|
| 50 |
|
|---|
| 51 |
|
|---|
| 52 | lib_LTLIBRARIES = libMolecuilderLinearAlgebra.la
|
|---|
| 53 | libMolecuilderLinearAlgebra_la_includedir = $(includedir)/MoleCuilder/LinearAlgebra/
|
|---|
| 54 | libMolecuilderLinearAlgebra_la_LIBADD = \
|
|---|
| 55 | ../Exceptions/libMolecuilderExceptions.la \
|
|---|
| 56 | ../RandomNumbers/libMolecuilderRandomNumbers.la \
|
|---|
| 57 | $(GSL_LIBS)
|
|---|
| 58 | nobase_libMolecuilderLinearAlgebra_la_include_HEADERS = ${LINALGHEADER}
|
|---|
| 59 |
|
|---|
| 60 | ## Define the source file list for the "libexample-@MOLECUILDER_API_VERSION@.la"
|
|---|
| 61 | ## target. Note that @MOLECUILDER_API_VERSION@ is not interpreted by Automake and
|
|---|
| 62 | ## will therefore be treated as if it were literally part of the target name,
|
|---|
| 63 | ## and the variable name derived from that.
|
|---|
| 64 | ## The file extension .cc is recognized by Automake, and makes it produce
|
|---|
| 65 | ## rules which invoke the C++ compiler to produce a libtool object file (.lo)
|
|---|
| 66 | ## from each source file. Note that it is not necessary to list header files
|
|---|
| 67 | ## which are already listed elsewhere in a _HEADERS variable assignment.
|
|---|
| 68 | libMolecuilderLinearAlgebra_la_SOURCES = ${LINALGSOURCE}
|
|---|
| 69 |
|
|---|
| 70 | ## Instruct libtool to include ABI version information in the generated shared
|
|---|
| 71 | ## library file (.so). The library ABI version is defined in configure.ac, so
|
|---|
| 72 | ## that all version information is kept in one place.
|
|---|
| 73 | libMolecuilderLinearAlgebra_la_LDFLAGS = -version-info $(MOLECUILDER_SO_VERSION)
|
|---|
| 74 |
|
|---|
| 75 | ## The generated configuration header is installed in its own subdirectory of
|
|---|
| 76 | ## $(libdir). The reason for this is that the configuration information put
|
|---|
| 77 | ## into this header file describes the target platform the installed library
|
|---|
| 78 | ## has been built for. Thus the file must not be installed into a location
|
|---|
| 79 | ## intended for architecture-independent files, as defined by the Filesystem
|
|---|
| 80 | ## Hierarchy Standard (FHS).
|
|---|
| 81 | ## The nodist_ prefix instructs Automake to not generate rules for including
|
|---|
| 82 | ## the listed files in the distribution on 'make dist'. Files that are listed
|
|---|
| 83 | ## in _HEADERS variables are normally included in the distribution, but the
|
|---|
| 84 | ## configuration header file is generated at configure time and should not be
|
|---|
| 85 | ## shipped with the source tarball.
|
|---|
| 86 | #libMolecuilderLinearAlgebra_libincludedir = $(libdir)/MoleCuilder/include
|
|---|
| 87 | #nodist_libMolecuilderLinearAlgebra_libinclude_HEADERS = $(top_builddir)/libmolecuilder_config.h
|
|---|
| 88 |
|
|---|
| 89 | ## Install the generated pkg-config file (.pc) into the expected location for
|
|---|
| 90 | ## architecture-dependent package configuration information. Occasionally,
|
|---|
| 91 | ## pkg-config files are also used for architecture-independent data packages,
|
|---|
| 92 | ## in which case the correct install location would be $(datadir)/pkgconfig.
|
|---|
| 93 | #pkgconfigdir = $(libdir)/pkgconfig
|
|---|
| 94 | #pkgconfig_DATA = $(top_builddir)/MoleCuilder.pc
|
|---|
| 95 |
|
|---|
| 96 | unity.cpp:
|
|---|
| 97 | echo "" > unity.cpp; \
|
|---|
| 98 | list='$(LINALGSOURCE)'; for file in $$list; do \
|
|---|
| 99 | echo "#include \"$(srcdir)/$$file\"" >> unity.cpp; \
|
|---|
| 100 | done;
|
|---|
| 101 |
|
|---|
| 102 | MOSTLYCLEANFILES = unity.cpp
|
|---|