root/mpich2/branches/dev/kumudb/src/pm/gforker/Makefile.sm @ 4898

Revision 4898, 1.5 KB (checked in by kumudb, 5 months ago)

executable works except mpiexec

Line 
1mpiexec_SOURCES = mpiexec.c
2# Some C compilers won't take ../libfoo.a as a library, so we use
3# -Ldir -llib for each of the libraries instead.
4# Force the use of the static, not shared library for mpich and for mpiexec
5mpiexec_LDADD = ../../../lib/libmpiexec.a ../../../lib/libmpich.a
6mpiexec_DEPADD = ../../../lib/libmpiexec.a
7INCLUDES = -I../../include -I${master_top_srcdir}/src/include \
8    -I../../pmi/simple -I${master_top_srcdir}/src/pmi/simple \
9        -I${master_top_srcdir}/src/pm/util
10install_BIN = mpiexec
11
12clean-local:
13        @-(cd ../util && $(MAKE) clean)
14distclean-local:
15        @-rm -f forkerconf.h
16
17# Use the mpich2-build-install target to include mpiexec in the build bin
18# directory (all pm's require these targets)
19mpich2-build-install: install
20mpich2-build-uninstall: uninstall
21
22# A special alternate installation target when using multiple process managers
23install-alt: mpiexec
24        @if [ ! -d $(DESTDIR)${bindir} ] ; then \
25            echo "mkdir -p $(DESTDIR)${bindir} " ;\
26            mkdir -p $(DESTDIR)${bindir} ;\
27        fi
28        $(INSTALL_PROGRAM) $(INSTALL_STRIP_FLAG) mpiexec $(DESTDIR)${bindir}/mpiexec.gforker
29
30doc_sources = mpiexec.txt
31DOCDESTDIRS = html:www/www1,man:man/man1,latex:doc/refman
32docargs_ADD       = ${master_top_srcdir}/doc/mansrc/cmdnotes
33doc_HTML_SOURCES  = ${doc_sources}
34doc_MAN_SOURCES   = ${doc_sources}
35doc_LATEX_SOURCES = ${doc_sources}
36
37# We use a dummy dependency to ensure that we always go to the util
38# directory to see if anything needs to be done
39# ../util/libmpiexec.a: dummy
40# dummy:
41#       cd ../util && $(MAKE)
42#
43all-local:
44        cd ../util && $(MAKE)
Note: See TracBrowser for help on using the browser.