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