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