1## -*- Mode: Makefile; -*-
2## vim: set ft=automake :
3##
4## (C) 2011 by Argonne National Laboratory.
5##     See COPYRIGHT in top-level directory.
6##
7
8# util comes first, sets some variables that may be used by each process
9# manager's Makefile.mk
10include $(top_srcdir)/src/pm/util/Makefile.mk
11
12include $(top_srcdir)/src/pm/gforker/Makefile.mk
13include $(top_srcdir)/src/pm/smpd/Makefile.mk
14include $(top_srcdir)/src/pm/remshell/Makefile.mk
15
16## a note about DIST_SUBDIRS:
17## We conditionally add DIST_SUBDIRS entries because we conditionally configure
18## these subdirectories.  See the automake manual's "Unconfigured
19## Subdirectories" section, which lists this rule: "Any directory listed in
20## DIST_SUBDIRS and SUBDIRS must be configured."
21##
22## The implication for "make dist" and friends is that we should only "make
23## dist" in a tree that has been configured to enable to directories that we
24## want to distribute.  Because of this, we will probably need to continue using
25## the release.pl script because various SUBDIRS are incompatible with each
26## other.
27
28# has its own full automake setup, not Makefile.mk
29if BUILD_PM_HYDRA
30SUBDIRS += src/pm/hydra
31DIST_SUBDIRS += src/pm/hydra
32endif BUILD_PM_HYDRA
33
34# uses a separate Makefile.sm, not Makefile.mk
35if BUILD_PM_MPD
36SUBDIRS += src/pm/mpd
37DIST_SUBDIRS += src/pm/mpd
38endif BUILD_PM_MPD
39
40## FIXME TEMPORARY
41EXTRA_DIST += src/pm/smpd/smpd_version.h
42