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