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