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