| # |
| # Copyright (C) 2004-2009 Andrew Beekhof |
| # |
| # This program is free software; you can redistribute it and/or |
| # modify it under the terms of the GNU General Public License |
| # as published by the Free Software Foundation; either version 2 |
| # of the License, or (at your option) any later version. |
| # |
| # This program is distributed in the hope that it will be useful, |
| # but WITHOUT ANY WARRANTY; without even the implied warranty of |
| # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| # GNU General Public License for more details. |
| # |
| # You should have received a copy of the GNU General Public License |
| # along with this program; if not, write to the Free Software |
| # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
| # |
| include $(top_srcdir)/Makefile.common |
| |
| if BUILD_SYSTEMD |
| systemdsystemunit_DATA = crm_mon.service |
| endif |
| |
| COMMONLIBS = \ |
| $(top_builddir)/lib/common/libcrmcommon.la \ |
| $(top_builddir)/lib/cib/libcib.la \ |
| $(CURSESLIBS) $(CLUSTERLIBS) |
| |
| noinst_HEADERS = crm_resource.h fake_transition.h |
| |
| pcmkdir = $(datadir)/$(PACKAGE) |
| pcmk_DATA = report.common report.collector |
| |
| sbin_SCRIPTS = crm_report |
| if BUILD_CIBSECRETS |
| sbin_SCRIPTS += cibsecret |
| endif |
| noinst_SCRIPTS = pcmk_simtimes |
| dist_sbin_SCRIPTS = crm_standby crm_master crm_failcount |
| |
| EXTRA_DIST = crm_mon.sysconfig |
| |
| sbin_PROGRAMS = crm_simulate crmadmin cibadmin crm_node crm_attribute crm_resource crm_verify \ |
| crm_shadow attrd_updater crm_diff crm_mon iso8601 crm_ticket crm_error |
| |
| testdir = $(datadir)/$(PACKAGE)/tests/cli |
| dist_test_SCRIPTS = regression.sh |
| dist_test_DATA = regression.dates.exp \ |
| regression.tools.exp \ |
| regression.acls.exp \ |
| regression.validity.exp \ |
| crm_diff_new.xml \ |
| crm_diff_old.xml |
| |
| if BUILD_HEARTBEAT_SUPPORT |
| sbin_PROGRAMS += crm_uuid |
| endif |
| if BUILD_SERVICELOG |
| sbin_PROGRAMS += notifyServicelogEvent |
| endif |
| if BUILD_OPENIPMI_SERVICELOG |
| sbin_PROGRAMS += ipmiservicelogd |
| endif |
| |
| ## SOURCES |
| |
| # A few tools are just thin wrappers around crm_attribute. |
| # This makes their help get updated when crm_attribute changes |
| # (see Makefile.common). |
| MAN8DEPS = crm_attribute |
| |
| crmadmin_SOURCES = crmadmin.c |
| crmadmin_LDADD = $(top_builddir)/lib/pengine/libpe_status.la \ |
| $(COMMONLIBS) $(CLUSTERLIBS) |
| |
| crm_error_SOURCES = crm_error.c |
| crm_error_LDADD = $(COMMONLIBS) |
| |
| crm_uuid_SOURCES = crm_uuid.c |
| crm_uuid_LDADD = $(COMMONLIBS) $(top_builddir)/lib/cluster/libcrmcluster.la |
| |
| cibadmin_SOURCES = cibadmin.c |
| cibadmin_LDADD = $(COMMONLIBS) |
| |
| crm_shadow_SOURCES = cib_shadow.c |
| crm_shadow_LDADD = $(COMMONLIBS) |
| |
| crm_node_SOURCES = crm_node.c |
| crm_node_LDADD = $(top_builddir)/lib/cluster/libcrmcluster.la \ |
| $(COMMONLIBS) $(CLUSTERLIBS) |
| |
| crm_simulate_SOURCES = crm_simulate.c fake_transition.c |
| crm_simulate_CFLAGS = -I$(top_srcdir)/pengine |
| |
| crm_simulate_LDADD = $(top_builddir)/lib/pengine/libpe_status.la \ |
| $(top_builddir)/pengine/libpengine.la \ |
| $(top_builddir)/lib/cib/libcib.la \ |
| $(top_builddir)/lib/lrmd/liblrmd.la \ |
| $(top_builddir)/lib/transition/libtransitioner.la \ |
| $(COMMONLIBS) |
| |
| crm_diff_SOURCES = crm_diff.c |
| crm_diff_LDADD = $(COMMONLIBS) |
| |
| crm_mon_SOURCES = crm_mon.c |
| crm_mon_LDADD = $(top_builddir)/lib/pengine/libpe_status.la \ |
| $(top_builddir)/lib/fencing/libstonithd.la \ |
| $(top_builddir)/pengine/libpengine.la \ |
| $(COMMONLIBS) $(SNMPLIBS) $(ESMTPLIBS) |
| |
| crm_verify_SOURCES = crm_verify.c |
| crm_verify_LDADD = $(top_builddir)/lib/pengine/libpe_status.la \ |
| $(top_builddir)/pengine/libpengine.la \ |
| $(COMMONLIBS) |
| |
| crm_attribute_SOURCES = crm_attribute.c |
| crm_attribute_LDADD = $(top_builddir)/lib/cluster/libcrmcluster.la $(COMMONLIBS) |
| |
| crm_resource_SOURCES = crm_resource.c crm_resource_ban.c crm_resource_runtime.c crm_resource_print.c fake_transition.c |
| crm_resource_CFLAGS = -I$(top_srcdir)/pengine |
| crm_resource_LDADD = $(top_builddir)/lib/pengine/libpe_rules.la \ |
| $(top_builddir)/lib/lrmd/liblrmd.la \ |
| $(top_builddir)/lib/services/libcrmservice.la \ |
| $(top_builddir)/lib/pengine/libpe_status.la \ |
| $(top_builddir)/pengine/libpengine.la \ |
| $(top_builddir)/lib/transition/libtransitioner.la \ |
| $(COMMONLIBS) |
| |
| iso8601_SOURCES = test.iso8601.c |
| iso8601_LDADD = $(COMMONLIBS) |
| |
| attrd_updater_SOURCES = attrd_updater.c |
| attrd_updater_LDADD = $(COMMONLIBS) |
| |
| crm_ticket_SOURCES = crm_ticket.c |
| crm_ticket_LDADD = $(top_builddir)/lib/pengine/libpe_rules.la \ |
| $(top_builddir)/lib/pengine/libpe_status.la \ |
| $(top_builddir)/pengine/libpengine.la \ |
| $(COMMONLIBS) |
| |
| if BUILD_SERVICELOG |
| notifyServicelogEvent_SOURCES = notifyServicelogEvent.c |
| notifyServicelogEvent_CFLAGS = $(SERVICELOG_CFLAGS) |
| notifyServicelogEvent_LDADD = $(top_builddir)/lib/common/libcrmcommon.la $(SERVICELOG_LIBS) |
| endif |
| |
| if BUILD_OPENIPMI_SERVICELOG |
| ipmiservicelogd_SOURCES = ipmiservicelogd.c |
| ipmiservicelogd_CFLAGS = $(OPENIPMI_SERVICELOG_CFLAGS) $(SERVICELOG_CFLAGS) |
| ipmiservicelogd_LDFLAGS = $(top_builddir)/lib/common/libcrmcommon.la $(OPENIPMI_SERVICELOG_LIBS) $(SERVICELOG_LIBS) |
| endif |
| |
| CLEANFILES = $(man8_MANS) |