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