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