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