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