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