| 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/PartialNucleiChargeFitter.cpp \
|
|---|
| 7 | Potentials/ParticleTypeCheckers.cpp \
|
|---|
| 8 | Potentials/Particles/Particle.cpp \
|
|---|
| 9 | Potentials/Particles/ParticleRegistry.cpp \
|
|---|
| 10 | Potentials/PotentialDeserializer.cpp \
|
|---|
| 11 | Potentials/PotentialFactory.cpp \
|
|---|
| 12 | Potentials/PotentialRegistry.cpp \
|
|---|
| 13 | Potentials/PotentialSerializer.cpp \
|
|---|
| 14 | Potentials/SerializablePotential.cpp \
|
|---|
| 15 | Potentials/Specifics/ConstantPotential.cpp \
|
|---|
| 16 | Potentials/Specifics/FourBodyPotential_Improper.cpp \
|
|---|
| 17 | Potentials/Specifics/FourBodyPotential_Torsion.cpp \
|
|---|
| 18 | Potentials/Specifics/ManyBodyPotential_Tersoff.cpp \
|
|---|
| 19 | Potentials/Specifics/PairPotential_Harmonic.cpp \
|
|---|
| 20 | Potentials/Specifics/PairPotential_LennardJones.cpp \
|
|---|
| 21 | Potentials/Specifics/PairPotential_Morse.cpp \
|
|---|
| 22 | Potentials/Specifics/PotentialTypes.cpp \
|
|---|
| 23 | Potentials/Specifics/ThreeBodyPotential_Angle.cpp
|
|---|
| 24 |
|
|---|
| 25 | POTENTIALSHEADER = \
|
|---|
| 26 | Potentials/CompoundPotential.hpp \
|
|---|
| 27 | Potentials/EmpiricalPotential.hpp \
|
|---|
| 28 | Potentials/Exceptions.hpp \
|
|---|
| 29 | Potentials/helpers.hpp \
|
|---|
| 30 | Potentials/PartialNucleiChargeFitter.hpp \
|
|---|
| 31 | Potentials/ParticleTypeCheckers.hpp \
|
|---|
| 32 | Potentials/Particles/Particle.hpp \
|
|---|
| 33 | Potentials/Particles/ParticleRegistry.hpp \
|
|---|
| 34 | Potentials/PotentialDeserializer.hpp \
|
|---|
| 35 | Potentials/PotentialFactory.hpp \
|
|---|
| 36 | Potentials/PotentialRegistry.hpp \
|
|---|
| 37 | Potentials/PotentialSerializer.hpp \
|
|---|
| 38 | Potentials/SerializablePotential.hpp \
|
|---|
| 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 = \
|
|---|
| 45 | Potentials/Specifics/ConstantPotential.hpp \
|
|---|
| 46 | Potentials/Specifics/FourBodyPotential_Improper.hpp \
|
|---|
| 47 | Potentials/Specifics/FourBodyPotential_Torsion.hpp \
|
|---|
| 48 | Potentials/Specifics/ManyBodyPotential_Tersoff.hpp \
|
|---|
| 49 | Potentials/Specifics/PairPotential_Harmonic.hpp \
|
|---|
| 50 | Potentials/Specifics/PairPotential_LennardJones.hpp \
|
|---|
| 51 | Potentials/Specifics/PairPotential_Morse.hpp \
|
|---|
| 52 | Potentials/Specifics/ThreeBodyPotential_Angle.hpp
|
|---|
| 53 |
|
|---|
| 54 | BUILT_SOURCES += AllPotentialHeaders.hpp
|
|---|
| 55 |
|
|---|
| 56 | noinst_LTLIBRARIES += libMolecuilderPotentials.la
|
|---|
| 57 | libMolecuilderPotentials_la_includedir = $(includedir)/MoleCuilder/
|
|---|
| 58 |
|
|---|
| 59 | nobase_libMolecuilderPotentials_la_include_HEADERS = ${POTENTIALSHEADER} ${SPECIFICPOTENTIALSHEADER}
|
|---|
| 60 | nodist_libMolecuilderPotentials_la_include_HEADERS = AllPotentialHeaders.hpp
|
|---|
| 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
|
|---|
| 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 |
|
|---|