summaryrefslogtreecommitdiffstats
path: root/daemons/controld/Makefile.am
blob: 131209038af286e1b59ef7205b50ba814576e341 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
#
# Copyright 2018-2023 the Pacemaker project contributors
#
# The version control history for this file may have further details.
#
# This source code is licensed under the GNU General Public License version 2
# or later (GPLv2+) WITHOUT ANY WARRANTY.
#

include $(top_srcdir)/mk/common.mk
include $(top_srcdir)/mk/man.mk

halibdir	= $(CRM_DAEMON_DIR)

halib_PROGRAMS	= pacemaker-controld

noinst_HEADERS	= $(wildcard *.h)

pacemaker_controld_CFLAGS	= $(CFLAGS_HARDENED_EXE)
pacemaker_controld_LDFLAGS	= $(LDFLAGS_HARDENED_EXE)

pacemaker_controld_LDADD = $(top_builddir)/lib/pacemaker/libpacemaker.la
pacemaker_controld_LDADD += $(top_builddir)/lib/cib/libcib.la
pacemaker_controld_LDADD += $(top_builddir)/lib/pengine/libpe_rules.la
pacemaker_controld_LDADD += $(top_builddir)/lib/fencing/libstonithd.la
pacemaker_controld_LDADD += $(top_builddir)/lib/cluster/libcrmcluster.la
pacemaker_controld_LDADD += $(top_builddir)/lib/lrmd/liblrmd.la
pacemaker_controld_LDADD += $(top_builddir)/lib/services/libcrmservice.la
pacemaker_controld_LDADD += $(top_builddir)/lib/common/libcrmcommon.la
pacemaker_controld_LDADD += $(CLUSTERLIBS)

pacemaker_controld_SOURCES = pacemaker-controld.c	\
			     controld_alerts.c		\
			     controld_attrd.c		\
			     controld_callbacks.c	\
			     controld_cib.c		\
			     controld_control.c		\
			     controld_corosync.c	\
			     controld_election.c	\
			     controld_execd.c		\
			     controld_execd_state.c	\
			     controld_fencing.c		\
			     controld_fsa.c		\
			     controld_join_client.c	\
			     controld_join_dc.c		\
			     controld_matrix.c		\
			     controld_membership.c	\
			     controld_messages.c	\
			     controld_metadata.c	\
			     controld_remote_ra.c	\
			     controld_schedulerd.c	\
			     controld_te_actions.c	\
			     controld_te_callbacks.c	\
			     controld_te_events.c	\
			     controld_te_utils.c	\
			     controld_throttle.c	\
			     controld_timers.c		\
			     controld_transition.c	\
			     controld_utils.c

if BUILD_XML_HELP
man7_MANS 	= pacemaker-controld.7
endif

CLEANFILES = $(man7_MANS)

if BUILD_LEGACY_LINKS
.PHONY: install-exec-hook
install-exec-hook:
	cd $(DESTDIR)$(CRM_DAEMON_DIR) && rm -f crmd && $(LN_S) pacemaker-controld crmd

.PHONY: uninstall-hook
uninstall-hook:
	cd $(DESTDIR)$(CRM_DAEMON_DIR) && rm -f crmd
endif