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