1# 2# Copyright (c) 2012 Los Alamos National Security, LLC. 3# All rights reserved. 4# Copyright (c) 2014 Cisco Systems, Inc. All rights reserved. 5# Copyright (c) 2016-2018 Intel, Inc. All rights reserved. 6# $COPYRIGHT$ 7# 8# Additional copyrights may follow 9# 10# $HEADER$ 11# 12 13headers = rte_orte.h 14 15sources = \ 16 rte_orte_component.c \ 17 rte_orte_module.c 18 19# Conditionally install the header files 20if WANT_INSTALL_HEADERS 21ompidir = $(ompiincludedir)/$(subdir) 22nobase_ompi_HEADERS = $(headers) 23endif 24 25# We only ever build this component statically 26noinst_LTLIBRARIES = libmca_rte_orte.la 27libmca_rte_orte_la_SOURCES =$(sources) $(headers) 28libmca_rte_orte_la_LDFLAGS = -module -avoid-version 29libmca_rte_orte_la_LIBADD = $(top_builddir)/orte/lib@ORTE_LIB_PREFIX@open-rte.la 30 31man_pages = mpirun.1 mpiexec.1 ompi-clean.1 ompi-server.1 32 33if OPAL_INSTALL_BINARIES 34nodist_man_MANS = $(man_pages) 35 36install-exec-hook: 37 (cd $(DESTDIR)$(bindir); rm -f mpirun$(EXEEXT); $(LN_S) orterun$(EXEEXT) mpirun$(EXEEXT)) 38 (cd $(DESTDIR)$(bindir); rm -f mpiexec$(EXEEXT); $(LN_S) orterun$(EXEEXT) mpiexec$(EXEEXT)) 39 (cd $(DESTDIR)$(bindir); rm -f ompi-clean$(EXEEXT); $(LN_S) orte-clean$(EXEEXT) ompi-clean$(EXEEXT)) 40 (cd $(DESTDIR)$(bindir); rm -f ompi-server$(EXEEXT); $(LN_S) orte-server$(EXEEXT) ompi-server$(EXEEXT)) 41 42uninstall-local: 43 rm -f $(DESTDIR)$(bindir)/mpirun$(EXEEXT) \ 44 $(DESTDIR)$(bindir)/mpiexec$(EXEEXT) \ 45 $(DESTDIR)$(bindir)/ompi-clean$(EXEEXT) \ 46 $(DESTDIR)$(bindir)/ompi-server$(EXEEXT) 47 48endif # OPAL_INSTALL_BINARIES 49 50$(top_builddir)/orte/tools/orterun/orterun.1: 51 (cd $(top_builddir)/orte/tools/orterun && $(MAKE) $(AM_MAKEFLAGS) orterun.1) 52 53mpirun.1: $(top_builddir)/orte/tools/orterun/orterun.1 54 cp -f $(top_builddir)/orte/tools/orterun/orterun.1 mpirun.1 55 56mpiexec.1: $(top_builddir)/orte/tools/orterun/orterun.1 57 cp -f $(top_builddir)/orte/tools/orterun/orterun.1 mpiexec.1 58 59$(top_builddir)/orte/tools/orte-clean/orte-clean.1: 60 (cd $(top_builddir)/orte/tools/orte-clean && $(MAKE) $(AM_MAKEFLAGS) orte-clean.1) 61 62ompi-clean.1: $(top_builddir)/orte/tools/orte-clean/orte-clean.1 63 cp -f $(top_builddir)/orte/tools/orte-clean/orte-clean.1 ompi-clean.1 64 65$(top_builddir)/orte/tools/orte-server/orte-server.1: 66 (cd $(top_builddir)/orte/tools/orte-server && $(MAKE) $(AM_MAKEFLAGS) orte-server.1) 67 68ompi-server.1: $(top_builddir)/orte/tools/orte-server/orte-server.1 69 cp -f $(top_builddir)/orte/tools/orte-server/orte-server.1 ompi-server.1 70 71clean-local: 72 rm -f $(man_pages) 73