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