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