summaryrefslogtreecommitdiffstats
path: root/daemons/pacemakerd/Makefile.am
blob: 7571a6c1dd89de45e58d01bf837f7953c1eefd9e (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
#
# Copyright 2004-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

sbin_PROGRAMS		= pacemakerd

if BUILD_SYSTEMD
systemdsystemunit_DATA	= pacemaker.service
endif

EXTRA_DIST 	= pacemakerd.8.inc

## SOURCES

noinst_HEADERS		= pacemakerd.h \
			  pcmkd_corosync.h

pacemakerd_CFLAGS	= $(CFLAGS_HARDENED_EXE)
pacemakerd_LDFLAGS	= $(LDFLAGS_HARDENED_EXE)

pacemakerd_LDADD = $(top_builddir)/lib/cluster/libcrmcluster.la
pacemakerd_LDADD += $(top_builddir)/lib/common/libcrmcommon.la
pacemakerd_LDADD += $(CLUSTERLIBS)

pacemakerd_SOURCES	= pacemakerd.c
if BUILD_CS_SUPPORT
pacemakerd_SOURCES	+= pcmkd_corosync.c
endif
pacemakerd_SOURCES	+= pcmkd_messages.c
pacemakerd_SOURCES	+= pcmkd_subdaemons.c

CLEANFILES = $(man8_MANS)