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