|
Packit Service |
c5cf8c |
## -*- Mode: Makefile; -*-
|
|
Packit Service |
c5cf8c |
## vim: set ft=automake :
|
|
Packit Service |
c5cf8c |
##
|
|
Packit Service |
c5cf8c |
## (C) 2012 by Argonne National Laboratory.
|
|
Packit Service |
c5cf8c |
## See COPYRIGHT in top-level directory.
|
|
Packit Service |
c5cf8c |
##
|
|
Packit Service |
c5cf8c |
|
|
Packit Service |
c5cf8c |
## NOTE: this is subtly different from the simplemake strategy. The simplemake
|
|
Packit Service |
c5cf8c |
## approach always built "mpiexec" from "mpiexec.c" and then either the
|
|
Packit Service |
c5cf8c |
## "install" or the "install-alt" target was invoked by the parent directory's
|
|
Packit Service |
c5cf8c |
## make process, which would install "mpiexec" or "mpiexec.remshell", respectively.
|
|
Packit Service |
c5cf8c |
## Instead, we build the binary by the final installed name, which we determine
|
|
Packit Service |
c5cf8c |
## before install-time.
|
|
Packit Service |
c5cf8c |
|
|
Packit Service |
c5cf8c |
if BUILD_PM_REMSHELL
|
|
Packit Service |
c5cf8c |
if PRIMARY_PM_REMSHELL
|
|
Packit Service |
c5cf8c |
bin_PROGRAMS += src/pm/remshell/mpiexec
|
|
Packit Service |
c5cf8c |
src_pm_remshell_mpiexec_SOURCES = src/pm/remshell/mpiexec.c
|
|
Packit Service |
c5cf8c |
src_pm_remshell_mpiexec_LDADD = src/pm/util/libmpiexec.la $(mpllib)
|
|
Packit Service |
c5cf8c |
src_pm_remshell_mpiexec_LDFLAGS = $(mpllibdir)
|
|
Packit Service |
c5cf8c |
EXTRA_src_pm_remshell_mpiexec_DEPENDENCIES = $(mpllib)
|
|
Packit Service |
c5cf8c |
# we may not want to add AM_CPPFLAGS for this program
|
|
Packit Service |
c5cf8c |
src_pm_remshell_mpiexec_CPPFLAGS = $(common_pm_includes) $(AM_CPPFLAGS)
|
|
Packit Service |
c5cf8c |
else !PRIMARY_PM_REMSHELL
|
|
Packit Service |
c5cf8c |
bin_PROGRAMS += src/pm/remshell/mpiexec.remshell
|
|
Packit Service |
c5cf8c |
src_pm_remshell_mpiexec_remshell_SOURCES = src/pm/remshell/mpiexec.c
|
|
Packit Service |
c5cf8c |
src_pm_remshell_mpiexec_remshell_LDADD = src/pm/util/libmpiexec.la $(mpllib)
|
|
Packit Service |
c5cf8c |
src_pm_remshell_mpiexec_remshell_LDFLAGS = $(mpllibdir)
|
|
Packit Service |
c5cf8c |
EXTRA_src_pm_remshell_mpiexec_remshell_DEPENDENCIES = $(mpllib)
|
|
Packit Service |
c5cf8c |
# we may not want to add AM_CPPFLAGS for this program
|
|
Packit Service |
c5cf8c |
src_pm_remshell_mpiexec_remshell_CPPFLAGS = $(common_pm_includes) $(AM_CPPFLAGS)
|
|
Packit Service |
c5cf8c |
endif !PRIMARY_PM_REMSHELL
|
|
Packit Service |
c5cf8c |
endif BUILD_PM_REMSHELL
|