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 | $(GSL_LIBS)
|
---|
57 | nobase_libMolecuilderLinearAlgebra_la_include_HEADERS = ${LINALGHEADER}
|
---|
58 |
|
---|
59 | ## Define the source file list for the "libexample-@MOLECUILDER_API_VERSION@.la"
|
---|
60 | ## target. Note that @MOLECUILDER_API_VERSION@ is not interpreted by Automake and
|
---|
61 | ## will therefore be treated as if it were literally part of the target name,
|
---|
62 | ## and the variable name derived from that.
|
---|
63 | ## The file extension .cc is recognized by Automake, and makes it produce
|
---|
64 | ## rules which invoke the C++ compiler to produce a libtool object file (.lo)
|
---|
65 | ## from each source file. Note that it is not necessary to list header files
|
---|
66 | ## which are already listed elsewhere in a _HEADERS variable assignment.
|
---|
67 | libMolecuilderLinearAlgebra_la_SOURCES = ${LINALGSOURCE}
|
---|
68 |
|
---|
69 | ## Instruct libtool to include ABI version information in the generated shared
|
---|
70 | ## library file (.so). The library ABI version is defined in configure.ac, so
|
---|
71 | ## that all version information is kept in one place.
|
---|
72 | libMolecuilderLinearAlgebra_la_LDFLAGS = -version-info $(MOLECUILDER_SO_VERSION)
|
---|
73 |
|
---|
74 | ## The generated configuration header is installed in its own subdirectory of
|
---|
75 | ## $(libdir). The reason for this is that the configuration information put
|
---|
76 | ## into this header file describes the target platform the installed library
|
---|
77 | ## has been built for. Thus the file must not be installed into a location
|
---|
78 | ## intended for architecture-independent files, as defined by the Filesystem
|
---|
79 | ## Hierarchy Standard (FHS).
|
---|
80 | ## The nodist_ prefix instructs Automake to not generate rules for including
|
---|
81 | ## the listed files in the distribution on 'make dist'. Files that are listed
|
---|
82 | ## in _HEADERS variables are normally included in the distribution, but the
|
---|
83 | ## configuration header file is generated at configure time and should not be
|
---|
84 | ## shipped with the source tarball.
|
---|
85 | #libMolecuilderLinearAlgebra_libincludedir = $(libdir)/MoleCuilder/include
|
---|
86 | #nodist_libMolecuilderLinearAlgebra_libinclude_HEADERS = $(top_builddir)/libmolecuilder_config.h
|
---|
87 |
|
---|
88 | ## Install the generated pkg-config file (.pc) into the expected location for
|
---|
89 | ## architecture-dependent package configuration information. Occasionally,
|
---|
90 | ## pkg-config files are also used for architecture-independent data packages,
|
---|
91 | ## in which case the correct install location would be $(datadir)/pkgconfig.
|
---|
92 | #pkgconfigdir = $(libdir)/pkgconfig
|
---|
93 | #pkgconfig_DATA = $(top_builddir)/MoleCuilder.pc
|
---|
94 |
|
---|
95 | unity.cpp:
|
---|
96 | echo "" > unity.cpp; \
|
---|
97 | list='$(LINALGSOURCE)'; for file in $$list; do \
|
---|
98 | echo "#include \"$(srcdir)/$$file\"" >> unity.cpp; \
|
---|
99 | done;
|
---|
100 |
|
---|
101 | MOSTLYCLEANFILES = unity.cpp
|
---|