summaryrefslogtreecommitdiffstats
path: root/daemons/controld/Makefile.am
blob: 08be1ffbaaa32770d96dde613a9e6f3ad7c0e874 (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
76
77
78
79
80
81
82
83
84
85
86
87
#
# 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	= controld_alerts.h		\
		  controld_callbacks.h		\
		  controld_cib.h		\
		  controld_fencing.h		\
		  controld_fsa.h		\
		  controld_globals.h		\
		  controld_lrm.h		\
		  controld_membership.h		\
		  controld_messages.h		\
		  controld_metadata.h		\
		  controld_throttle.h		\
		  controld_timers.h		\
		  controld_transition.h		\
		  controld_utils.h		\
		  pacemaker-controld.h

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

pacemaker_controld_LDADD = $(top_builddir)/lib/fencing/libstonithd.la		\
			   $(top_builddir)/lib/pacemaker/libpacemaker.la \
			   $(top_builddir)/lib/pengine/libpe_rules.la		\
			   $(top_builddir)/lib/cib/libcib.la			\
			   $(top_builddir)/lib/cluster/libcrmcluster.la		\
			   $(top_builddir)/lib/common/libcrmcommon.la		\
			   $(top_builddir)/lib/services/libcrmservice.la	\
			   $(top_builddir)/lib/lrmd/liblrmd.la			\
			   $(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
install-exec-hook:
	cd $(DESTDIR)$(CRM_DAEMON_DIR) && rm -f crmd && $(LN_S) pacemaker-controld crmd

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