[57f243] | 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 |
|
---|
[e5bf2b] | 6 | AM_LDFLAGS = ${CodePatterns_LIBS} -ldl
|
---|
| 7 | AM_CPPFLAGS = ${BOOST_CPPFLAGS} ${CodePatterns_CFLAGS}
|
---|
[57f243] | 8 |
|
---|
| 9 | LINALGSOURCE = \
|
---|
[a0064e] | 10 | ../Helpers/defs.cpp \
|
---|
| 11 | ../Helpers/helpers.cpp \
|
---|
[e3e6e2] | 12 | BoxVector.cpp \
|
---|
[9c5296] | 13 | Eigenspace.cpp \
|
---|
[13d150] | 14 | leastsquaremin.cpp \
|
---|
[57f243] | 15 | Line.cpp \
|
---|
[6c438f] | 16 | LineSegment.cpp \
|
---|
| 17 | LineSegmentSet.cpp \
|
---|
[78b593] | 18 | LinearSystemOfEquations.cpp \
|
---|
[3bc926] | 19 | MatrixContent.cpp \
|
---|
[3da2fb] | 20 | MatrixVector_ops.cpp \
|
---|
[57f243] | 21 | Plane.cpp \
|
---|
[cca9ef] | 22 | RealSpaceMatrix.cpp \
|
---|
[57f243] | 23 | Space.cpp \
|
---|
[9c5296] | 24 | Subspace.cpp \
|
---|
[8f4df1] | 25 | vector_ops.cpp \
|
---|
| 26 | Vector.cpp \
|
---|
[bbf1bd] | 27 | VectorContent.cpp \
|
---|
[8f4df1] | 28 | VectorInterface.cpp
|
---|
[57f243] | 29 |
|
---|
| 30 | LINALGHEADER = \
|
---|
[a0064e] | 31 | ../Helpers/defs.hpp \
|
---|
| 32 | ../Helpers/helpers.hpp \
|
---|
[e3e6e2] | 33 | BoxVector.hpp \
|
---|
[9c5296] | 34 | Eigenspace.hpp \
|
---|
[13d150] | 35 | leastsquaremin.hpp \
|
---|
[57f243] | 36 | Line.hpp \
|
---|
[6c438f] | 37 | LineSegment.hpp \
|
---|
| 38 | LineSegmentSet.hpp \
|
---|
[78b593] | 39 | LinearSystemOfEquations.hpp \
|
---|
[3bc926] | 40 | MatrixContent.hpp \
|
---|
[3da2fb] | 41 | MatrixVector_ops.hpp \
|
---|
[cca9ef] | 42 | RealSpaceMatrix.hpp \
|
---|
[57f243] | 43 | Plane.hpp \
|
---|
| 44 | Space.hpp \
|
---|
[9c5296] | 45 | Subspace.hpp \
|
---|
[8f4df1] | 46 | vector_ops.hpp \
|
---|
| 47 | Vector.hpp \
|
---|
[3bc926] | 48 | VectorContent.hpp \
|
---|
[8f4df1] | 49 | VectorInterface.hpp
|
---|
[57f243] | 50 |
|
---|
| 51 |
|
---|
[acbe1b] | 52 | lib_LTLIBRARIES = libMolecuilderLinearAlgebra.la
|
---|
[e5bf2b] | 53 | libMolecuilderLinearAlgebra_la_includedir = $(includedir)/MoleCuilder/LinearAlgebra/
|
---|
| 54 | libMolecuilderLinearAlgebra_la_LIBADD = \
|
---|
| 55 | ../Exceptions/libMolecuilderExceptions.la \
|
---|
[1ee3b8d] | 56 | ../RandomNumbers/libMolecuilderRandomNumbers.la \
|
---|
[e5bf2b] | 57 | $(GSL_LIBS)
|
---|
| 58 | nobase_libMolecuilderLinearAlgebra_la_include_HEADERS = ${LINALGHEADER}
|
---|
[57f243] | 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.
|
---|
[acbe1b] | 68 | libMolecuilderLinearAlgebra_la_SOURCES = ${LINALGSOURCE}
|
---|
[57f243] | 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.
|
---|
[acbe1b] | 73 | libMolecuilderLinearAlgebra_la_LDFLAGS = -version-info $(MOLECUILDER_SO_VERSION)
|
---|
[57f243] | 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.
|
---|
[acbe1b] | 86 | #libMolecuilderLinearAlgebra_libincludedir = $(libdir)/MoleCuilder/include
|
---|
| 87 | #nodist_libMolecuilderLinearAlgebra_libinclude_HEADERS = $(top_builddir)/libmolecuilder_config.h
|
---|
[57f243] | 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.
|
---|
[acbe1b] | 93 | #pkgconfigdir = $(libdir)/pkgconfig
|
---|
| 94 | #pkgconfig_DATA = $(top_builddir)/MoleCuilder.pc
|
---|
[57f243] | 95 |
|
---|
[d223d5] | 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
|
---|