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