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