[861874] | 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 | AM_CXXFLAGS = $(CPPUNIT_CFLAGS)
|
---|
[d5240d] | 8 | AM_CPPFLAGS = ${BOOST_CPPFLAGS}
|
---|
[861874] | 9 |
|
---|
| 10 | PARSERSOURCE = \
|
---|
| 11 | ChangeTracker.cpp \
|
---|
| 12 | FormatParser.cpp \
|
---|
| 13 | FormatParserStorage.cpp \
|
---|
| 14 | MpqcParser.cpp \
|
---|
| 15 | PcpParser.cpp \
|
---|
[4fbca9c] | 16 | PdbAtomInfoContainer.cpp \
|
---|
[3ae731] | 17 | PdbParser.cpp \
|
---|
[861874] | 18 | TremoloParser.cpp \
|
---|
| 19 | XyzParser.cpp
|
---|
| 20 |
|
---|
| 21 | PARSERHEADER = \
|
---|
| 22 | ChangeTracker.hpp \
|
---|
| 23 | FormatParser.hpp \
|
---|
| 24 | FormatParserStorage.hpp \
|
---|
| 25 | MpqcParser.hpp \
|
---|
| 26 | PcpParser.hpp \
|
---|
[4fbca9c] | 27 | PdbAtomInfoContainer.hpp \
|
---|
| 28 | PdbKey.hpp \
|
---|
[3ae731] | 29 | PdbParser.hpp \
|
---|
[861874] | 30 | TremoloParser.hpp \
|
---|
| 31 | XyzParser.hpp
|
---|
| 32 |
|
---|
| 33 |
|
---|
| 34 | lib_LTLIBRARIES = libMolecuilderParser-@MOLECUILDER_API_VERSION@.la
|
---|
| 35 | libMolecuilderParser_includedir = $(includedir)/molecuilder-$(MOLECUILDER_API_VERSION)/Actions/
|
---|
| 36 | nobase_libMolecuilderParser_include_HEADERS = ${PARSERHEADER}
|
---|
| 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 | libMolecuilderParser_@MOLECUILDER_API_VERSION@_la_SOURCES = ${PARSERSOURCE}
|
---|
| 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 | libMolecuilderParser_@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 | libMolecuilderParser_libincludedir = $(libdir)/molecuilder-$(MOLECUILDER_API_VERSION)/include
|
---|
| 65 | nodist_libMolecuilderParser_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='$(PARSERSOURCE)'; for file in $$list; do \
|
---|
| 77 | echo "#include \"$(srcdir)/$$file\"" >> unity.cpp; \
|
---|
| 78 | done;
|
---|
| 79 |
|
---|
| 80 | MOSTLYCLEANFILES = unity.cpp
|
---|