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