-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile.in
471 lines (437 loc) · 22.3 KB
/
Makefile.in
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
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
# This Makefile.in created by simplemake. Do not edit
# @configure_input@
# --------------------------------------------------------------------------
all: all-redirect
SHELL = @SHELL@
LIBTOOL = @LIBTOOL@
CREATESHLIB = @CREATESHLIB@
ABIVERSION = @ABIVERSION@
LIBS = @LIBS@
LDFLAGS = @LDFLAGS@
C_LINK_SHL = @C_LINK_SHL@
INSTALL = @INSTALL@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_SCRIPT = @INSTALL_SCRIPT@
INSTALL_DATA = @INSTALL_DATA@
MKDIR_P = @MKDIR_P@
includedir = @includedir@
prefix = @prefix@
abs_builddir = @abs_builddir@
exec_prefix = @exec_prefix@
libdir = @libdir@
master_top_srcdir = @master_top_srcdir@
srcdir = @srcdir@
bindir = @bindir@
abs_srcdir = @abs_srcdir@
datarootdir = @datarootdir@
docdir = @docdir@
htmldir = @htmldir@
mandir = @mandir@
MAKE = @MAKE@
MPILIBNAME = @MPILIBNAME@
PMPILIBNAME = @PMPILIBNAME@
VPATH = .:@srcdir@
MPICXXLIBNAME = @MPICXXLIBNAME@
MPIFLIBNAME = @MPIFLIBNAME@
MPIFWRAPNAME = @FWRAPNAME@
.SUFFIXES:
# Some make programs complain if no suffixes are set
.SUFFIXES: .c .o
apply:
$(ACTION) $(ACTION_INPUT)
for dir in @EXTERNAL_SRC_DIRS@ src - ; do \
if [ "$$dir" = "-" ] ; then break ; fi ; \
(cd $$dir && ${MAKE} apply ) ; done
clean: clean-preamble
-@rm -f *.o ${srcdir}/*.o
-@rm -f .libstamp0 .libstamp1
-@rm -f *.lo ${srcdir}/*.lo
for dir in @EXTERNAL_SRC_DIRS@ src - ; do \
if [ "$$dir" = "-" ] ; then break ; fi ; \
(cd $$dir && ${MAKE} clean ) ; done
${MAKE} clean-postamble
distclean: clean distclean-local distclean-xxx remove-makefile
distclean-xxx:
for dir in @EXTERNAL_SRC_DIRS@ src - ; do \
if [ "$$dir" = "-" ] ; then break ; fi ; \
if [ ! -s $$dir/Makefile ] ; then continue ; fi ;\
(cd $$dir && ${MAKE} distclean ) ; done
-@rm -f Makefile mpich2-doxygen src/pmi/${pmi_name}/Makefile examples/f77/Makefile examples/f90/Makefile examples/cxx/Makefile doc/refman/Makefile doc/installguide/Makefile doc/userguide/Makefile doc/logging/Makefile doc/design/Makefile doc/smpd/Makefile doc/windev/Makefile config.status config.log config.cache *conf.cache config.system
-@rm -rf autom4te*.cache
-@rm -f src/include/mpichconf.h
-@rm -f test/Makefile test/util/Makefile test/basic/Makefile test/commands/Makefile test/commands/cmdtests test/mpid/Makefile test/mpid/ch3/Makefile test/util/timer/Makefile examples/Makefile doc/Makefile doc/mansrc/Makefile doc/mansrc/createhtmlindex
-@rm -rf $(DEPS_DIR)
-@rm -f TAGS
remove-makefile:
rm -f Makefile
remove-genmakefiles:
rm -f Makefile
all-redirect: all-preamble
${MAKE} all-local
@for dir in @EXTERNAL_SRC_DIRS@ - ; do \
if [ "$$dir" = "-" ] ; then break ; fi ; \
if ( cd $$dir && ${MAKE} all ) ; then : ; else exit 1; fi \
done
@(cd src && ${MAKE} all )
@if [ "@ENABLE_SHLIB@" != "none" ] ; then \
if [ -s lib/lib${MPILIBNAME}.la ] ; then \
echo "make lib/lib${MPILIBNAME}.@SHLIB_EXT@" ;\
${MAKE} lib/lib${MPILIBNAME}.@SHLIB_EXT@ ; \
fi ; \
if [ -s lib/libf${MPILIBNAME}.la ] ; then \
echo "make lib/libf${MPILIBNAME}.@SHLIB_EXT@" ;\
${MAKE} lib/libf${MPILIBNAME}.@SHLIB_EXT@ ; \
fi ; \
if [ -s lib/lib${MPILIBNAME}f90.la ] ; then \
echo "make lib/lib${MPILIBNAME}f90.@SHLIB_EXT@" ;\
${MAKE} lib/lib${MPILIBNAME}f90.@SHLIB_EXT@ ; \
fi ; \
if [ -s lib/lib${MPICXXLIBNAME}.la ] ; then \
echo "make lib/lib${MPICXXLIBNAME}.@SHLIB_EXT@" ;\
${MAKE} lib/lib${MPICXXLIBNAME}.@SHLIB_EXT@ ; \
fi ; \
fi
${MAKE} all-postamble
CC = @CC@
CFLAGS = @CFLAGS@ $(MPICH2_MAKE_CFLAGS)
C_COMPILE = $(CC) $(DEFS) $(INCLUDES) $(CFLAGS) $(CPPFLAGS)
# Build the shared library from the shared object files
lib/lib${MPILIBNAME}.@SHLIB_EXT@: lib/lib${MPILIBNAME}.la
(cd lib && $(CREATESHLIB) --mode=link -version-info "$(ABIVERSION)" -o lib${MPILIBNAME}.la -rpath $(libdir) -L. @LDFLAGS_DEPS@ @LIB_DEPS@ -ldflags "$(LDFLAGS)" $(LIBS))
if [ -n "@NO_WEAK_SYM@" -a \
"${MPILIBNAME}" != "${PMPILIBNAME}" ] ; then \
(cd lib && $(CREATESHLIB) --mode=link -version-info "$(ABIVERSION)" -o lib${PMPILIBNAME}.la -rpath $(libdir) );\
fi
# Build the shared library from the shared object files
lib/libf${MPILIBNAME}.@SHLIB_EXT@: lib/libf${MPILIBNAME}.la
(cd lib && $(CREATESHLIB) --mode=link -version-info "$(ABIVERSION)" -o libf${MPILIBNAME}.la -rpath $(libdir) -L. @LDFLAGS_DEPS@ -l$(MPILIBNAME) @LIB_DEPS@ -ldflags "$(LDFLAGS)" $(LIBS))
# Build the shared library from the shared object files
lib/lib${MPILIBNAME}f90.@SHLIB_EXT@: lib/lib${MPILIBNAME}f90.la
(cd lib && $(CREATESHLIB) --mode=link -version-info "$(ABIVERSION)" -o lib${MPILIBNAME}f90.la -rpath $(libdir) -L. @LDFLAGS_DEPS@ -l$(MPILIBNAME) @LIB_DEPS@ -ldflags "$(LDFLAGS)" $(LIBS))
# Build the shared library from the shared object files
lib/lib${MPICXXLIBNAME}.@SHLIB_EXT@: lib/lib${MPICXXLIBNAME}.la
(cd lib && $(CREATESHLIB) --mode=link -version-info "$(ABIVERSION)" -o lib${MPICXXLIBNAME}.la -rpath $(libdir) -L. @LDFLAGS_DEPS@ -l$(MPILIBNAME) @LIB_DEPS@ -ldflags "$(LDFLAGS)" $(LIBS))
# --------------------------------------------------------------------------
.libstamp0:
.libstamp1:
# --------------------------------------------------------------------------
# --------------------------------------------------------------------------
# Install target
install: install-preamble FORCE_TARGET
if [ ! -d ${DESTDIR}${prefix} ] ; then $(MKDIR_P) ${DESTDIR}${prefix} ; fi
if [ ! -d ${DESTDIR}${datarootdir} ] ; then $(MKDIR_P) ${DESTDIR}${datarootdir} ; fi
if [ ! -d ${DESTDIR}${htmldir} ] ; then $(MKDIR_P) ${DESTDIR}${htmldir} ; fi
if [ ! -d ${DESTDIR}${mandir} ] ; then $(MKDIR_P) ${DESTDIR}${mandir} ; fi
if [ ! -d ${DESTDIR}${includedir} ] ; then $(MKDIR_P) ${DESTDIR}${includedir} ; fi
if [ ! -d ${DESTDIR}${exec_prefix} ] ; then $(MKDIR_P) ${DESTDIR}${exec_prefix} ; fi
if [ ! -d ${DESTDIR}${libdir} ] ; then $(MKDIR_P) ${DESTDIR}${libdir} ; fi
${MAKE} install-local
$(INSTALL_DATA) src/include/mpi.h ${DESTDIR}${includedir}/mpi.h
$(INSTALL_DATA) $(srcdir)/src/include/mpix.h ${DESTDIR}${includedir}/mpix.h
$(INSTALL_DATA) lib/lib${MPILIBNAME}.a ${DESTDIR}${libdir}/lib${MPILIBNAME}.a
if [ ! -d ${DESTDIR}${docdir} ] ; then $(MKDIR_P) ${DESTDIR}${docdir} ; fi
@if test -d $(srcdir)/www && cd $(srcdir)/www ; then \
for name in * ; do \
if [ "$$name" = "*" ] ; then continue ; fi ; \
if [ -f $$name ] ; then \
echo "$(INSTALL_DATA) $$name ${DESTDIR}${htmldir}/$$name" ; \
$(INSTALL_DATA) $$name ${DESTDIR}${htmldir}/$$name ; \
elif [ -d $$name ] ; then \
if [ ! -d ${DESTDIR}${htmldir}/$$name ] ; then $(MKDIR_P) ${DESTDIR}${htmldir}/$$name ; fi ;\
( cd $$name && for name2 in * ; do \
if [ "$$name2" = "*" ] ; then continue ; fi ; \
if [ -f $$name2 ] ; then \
echo "$(INSTALL_DATA) $$name2 ${DESTDIR}${htmldir}/$$name/$$name2" ; \
$(INSTALL_DATA) $$name2 ${DESTDIR}${htmldir}/$$name/$$name2 ; \
elif [ -d $$name2 ] ; then \
echo "cp -rp $$name2 ${DESTDIR}${htmldir}/$$name" ; \
cp -rp $$name2 ${DESTDIR}${htmldir}/$$name ; \
fi \
done ) ; \
else \
echo "Unknown file type for $$name" ; \
fi ; \
done ; \
fi
@if test -d $(srcdir)/man && cd $(srcdir)/man ; then \
for name in * ; do \
if [ "$$name" = "*" ] ; then continue ; fi ; \
if [ -f $$name ] ; then \
echo "$(INSTALL_DATA) $$name ${DESTDIR}${mandir}/$$name" ; \
$(INSTALL_DATA) $$name ${DESTDIR}${mandir}/$$name ; \
elif [ -d $$name ] ; then \
if [ ! -d ${DESTDIR}${mandir}/$$name ] ; then $(MKDIR_P) ${DESTDIR}${mandir}/$$name ; fi ;\
( cd $$name && for name2 in * ; do \
if [ "$$name2" = "*" ] ; then continue ; fi ; \
if [ -f $$name2 ] ; then \
echo "$(INSTALL_DATA) $$name2 ${DESTDIR}${mandir}/$$name/$$name2" ; \
$(INSTALL_DATA) $$name2 ${DESTDIR}${mandir}/$$name/$$name2 ; \
elif [ -d $$name2 ] ; then \
echo "cp -rp $$name2 ${DESTDIR}${mandir}/$$name" ; \
cp -rp $$name2 ${DESTDIR}${mandir}/$$name ; \
fi \
done ) ; \
else \
echo "Unknown file type for $$name" ; \
fi ; \
done ; \
fi
if [ -s src/mpi/romio/include/mpiof.h ] ; then $(INSTALL_DATA) src/mpi/romio/include/mpiof.h ${DESTDIR}${includedir}/mpiof.h ; fi
if [ -s src/mpi/romio/include/mpio.h ] ; then $(INSTALL_DATA) src/mpi/romio/include/mpio.h ${DESTDIR}${includedir}/mpio.h ; fi
if [ -s lib/lib${MPIFLIBNAME}.a ] ; then $(INSTALL_DATA) lib/lib${MPIFLIBNAME}.a ${DESTDIR}${libdir}/lib${MPIFLIBNAME}.a ; fi
if [ -s lib/lib${MPICXXLIBNAME}.a ] ; then $(INSTALL_DATA) lib/lib${MPICXXLIBNAME}.a ${DESTDIR}${libdir}/lib${MPICXXLIBNAME}.a ; fi
if [ -s lib/lib${MPIFWRAPNAME}.a ] ; then $(INSTALL_DATA) lib/lib${MPIFWRAPNAME}.a ${DESTDIR}${libdir}/lib${MPIFWRAPNAME}.a ; fi
if [ -s lib/lib${PMPILIBNAME}.a ] ; then $(INSTALL_DATA) lib/lib${PMPILIBNAME}.a ${DESTDIR}${libdir}/lib${PMPILIBNAME}.a ; fi
if [ -s lib/libf${MPILIBNAME}.a ] ; then $(INSTALL_DATA) lib/libf${MPILIBNAME}.a ${DESTDIR}${libdir}/libf${MPILIBNAME}.a ; fi
if [ -s lib/lib${MPILIBNAME}f90.a ] ; then $(INSTALL_DATA) lib/lib${MPILIBNAME}f90.a ${DESTDIR}${libdir}/lib${MPILIBNAME}f90.a ; fi
if [ -s lib/lib${MPILIBNAME}.@SHLIB_EXT@ ] ; then $(CREATESHLIB) -version-info $(ABIVERSION) --mode=install lib/lib${MPILIBNAME}.@SHLIB_EXT@ ${DESTDIR}${libdir}/lib${MPILIBNAME}.@SHLIB_EXT@ ; fi
if [ -s lib/lib${PMPILIBNAME}.@SHLIB_EXT@ ] ; then $(CREATESHLIB) -version-info $(ABIVERSION) --mode=install lib/lib${PMPILIBNAME}.@SHLIB_EXT@ ${DESTDIR}${libdir}/lib${PMPILIBNAME}.@SHLIB_EXT@ ; fi
if [ -s lib/libf${MPILIBNAME}.@SHLIB_EXT@ ] ; then $(CREATESHLIB) -version-info $(ABIVERSION) --mode=install lib/libf${MPILIBNAME}.@SHLIB_EXT@ ${DESTDIR}${libdir}/libf${MPILIBNAME}.@SHLIB_EXT@ ; fi
if [ -s lib/lib${MPILIBNAME}f90.@SHLIB_EXT@ ] ; then $(CREATESHLIB) -version-info $(ABIVERSION) --mode=install lib/lib${MPILIBNAME}f90.@SHLIB_EXT@ ${DESTDIR}${libdir}/lib${MPILIBNAME}f90.@SHLIB_EXT@ ; fi
if [ -s lib/lib${MPICXXLIBNAME}.@SHLIB_EXT@ ] ; then $(CREATESHLIB) -version-info $(ABIVERSION) --mode=install lib/lib${MPICXXLIBNAME}.@SHLIB_EXT@ ${DESTDIR}${libdir}/lib${MPICXXLIBNAME}.@SHLIB_EXT@ ; fi
if [ -s $(srcdir)/doc/userguide/user.pdf ] ; then $(INSTALL_DATA) $(srcdir)/doc/userguide/user.pdf ${DESTDIR}${docdir}/user.pdf ; fi
if [ -s $(srcdir)/doc/installguide/install.pdf ] ; then $(INSTALL_DATA) $(srcdir)/doc/installguide/install.pdf ${DESTDIR}${docdir}/install.pdf ; fi
if [ -s $(srcdir)/doc/smpd/smpd_pmi.pdf ] ; then $(INSTALL_DATA) $(srcdir)/doc/smpd/smpd_pmi.pdf ${DESTDIR}${docdir}/smpd_pmi.pdf ; fi
if [ -s $(srcdir)/doc/logging/logging.pdf ] ; then $(INSTALL_DATA) $(srcdir)/doc/logging/logging.pdf ${DESTDIR}${docdir}/logging.pdf ; fi
(cd src/env && $(MAKE) INSTALL_STRIP_FLAG=$(INSTALL_STRIP_FLAG) PACKAGE=$(PACKAGE) prefix=${DESTDIR}${prefix} exec_prefix=${DESTDIR}${exec_prefix} bindir=${DESTDIR}${bindir} libdir=${DESTDIR}${libdir} includedir=${DESTDIR}${includedir} install)
(cd src/packaging/pkgconfig && $(MAKE) INSTALL_STRIP_FLAG=$(INSTALL_STRIP_FLAG) PACKAGE=$(PACKAGE) prefix=${DESTDIR}${prefix} exec_prefix=${DESTDIR}${exec_prefix} bindir=${DESTDIR}${bindir} libdir=${DESTDIR}${libdir} includedir=${DESTDIR}${includedir} install)
(cd src/packaging/envmods && $(MAKE) INSTALL_STRIP_FLAG=$(INSTALL_STRIP_FLAG) PACKAGE=$(PACKAGE) prefix=${DESTDIR}${prefix} exec_prefix=${DESTDIR}${exec_prefix} bindir=${DESTDIR}${bindir} libdir=${DESTDIR}${libdir} includedir=${DESTDIR}${includedir} install)
for dir in @bindings_dirs@ - ; do \
if [ "$$dir" = "-" ] ; then break ; fi ;\
(cd $$dir && $(MAKE) INSTALL_STRIP_FLAG=$(INSTALL_STRIP_FLAG) PACKAGE=$(PACKAGE) prefix=${DESTDIR}${prefix} exec_prefix=${DESTDIR}${exec_prefix} bindir=${DESTDIR}${bindir} libdir=${DESTDIR}${libdir} includedir=${DESTDIR}${includedir} install) ;\
done
for dir in @other_install_dirs@ - ; do \
if [ "$$dir" = "-" ] ; then break ; fi ;\
(cd $$dir && $(MAKE) INSTALL_STRIP_FLAG=$(INSTALL_STRIP_FLAG) PACKAGE=$(PACKAGE) prefix=${DESTDIR}${prefix} exec_prefix=${DESTDIR}${exec_prefix} bindir=${DESTDIR}${bindir} libdir=${DESTDIR}${libdir} includedir=${DESTDIR}${includedir} install) ;\
done
install-strip:
$(MAKE) INSTALL_STRIP_FLAG=-s install
uninstall:
-rm -f ${DESTDIR}${includedir}/mpi.h
-rm -f ${DESTDIR}${includedir}/mpix.h
-rm -f ${DESTDIR}${libdir}/lib${MPILIBNAME}.a
-rm -f ${DESTDIR}${includedir}/mpiof.h
-rm -f ${DESTDIR}${includedir}/mpio.h
-rm -f ${DESTDIR}${libdir}/lib${MPIFLIBNAME}.a
-rm -f ${DESTDIR}${libdir}/lib${MPICXXLIBNAME}.a
-rm -f ${DESTDIR}${libdir}/lib${MPIFWRAPNAME}.a
-rm -f ${DESTDIR}${libdir}/lib${PMPILIBNAME}.a
-rm -f ${DESTDIR}${libdir}/libf${MPILIBNAME}.a
-rm -f ${DESTDIR}${libdir}/lib${MPILIBNAME}f90.a
-$(CREATESHLIB) --mode=uninstall lib/lib${MPILIBNAME}.@SHLIB_EXT@ ${DESTDIR}${libdir}/lib${MPILIBNAME}.@SHLIB_EXT@
-$(CREATESHLIB) --mode=uninstall lib/lib${PMPILIBNAME}.@SHLIB_EXT@ ${DESTDIR}${libdir}/lib${PMPILIBNAME}.@SHLIB_EXT@
-$(CREATESHLIB) --mode=uninstall lib/libf${MPILIBNAME}.@SHLIB_EXT@ ${DESTDIR}${libdir}/libf${MPILIBNAME}.@SHLIB_EXT@
-$(CREATESHLIB) --mode=uninstall lib/lib${MPILIBNAME}f90.@SHLIB_EXT@ ${DESTDIR}${libdir}/lib${MPILIBNAME}f90.@SHLIB_EXT@
-$(CREATESHLIB) --mode=uninstall lib/lib${MPICXXLIBNAME}.@SHLIB_EXT@ ${DESTDIR}${libdir}/lib${MPICXXLIBNAME}.@SHLIB_EXT@
-rm -f ${DESTDIR}${docdir}/user.pdf
-rm -f ${DESTDIR}${docdir}/install.pdf
-rm -f ${DESTDIR}${docdir}/smpd_pmi.pdf
-rm -f ${DESTDIR}${docdir}/logging.pdf
for dir in src/env src/packaging/pkgconfig src/packaging/envmods @bindings_dirs@ @other_install_dirs@ - ; do \
if [ "$$dir" = "-" ] ; then break ; fi ; \
(cd $$dir && ${MAKE} uninstall ) ; done
installcheck:
for dir in src/env src/packaging/pkgconfig src/packaging/envmods @bindings_dirs@ @other_install_dirs@ - ; do \
if [ "$$dir" = "-" ] ; then break ; fi ; \
(cd $$dir && ${MAKE} installcheck ) ; done
${MAKE} installcheck-postamble
# --------------------------------------------------------------------------
# --------------------------------------------------------------------------
HEADERFILES = $(HEADERS)
SOURCEFILES = $(SOURCES)
# --------------------------------------------------------------------------
# -*- Mode: makefile; -*-
# Do not include test in the basic build.
# The all-local target makes sure that when different subsystems are selected
# for the configure step, the libraries are removed and the object files
# cleaned out. Without this step, it is possible to run make and encounter
# errors caused by out-of-date objects in the directories and in the
# library. We do not replace the pkglist file until the make completes,
# using the all-postamble target.
#
# Here is the logic:
# A new configure creates lib/newconfig
# A cleanobjsandlibs step removes that file, as well as removing the
# libraries and object files
# The test for whether the clean step is performed is this:
# Create a file lib/pkglist.new
# Compare lib/pkglist.new to lib/pkglist
# If the same, rm lib/pkglist.new and done.
# If different, then cleanout the libraries and object files,
# then mv lib/pkglist.new lib/pkglist
#
all-local:
@if [ ! -d lib ] ; then mkdir lib ; date > lib/.mpich2created ; \
else \
echo "@subsystems@" > lib/pkglist.new ; \
echo "@CC@ @CFLAGS@" >>lib/pkglist.new ;\
echo "@CXX@ @CXXFLAGS@" >> lib/pkglist.new ;\
echo "@F77@ @FFLAGS@" >> lib/pkglist.new ;\
echo "@FC@ @FCFLAGS@" >> lib/pkglist.new ;\
echo "@CONFIGURE_ARGUMENTS@" >>lib/pkglist.new ; \
echo "@LDFLAGS@" >> lib/pkglist.new ;\
if diff lib/pkglist lib/pkglist.new >/dev/null 2>&1 ; then \
rm -f lib/pkglist.new ; \
else \
${MAKE} cleanobjsandlibs ; \
rm -f lib/pkglist ; \
mv -f lib/pkglist.new lib/pkglist ; \
fi ; \
fi
clean-preamble:
${MAKE} cleanlibs
clean-postamble:
cd examples && ${MAKE} clean
cleanobjsandlibs:
${MAKE} clean && cd test && ${MAKE} clean
rm -f lib/newconfig
# cleanlibs makes sure that we clean all of the library files
cleanlibs:
rm -f lib/lib${MPILIBNAME}.a lib/lib${PMPILIBNAME}.a
rm -f lib/lib${MPICXXLIBNAME}.a
rm -f lib/libf${MPILIBNAME}.a lib/lib${MPILIBNAME}f90.a
rm -f lib/lib${MPILIBNAME}.@SHLIB_EXT@*
rm -f lib/lib${PMPILIBNAME}.@SHLIB_EXT@*
rm -f lib/lib${MPICXXLIBNAME}.@SHLIB_EXT@*
rm -f lib/libf${MPILIBNAME}.@SHLIB_EXT@*
rm -f lib/lib${MPILIBNAME}f90.@SHLIB_EXT@*
rm -f lib/lib${MPILIBNAME}f90.*.@SHLIB_EXT@*
rm -f lib/lib${MPILIBNAME}.*.@SHLIB_EXT@*
rm -f lib/lib${PMPILIBNAME}.*.@SHLIB_EXT@*
rm -f lib/lib${MPICXXLIBNAME}.*.@SHLIB_EXT@*
rm -f lib/libf${MPILIBNAME}.*.@SHLIB_EXT@*
rm -f lib/lib${MPILIBNAME}.la* lib/lib${PMPILIBNAME}.la*
rm -f lib/lib${MPILIBNAME}f90.la*
rm -f lib/lib${MPICXXLIBNAME}.la*
rm -f lib/libf${MPILIBNAME}.la*
all-preamble:
@echo "Beginning make"
@echo "Using variables CC='@CC@' CFLAGS='@CFLAGS@' LDFLAGS='@LDFLAGS@' F77='@F77@' FFLAGS='@FFLAGS@' FC='@FC@' FCFLAGS='@FCFLAGS@' CXX='@CXX@' CXXFLAGS='@CXXFLAGS@' AR='@AR@' CPP='@CPP@' CPPFLAGS='@CPPFLAGS@'"
# Add any final extras:
# 1) Build the debugger interface if requested
# Move the "pkglist.new" file to "pkglist" on successful completion
all-postamble:
( cd examples && $(MAKE) )
@if [ "@BUILD_TVDLL@" = "yes" ] ; then \
( cd src/mpi/debugger && $(MAKE) ./libtvmpich2.@SHLIB_EXT@ ) ; fi
@if [ -s lib/pkglist.new ] ; then mv -f lib/pkglist.new lib/pkglist ; fi
@echo "Make completed"
# The test on lib/.mpich2created lets us delete the local lib directory
# if we created it, and not otherwise
distclean-local:
-@rm -f lib/lib${MPILIBNAME}.a lib/pkglist lib/pkglist.new
-@rm -f lib/lib${MPILIBNAME}.@SHLIB_EXT@* lib/lib${MPILIBNAME}.la
-@if [ -s lib/.mpich2created ] ; then rm -rf lib ; fi
-@rm -f src/include/${MPILIBNAME}conf.h
-@rm -f src/include/mpio.h
-@rm -f bin/mpicc
-@rm -f bin/mpich2version
-@cd test && $(MAKE) distclean
# With PACKAGE set, all mpich2 and mpe2 documentation
# will go to docdir=$datarootdir/doc/$PACKAGE,
# and mpe2's exaamples_*/ and logfiles/ go to $datadir/$PACKAGE.
# Unsetting PACKAGE enables docdir=$datarootdir/doc and mpe2 data in $datadir
# User can do "make install PACKAGE=mpich2-xxx" enables
# docdir=$datarootdir/doc/mpich2-xxx and mpe2 data in $datadir/mpich2-xxx.
# PACKAGE = mpich2-@MPICH2_VERSION@
# We skip the mpid/mm directories because mm is no longer active
# mpe2 is an outside project and is tested against the default
# checks
coding-check:
@if [ -z $(CODINGCHECK) ] ;then \
echo "You must define CODINGCHECK for this target" ; \
else \
echo "Checking the MPICH2 sources" ;\
$(CODINGCHECK) -addchecks=mpich2,funcstates,funcnests \
-skipfiles=src/mpe2,src/mpid/mm src examples test ;\
if [ -d src/mpe2 ] ; then \
echo "Checking mpe2 sources" ;\
$(CODINGCHECK) src/mpe2 ; \
fi ; \
fi
# Set the document sources and types (empty lists still cause recursion)
# These should be empty; any source files should be described in the
# directory that contains those source files. The presence of these
# items simply indicates that there are such documents
# Add the www index pages
htmldoc-local:
doc/mansrc/createhtmlindex
# Testing requires installation first
testing:
(cd test && $(MAKE) testing)
#optinstall_SHLIB = lib/lib${MPIFLIBNAME}.@SHLIB_EXT@
#optinstall_SHLIB = lib/lib${MPICXXLIBNAME}.@SHLIB_EXT@
# Extra information on creating shared libraries, needed on some platforms
# On the platforms that require these options, we require that
# PMPILIBNAME and MPILIBNAME be the same.
# UNUSED, example for experimentation only
#lib${MPILIBNAME}_so_EXPORTS = maint/mpi.def
#libf${MPILIBNAME}_so_EXPORTS = maint/fmpi.def
# Add CXXFLAGS to the linker incase the user has used the CXXFLAGS to
# change the architecture (e.g., -m64 to force 64-bit)
lib${MPICXXLIBNAME}_so_LINKER = @CXX_SHL@ @CXXFLAGS@
# Some of the subsidiary packages may need to be installed. This target will
# invoke their install targets as part of the installation process
# Install preamble checks for possible problems
install-preamble:
@if [ "@ENABLE_SHLIB@" = none ] ; then\
found=no ; \
for file in ${libdir}/lib*${MPILIBNAME}.@SHLIB_EXT@ ; do \
if [ -f $$file ] ; then \
echo "Remove $$file and rerun ${MAKE} install" ; \
found=yes ; \
fi ; \
done ; \
if [ $$found != no ] ; then exit 1 ; fi ;\
fi
# Install optional features which require special actions:
# The debugger interface (the "Totalview" DLL)
# The "other" process managers when more that one are built
#
# The variables used in the make of install-alt below must be
# the ones within the Makefile - otherwise, if those variables are
# not defined in the shell, the command-line will cause the make step
# to attempt to install into / and the user's home directory
# (This explanation is here to explain why values in the shell must not
# be used.)
install-local:
-if [ "@BUILD_TVDLL@" = "yes" ] ; then \
$(INSTALL_DATA) src/mpi/debugger/libtvmpich2.@SHLIB_EXT@ \
${DESTDIR}${libdir}/libtvmpich2.@SHLIB_EXT@ ; fi
-if [ -n "@other_pm_names@" ] ; then \
for pm in @other_pm_names@ /dev/null ; do \
if [ -d src/pm/$$pm ] ; then \
(cd src/pm/$$pm && \
$(MAKE) DESTDIR=${DESTDIR} prefix=${prefix} bindir=${bindir} install-alt ) ; \
fi ; \
done ; \
fi
#
# The install-examples target may be used if you want to install the cpi
# program for others to use. This is nto part of the default installation
# because there isn't a good place to put this in the GNU recommended
# installation targets (its a kind of hardware-architecture-specific
# documentation)
install-examples:
if [ ! -d ${DESTDIR}${exec_prefix}/examples ] ; then \
$(MKDIR_P) ${DESTDIR}${exec_prefix}/examples ; \
fi
$(INSTALL_PROGRAM) examples/cpi ${DESTDIR}${exec_prefix}/examples/cpi
install-devdocs:
(cd doc && $(MAKE) install-devdocs)
# installcheck-postable adds checks that may require special
# handling.
# FIXME: Some install checks require that the Process Manager be
# started first. This step does not handle that.
installcheck-postamble:
@if [ -n "@mpe_dir@" -a -d "src/@mpe_dir@" ] ; then \
(cd src/@mpe_dir@ && $(MAKE) installcheck-all PACKAGE=$(PACKAGE) ; ) ; fi
#
# The documents are shipped as part of the release, and so should be
# installed from the source directory, not a VPATH build directory
#install_BIN =
#install_SBIN =
# Still to do: figure out the appropriate target for installing the html
# versions of the documents.
.POSIX:
FORCE_TARGET: