1 | # PLEASE adhere to the alphabetical ordering in this Makefile!
|
---|
2 | # Also indentation by a single tab
|
---|
3 |
|
---|
4 | POTENTIALSSOURCE = \
|
---|
5 | Potentials/CompoundPotential.cpp \
|
---|
6 | Potentials/ParticleTypeCheckers.cpp \
|
---|
7 | Potentials/PotentialFactory.cpp \
|
---|
8 | Potentials/PotentialRegistry.cpp \
|
---|
9 | Potentials/SerializablePotential.cpp \
|
---|
10 | Potentials/Specifics/ManyBodyPotential_Tersoff.cpp \
|
---|
11 | Potentials/Specifics/PairPotential_Angle.cpp \
|
---|
12 | Potentials/Specifics/PairPotential_Harmonic.cpp \
|
---|
13 | Potentials/Specifics/PairPotential_Morse.cpp \
|
---|
14 | Potentials/Specifics/PotentialTypes.cpp \
|
---|
15 | Potentials/Specifics/SaturationPotential.cpp
|
---|
16 |
|
---|
17 | POTENTIALSHEADER = \
|
---|
18 | Potentials/CompoundPotential.hpp \
|
---|
19 | Potentials/EmpiricalPotential.hpp \
|
---|
20 | Potentials/Exceptions.hpp \
|
---|
21 | Potentials/helpers.hpp \
|
---|
22 | Potentials/ParticleTypeCheckers.hpp \
|
---|
23 | Potentials/PotentialFactory.hpp \
|
---|
24 | Potentials/PotentialRegistry.hpp \
|
---|
25 | Potentials/SerializablePotential.hpp \
|
---|
26 | Potentials/Specifics/PotentialTypes.hpp \
|
---|
27 | Potentials/Specifics/PotentialTypes.def \
|
---|
28 | Potentials/Specifics/PotentialTypes.undef
|
---|
29 |
|
---|
30 | # add here headers for real potentials (i.e. the PotentialFactory should instantiate)
|
---|
31 | SPECIFICPOTENTIALSHEADER = \
|
---|
32 | Potentials/Specifics/ManyBodyPotential_Tersoff.hpp \
|
---|
33 | Potentials/Specifics/PairPotential_Angle.hpp \
|
---|
34 | Potentials/Specifics/PairPotential_Harmonic.hpp \
|
---|
35 | Potentials/Specifics/PairPotential_Morse.hpp \
|
---|
36 | Potentials/Specifics/SaturationPotential.hpp
|
---|
37 |
|
---|
38 | BUILT_SOURCES += AllPotentialHeaders.hpp
|
---|
39 |
|
---|
40 | noinst_LTLIBRARIES += libMolecuilderPotentials.la
|
---|
41 | libMolecuilderPotentials_la_includedir = $(includedir)/MoleCuilder/
|
---|
42 |
|
---|
43 | nobase_libMolecuilderPotentials_la_include_HEADERS = ${POTENTIALSHEADER} ${SPECIFICPOTENTIALSHEADER}
|
---|
44 | nodist_libMolecuilderPotentials_la_include_HEADERS = AllPotentialHeaders.hpp
|
---|
45 |
|
---|
46 | ## Define the source file list for the "libexample-@MOLECUILDER_API_VERSION@.la"
|
---|
47 | ## target. Note that @MOLECUILDER_API_VERSION@ is not interpreted by Automake and
|
---|
48 | ## will therefore be treated as if it were literally part of the target name,
|
---|
49 | ## and the variable name derived from that.
|
---|
50 | ## The file extension .cc is recognized by Automake, and makes it produce
|
---|
51 | ## rules which invoke the C++ compiler to produce a libtool object file (.lo)
|
---|
52 | ## from each source file. Note that it is not necessary to list header files
|
---|
53 | ## which are already listed elsewhere in a _HEADERS variable assignment.
|
---|
54 | libMolecuilderPotentials_la_SOURCES = ${POTENTIALSSOURCE}
|
---|
55 |
|
---|
56 | ## Instruct libtool to include ABI version information in the generated shared
|
---|
57 | ## library file (.so). The library ABI version is defined in configure.ac, so
|
---|
58 | ## that all version information is kept in one place.
|
---|
59 | #libMolecuilderPotentials_la_LDFLAGS = -version-info $(MOLECUILDER_SO_VERSION)
|
---|
60 |
|
---|
61 | ## The generated configuration header is installed in its own subdirectory of
|
---|
62 | ## $(libdir). The reason for this is that the configuration information put
|
---|
63 | ## into this header file describes the target platform the installed library
|
---|
64 | ## has been built for. Thus the file must not be installed into a location
|
---|
65 | ## intended for architecture-independent files, as defined by the Filesystem
|
---|
66 | ## Hierarchy Standard (FHS).
|
---|
67 | ## The nodist_ prefix instructs Automake to not generate rules for including
|
---|
68 | ## the listed files in the distribution on 'make dist'. Files that are listed
|
---|
69 | ## in _HEADERS variables are normally included in the distribution, but the
|
---|
70 | ## configuration header file is generated at configure time and should not be
|
---|
71 | ## shipped with the source tarball.
|
---|
72 | #libMolecuilderPotentials_libincludedir = $(libdir)/MoleCuilder/include
|
---|
73 | #nodist_libMolecuilderPotentials_libinclude_HEADERS = $(top_builddir)/libmolecuilder_config.h
|
---|
74 |
|
---|
75 | ## Install the generated pkg-config file (.pc) into the expected location for
|
---|
76 | ## architecture-dependent package configuration information. Occasionally,
|
---|
77 | ## pkg-config files are also used for architecture-independent data packages,
|
---|
78 | ## in which case the correct install location would be $(datadir)/pkgconfig.
|
---|
79 | #pkgconfigdir = $(libdir)/pkgconfig
|
---|
80 | #pkgconfig_DATA = $(top_builddir)/MoleCuilder.pc
|
---|
81 |
|
---|
82 | AllPotentialHeaders.hpp: $(SPECIFICPOTENTIALSHEADER)
|
---|
83 | echo "#ifndef ALLPOTENTIALHEADERS_HPP_" >$@; \
|
---|
84 | echo "#define ALLPOTENTIALHEADERS_HPP_" >>$@; \
|
---|
85 | for file in $(SPECIFICPOTENTIALSHEADER); do \
|
---|
86 | echo "#include \"$$file\"" >>$@; \
|
---|
87 | done; \
|
---|
88 | echo "#endif /* ALLPOTENTIALHEADERS_HPP_ */" >>$@;
|
---|
89 |
|
---|
90 | MOSTLYCLEANFILES += \
|
---|
91 | AllPotentialHeaders.hpp
|
---|
92 |
|
---|