-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile-am.am
239 lines (218 loc) · 7.07 KB
/
Makefile-am.am
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
# Copyright (C) 2007,2008,2009,2010 Olaf Lenz, Axel Arnold
#
# This file is part of ESPResSo.
#
# ESPResSo is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# ESPResSo is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
SUBDIRS = . scripts tools testsuite doc
# List files that should go into the distribution but are not required
# by any other means
EXTRA_DIST = Makefile GPL.TXT LICENSE.TXT RELEASE_NOTES darwinlink.sh \
autogen.sh configure-ac copyright.sh samples cmake CMakeLists.txt \
acconfig.h.cmakein packages Espresso \
$(extra)
# List headers that are not used by the program here
noinst_HEADERS = myconfig-sample.h \
p3m-charges.c p3m-dipoles.h \
p3m-dipoles.c p3m-charges.h \
p3m-assignment.c
# List the sources of the Espresso binary here
Espresso_bin_SOURCES = \
main.c \
config.c config.h \
initialize.c initialize.h \
global.c global.h \
communication.c communication.h \
binary_file.c binary_file.h \
interaction_data.c interaction_data.h\
verlet.c verlet.h \
grid.c grid.h \
integrate.c integrate.h \
cells.c cells.h \
ghosts.c ghosts.h \
forces.c forces.h \
rotation.c rotation.h \
debug.c debug.h \
particle_data.c particle_data.h \
thermostat.c thermostat.h \
dpd.c dpd.h \
statistics.c statistics.h \
statistics_chain.c statistics_chain.h \
energy.c energy.h \
pressure.c pressure.h \
vmdsock.c vmdsock.h \
imd.c imd.h \
iccp3m.c iccp3m.h \
p3m.c p3m.h \
magnetic_non_p3m__methods.c magnetic_non_p3m__methods.h \
ewald.c ewald.h \
fft.c fft.h \
random.c random.h \
blockfile.c blockfile.h \
blockfile_tcl.c blockfile_tcl.h \
polymer.c polymer.h \
specfunc.c specfunc.h \
tuning.c tuning.h \
uwerr.c uwerr.h \
parser.c parser.h \
domain_decomposition.c domain_decomposition.h \
nsquare.c nsquare.h \
layered.c layered.h \
mmm-common.c mmm-common.h \
mmm1d.c mmm1d.h \
mmm2d.c mmm2d.h \
modes.c modes.h \
topology.c topology.h \
nemd.c nemd.h \
statistics_cluster.c statistics_cluster.h \
elc.c elc.h \
mdlc_correction.c mdlc_correction.h \
statistics_molecule.c statistics_molecule.h \
errorhandling.c errorhandling.h \
constraint.c constraint.h \
maggs.c maggs.h \
mol_cut.h \
rattle.c rattle.h \
molforces.c molforces.h \
virtual_sites.c virtual_sites.h \
metadynamics.c metadynamics.h \
npt.h \
lb.c lb.h \
lb-d3q18.h lb-d3q19.h \
bin.c bin.h \
lattice.c lattice.h \
halo.c halo.h \
statistics_fluid.c statistics_fluid.h \
lb-boundaries.c lb-boundaries.h \
utils.c utils.h \
angle.h \
pwdist.h \
angledist.h \
endangledist.h \
buckingham.h \
comfixed.h \
comforce.h \
debye_hueckel.h \
reaction_field.h \
dihedral.h \
fene.h \
gb.h \
harmonic.h \
hertzian.h \
imd.h \
ljcos2.h \
ljcos.h \
lj.h \
ljgen.c ljgen.h \
steppot.h \
bmhtf-nacl.h \
morse.h \
polynom.h \
soft_sphere.h \
subt_lj.h \
tab.h \
overlap.h \
ljangle.h \
adresso.c adresso.h \
tunable_slip.h
#deactivate building of the library
#libEspresso_a_SOURCES = $(Espresso_bin_SOURCES)
# Remove all CVS files from the distribution
# and remove the internal dir if not dist-internal is used
dist-hook:
-rm -rf `find $(distdir) -name CVS`
#################################################################
# Installation of the main program and wrapper scripts
#################################################################
noinst_PROGRAMS = Espresso_bin
if USE_CHOOSER
# Substitute some remaining variables in the Espresso wrappers. This
# is necessary as the required values are only known at installation
# time.
install-exec-local:
# create directories
test -z "$(bindir)" || $(mkdir_p) "$(DESTDIR)$(bindir)"
test -z "$(pkglibdir)" || $(mkdir_p) "$(DESTDIR)$(pkglibdir)"
test -z "$(execpkglibdir)" || $(mkdir_p) "$(DESTDIR)$(execpkglibdir)"
# install chooser
sed -e "s,[@]ESPRESSO_PKGLIBDIR[@],$(pkglibdir),g" \
chooser/Espresso > $(DESTDIR)/$(bindir)/Espresso
chmod 755 $(DESTDIR)/$(bindir)/Espresso
# install config.guess script
$(INSTALL_SCRIPT) \
$(srcdir)/config/config.guess $(DESTDIR)/$(pkglibdir)/
# install mpi wrapper
sed -e "s,[@]ESPRESSO_BIN[@],$(execpkglibdir)/Espresso_bin,g;s,[@]ESPRESSO_SCRIPTS[@],$(scriptsdir),g" \
mpiwrap/Espresso > $(DESTDIR)/$(execpkglibdir)/Espresso
chmod 755 $(DESTDIR)/$(execpkglibdir)/Espresso
# install binary
$(INSTALL_PROGRAM_ENV) $(INSTALL_PROGRAM) \
Espresso_bin $(DESTDIR)/$(execpkglibdir)/
unistall-local:
rm $(DESTDIR)/$(bindir)/Espresso
rm $(DESTDIR)/$(execpkglibdir)/Espresso
rm $(DESTDIR)/$(execpkglibdir)/Espresso_bin
else
# Substitute some remaining variables in the Espresso wrappers. This
# is necessary as the required values are only known at installation
# time.
install-exec-local:
# create directories
test -z "$(bindir)" || $(mkdir_p) "$(DESTDIR)$(bindir)"
test -z "$(libexecdir)" || $(mkdir_p) "$(DESTDIR)$(libexecdir)"
# install mpi wrapper
sed -e "s,[@]ESPRESSO_BIN[@],$(libexecdir)/Espresso_bin,g;s,[@]ESPRESSO_SCRIPTS[@],$(scriptsdir),g" \
mpiwrap/Espresso > $(DESTDIR)/$(bindir)/Espresso
chmod 755 $(DESTDIR)/$(bindir)/Espresso
# install binary
$(INSTALL_PROGRAM_ENV) $(INSTALL_PROGRAM) \
Espresso_bin $(DESTDIR)/$(libexecdir)/
uninstall-local:
rm $(DESTDIR)/$(bindir)/Espresso
rm $(DESTDIR)/$(libexecdir)/Espresso_bin
endif
#################################################################
# Documentation
#################################################################
.PHONY: FORCE doc ug dg tutorials
doc ug dg tutorials: FORCE
cd doc; $(MAKE) --print-directory $@
FORCE:
#################################################################
# Handling of local configure headers
#################################################################
# add config/ to the INCLUDES so that the default config/$(myconfig) is
# found at compile time
INCLUDES = -Iconfig
DEFS = -D 'MYCONFIG_H="$(myconfig)"'
# add config/ to the VPATH so that $(myconfig) can be found by make
vpath $(myconfig) $(top_builddir):$(top_srcdir):$(top_builddir)/config
# add $(myconfig) to the dependencies of all object files so that
# they get rebuilt when $(myconfig) is changed
$(Espresso_bin_OBJECTS): $(myconfig)
DISTCLEANFILES = $(top_builddir)/config/$(myconfig)
#################################################################
# Handling of the MPI fake implementation
#################################################################
if MPI_FAKE
Espresso_bin_SOURCES += mpifake/mpi.h mpifake/mpi.c
# mpifake should come before any system includes
INCLUDES += -I$(srcdir)/mpifake -Iconfig
endif
ACLOCAL_AMFLAGS = -Iconfig
##################################################
# Targets for backwards compatibility
##################################################
test: check
mostclean: mostlyclean
docu: doc