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/InternalCoordinates/CoordinatorFactory.cpp \
|
---|
7 | Potentials/InternalCoordinates/FourBody_ImproperAngle.cpp \
|
---|
8 | Potentials/InternalCoordinates/FourBody_TorsionAngle.cpp \
|
---|
9 | Potentials/InternalCoordinates/OneBody_Constant.cpp \
|
---|
10 | Potentials/InternalCoordinates/ThreeBody_Angle.cpp \
|
---|
11 | Potentials/InternalCoordinates/TwoBody_Length.cpp \
|
---|
12 | Potentials/PartialNucleiChargeFitter.cpp \
|
---|
13 | Potentials/ParticleTypeCheckers.cpp \
|
---|
14 | Potentials/Particles/Particle.cpp \
|
---|
15 | Potentials/Particles/ParticleFactory.cpp \
|
---|
16 | Potentials/Particles/ParticleRegistry.cpp \
|
---|
17 | Potentials/Particles/StreamFactory_Particle.cpp \
|
---|
18 | Potentials/PotentialFactory.cpp \
|
---|
19 | Potentials/PotentialRegistry.cpp \
|
---|
20 | Potentials/RegistrySerializer_Particle.cpp \
|
---|
21 | Potentials/SerializablePotential.cpp \
|
---|
22 | Potentials/Specifics/ConstantPotential.cpp \
|
---|
23 | Potentials/Specifics/FourBodyPotential_Improper.cpp \
|
---|
24 | Potentials/Specifics/FourBodyPotential_Torsion.cpp \
|
---|
25 | Potentials/Specifics/ManyBodyPotential_Tersoff.cpp \
|
---|
26 | Potentials/Specifics/PairPotential_Harmonic.cpp \
|
---|
27 | Potentials/Specifics/PairPotential_LennardJones.cpp \
|
---|
28 | Potentials/Specifics/PairPotential_Morse.cpp \
|
---|
29 | Potentials/Specifics/PotentialTypes.cpp \
|
---|
30 | Potentials/Specifics/ThreeBodyPotential_Angle.cpp \
|
---|
31 | Potentials/StreamFactory_EmpiricalPotential.cpp \
|
---|
32 | Potentials/TremoloPotentialFileParser.cpp \
|
---|
33 | Potentials/TremoloPotentialTypes.cpp
|
---|
34 |
|
---|
35 | POTENTIALSHEADER = \
|
---|
36 | Potentials/CompoundPotential.hpp \
|
---|
37 | Potentials/EmpiricalPotential.hpp \
|
---|
38 | Potentials/Exceptions.hpp \
|
---|
39 | Potentials/helpers.hpp \
|
---|
40 | Potentials/InternalCoordinates/Coordinator.hpp \
|
---|
41 | Potentials/InternalCoordinates/CoordinatorFactory.hpp \
|
---|
42 | Potentials/InternalCoordinates/FourBody_ImproperAngle.hpp \
|
---|
43 | Potentials/InternalCoordinates/FourBody_TorsionAngle.hpp \
|
---|
44 | Potentials/InternalCoordinates/OneBody_Constant.hpp \
|
---|
45 | Potentials/InternalCoordinates/ThreeBody_Angle.hpp \
|
---|
46 | Potentials/InternalCoordinates/TwoBody_Length.hpp \
|
---|
47 | Potentials/PartialNucleiChargeFitter.hpp \
|
---|
48 | Potentials/ParticleTypeCheckers.hpp \
|
---|
49 | Potentials/Particles/Particle.hpp \
|
---|
50 | Potentials/Particles/ParticleFactory.hpp \
|
---|
51 | Potentials/Particles/ParticleRegistry.hpp \
|
---|
52 | Potentials/Particles/StreamFactory_Particle.hpp \
|
---|
53 | Potentials/RegistryDeserializer_impl.hpp \
|
---|
54 | Potentials/RegistryDeserializer.hpp \
|
---|
55 | Potentials/PotentialFactory.hpp \
|
---|
56 | Potentials/PotentialRegistry.hpp \
|
---|
57 | Potentials/RegistrySerializer_impl.hpp \
|
---|
58 | Potentials/RegistrySerializer.hpp \
|
---|
59 | Potentials/SerializablePotential.hpp \
|
---|
60 | Potentials/Specifics/PotentialTypes.hpp \
|
---|
61 | Potentials/Specifics/PotentialTypes.def \
|
---|
62 | Potentials/Specifics/PotentialTypes.undef \
|
---|
63 | Potentials/StreamFactory.hpp \
|
---|
64 | Potentials/StreamFactory_EmpiricalPotential.hpp \
|
---|
65 | Potentials/TremoloPotentialFileParser.hpp \
|
---|
66 | Potentials/TremoloPotentialTypes.hpp
|
---|
67 |
|
---|
68 | if CONDLEVMAR
|
---|
69 | POTENTIALSHEADER += \
|
---|
70 | Potentials/PotentialTrainer.hpp
|
---|
71 | POTENTIALSSOURCE += \
|
---|
72 | Potentials/PotentialTrainer.cpp
|
---|
73 | endif
|
---|
74 |
|
---|
75 | # add here headers for real potentials (i.e. the PotentialFactory should instantiate)
|
---|
76 | SPECIFICPOTENTIALSHEADER = \
|
---|
77 | Potentials/Specifics/ConstantPotential.hpp \
|
---|
78 | Potentials/Specifics/FourBodyPotential_Improper.hpp \
|
---|
79 | Potentials/Specifics/FourBodyPotential_Torsion.hpp \
|
---|
80 | Potentials/Specifics/ManyBodyPotential_Tersoff.hpp \
|
---|
81 | Potentials/Specifics/PairPotential_Harmonic.hpp \
|
---|
82 | Potentials/Specifics/PairPotential_LennardJones.hpp \
|
---|
83 | Potentials/Specifics/PairPotential_Morse.hpp \
|
---|
84 | Potentials/Specifics/ThreeBodyPotential_Angle.hpp
|
---|
85 |
|
---|
86 | BUILT_SOURCES += AllPotentialHeaders.hpp
|
---|
87 |
|
---|
88 | noinst_LTLIBRARIES += libMolecuilderPotentials.la
|
---|
89 | libMolecuilderPotentials_la_includedir = $(includedir)/MoleCuilder/
|
---|
90 |
|
---|
91 | nobase_libMolecuilderPotentials_la_include_HEADERS = ${POTENTIALSHEADER} ${SPECIFICPOTENTIALSHEADER}
|
---|
92 | nodist_libMolecuilderPotentials_la_include_HEADERS = AllPotentialHeaders.hpp
|
---|
93 |
|
---|
94 | ## Define the source file list for the "libexample-@MOLECUILDER_API_VERSION@.la"
|
---|
95 | ## target. Note that @MOLECUILDER_API_VERSION@ is not interpreted by Automake and
|
---|
96 | ## will therefore be treated as if it were literally part of the target name,
|
---|
97 | ## and the variable name derived from that.
|
---|
98 | ## The file extension .cc is recognized by Automake, and makes it produce
|
---|
99 | ## rules which invoke the C++ compiler to produce a libtool object file (.lo)
|
---|
100 | ## from each source file. Note that it is not necessary to list header files
|
---|
101 | ## which are already listed elsewhere in a _HEADERS variable assignment.
|
---|
102 | libMolecuilderPotentials_la_SOURCES = ${POTENTIALSSOURCE}
|
---|
103 |
|
---|
104 | ## Instruct libtool to include ABI version information in the generated shared
|
---|
105 | ## library file (.so). The library ABI version is defined in configure.ac, so
|
---|
106 | ## that all version information is kept in one place.
|
---|
107 | #libMolecuilderPotentials_la_LDFLAGS = -version-info $(MOLECUILDER_SO_VERSION)
|
---|
108 |
|
---|
109 | ## The generated configuration header is installed in its own subdirectory of
|
---|
110 | ## $(libdir). The reason for this is that the configuration information put
|
---|
111 | ## into this header file describes the target platform the installed library
|
---|
112 | ## has been built for. Thus the file must not be installed into a location
|
---|
113 | ## intended for architecture-independent files, as defined by the Filesystem
|
---|
114 | ## Hierarchy Standard (FHS).
|
---|
115 | ## The nodist_ prefix instructs Automake to not generate rules for including
|
---|
116 | ## the listed files in the distribution on 'make dist'. Files that are listed
|
---|
117 | ## in _HEADERS variables are normally included in the distribution, but the
|
---|
118 | ## configuration header file is generated at configure time and should not be
|
---|
119 | ## shipped with the source tarball.
|
---|
120 | #libMolecuilderPotentials_libincludedir = $(libdir)/MoleCuilder/include
|
---|
121 | #nodist_libMolecuilderPotentials_libinclude_HEADERS = $(top_builddir)/libmolecuilder_config.h
|
---|
122 |
|
---|
123 | ## Install the generated pkg-config file (.pc) into the expected location for
|
---|
124 | ## architecture-dependent package configuration information. Occasionally,
|
---|
125 | ## pkg-config files are also used for architecture-independent data packages,
|
---|
126 | ## in which case the correct install location would be $(datadir)/pkgconfig.
|
---|
127 | #pkgconfigdir = $(libdir)/pkgconfig
|
---|
128 | #pkgconfig_DATA = $(top_builddir)/MoleCuilder.pc
|
---|
129 |
|
---|
130 | AllPotentialHeaders.hpp: $(SPECIFICPOTENTIALSHEADER)
|
---|
131 | echo "#ifndef ALLPOTENTIALHEADERS_HPP_" >$@; \
|
---|
132 | echo "#define ALLPOTENTIALHEADERS_HPP_" >>$@; \
|
---|
133 | for file in $(SPECIFICPOTENTIALSHEADER); do \
|
---|
134 | echo "#include \"$$file\"" >>$@; \
|
---|
135 | done; \
|
---|
136 | echo "#endif /* ALLPOTENTIALHEADERS_HPP_ */" >>$@;
|
---|
137 |
|
---|
138 | MOSTLYCLEANFILES += \
|
---|
139 | AllPotentialHeaders.hpp
|
---|
140 |
|
---|