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