Blame SOURCES/002-build-cleanup.patch

fada68
From f4305372f80faafb5a1856f68b06c4dd87f8f521 Mon Sep 17 00:00:00 2001
fada68
From: =?UTF-8?q?Jan=20Pokorn=C3=BD?= <jpokorny@redhat.com>
fada68
Date: Fri, 17 Jun 2016 21:47:34 +0200
fada68
Subject: [PATCH 1/3] Build: drop acinclude.m4 never ever used by pacemaker
fada68
 proper
fada68
fada68
It was rather used by the management tool being part of heartbeat
fada68
project -- pacemaker's precursor -- hence the shared codebase that
fada68
just wasn't split carefully.
fada68
fada68
[note that hearbeat also mistakenly carries that file along while
fada68
 the reason disappeared as of:
fada68
 http://hg.linux-ha.org/heartbeat-STABLE_3_0/rev/cf17a3d4167b#l1.39]
fada68
---
fada68
 acinclude.m4 | 39 ---------------------------------------
fada68
 1 file changed, 39 deletions(-)
fada68
 delete mode 100644 acinclude.m4
fada68
fada68
diff --git a/acinclude.m4 b/acinclude.m4
fada68
deleted file mode 100644
fada68
index fa8fef2..0000000
fada68
--- a/acinclude.m4
fada68
+++ /dev/null
fada68
@@ -1,39 +0,0 @@
fada68
-dnl
fada68
-dnl local autoconf/automake macros needed for heartbeat
fada68
-dnl	Started by David Lee <t.d.lee@durham.ac.uk> February 2006
fada68
-dnl
fada68
-dnl License: GNU General Public License (GPL)
fada68
-
fada68
-
fada68
-dnl AM_CHECK_PYTHON_HEADERS:  Find location of python include files.
fada68
-dnl Taken from:
fada68
-dnl	http://source.macgimp.org/
fada68
-dnl which is GPL and is attributed to James Henstridge.
fada68
-dnl
fada68
-dnl AM_CHECK_PYTHON_HEADERS([ACTION-IF-POSSIBLE], [ACTION-IF-NOT-POSSIBLE])
fada68
-dnl Imports:
fada68
-dnl	$PYTHON
fada68
-dnl Exports:
fada68
-dnl	PYTHON_INCLUDES
fada68
-
fada68
-AC_DEFUN([AM_CHECK_PYTHON_HEADERS],
fada68
-[AC_REQUIRE([AM_PATH_PYTHON])
fada68
-AC_MSG_CHECKING(for headers required to compile python extensions)
fada68
-dnl deduce PYTHON_INCLUDES
fada68
-py_prefix=`$PYTHON -c "import sys; print sys.prefix"`
fada68
-py_exec_prefix=`$PYTHON -c "import sys; print sys.exec_prefix"`
fada68
-PYTHON_INCLUDES="-I${py_prefix}/include/python${PYTHON_VERSION}"
fada68
-if test "$py_prefix" != "$py_exec_prefix"; then
fada68
-  PYTHON_INCLUDES="$PYTHON_INCLUDES -I${py_exec_prefix}/include/python${PYTHON_VERSION}"
fada68
-fi
fada68
-AC_SUBST(PYTHON_INCLUDES)
fada68
-dnl check if the headers exist:
fada68
-save_CPPFLAGS="$CPPFLAGS"
fada68
-CPPFLAGS="$CPPFLAGS $PYTHON_INCLUDES"
fada68
-AC_TRY_CPP([#include <Python.h>],dnl
fada68
-[AC_MSG_RESULT(found)
fada68
-$1],dnl
fada68
-[AC_MSG_RESULT(not found)
fada68
-$2])
fada68
-CPPFLAGS="$save_CPPFLAGS"
fada68
-])
fada68
-- 
fada68
1.8.3.1
fada68
fada68
fada68
From 4e0d5c81dae95be2bd3598d2f0dd639b64e5486a Mon Sep 17 00:00:00 2001
fada68
From: =?UTF-8?q?Jan=20Pokorn=C3=BD?= <jpokorny@redhat.com>
fada68
Date: Fri, 17 Jun 2016 22:59:42 +0200
fada68
Subject: [PATCH 2/3] Build: configure.ac: drop unused CC_ERRORS, move
fada68
 CC_EXTRAS
fada68
fada68
... so as not to delimit the comment and respective code with unrelated
fada68
stuff.
fada68
---
fada68
 configure.ac | 6 ++----
fada68
 1 file changed, 2 insertions(+), 4 deletions(-)
fada68
fada68
diff --git a/configure.ac b/configure.ac
fada68
index 1a393fc..c5b30dc 100644
fada68
--- a/configure.ac
fada68
+++ b/configure.ac
fada68
@@ -1703,10 +1703,6 @@ dnl not have CFLAGS in their environment then this should have
fada68
 dnl no effect. However if CFLAGS was exported from the user's
fada68
 dnl environment, then the new CFLAGS will also be exported
fada68
 dnl to sub processes.
fada68
-
fada68
-CC_ERRORS=""
fada68
-CC_EXTRAS=""
fada68
-
fada68
 if export | fgrep " CFLAGS=" > /dev/null; then
fada68
 	SAVED_CFLAGS="$CFLAGS"
fada68
 	unset CFLAGS
fada68
@@ -1714,6 +1710,8 @@ if export | fgrep " CFLAGS=" > /dev/null; then
fada68
 	unset SAVED_CFLAGS
fada68
 fi
fada68
 
fada68
+CC_EXTRAS=""
fada68
+
fada68
 if test "$GCC" != yes; then
fada68
         CFLAGS="$CFLAGS -g"
fada68
 	enable_fatal_warnings=no
fada68
-- 
fada68
1.8.3.1
fada68
fada68
fada68
From 9632cd73b758dd4d41c2dbf2b9f10679cc3ee1a2 Mon Sep 17 00:00:00 2001
fada68
From: =?UTF-8?q?Jan=20Pokorn=C3=BD?= <jpokorny@redhat.com>
fada68
Date: Tue, 21 Jun 2016 19:05:52 +0200
fada68
Subject: [PATCH 3/3] Refactor: sanitizing touch on makefiles about to receive
fada68
 hardening
fada68
fada68
* whitespace cleanup
fada68
* internally provided -D... and -I... switches belong to CPPFLAGS rather
fada68
  than CFLAGS
fada68
* use a following order of the per-target flags:
fada68
  - CPPFLAGS
fada68
  - YFLAGS
fada68
  - CFLAGS
fada68
  - LDFLAGS
fada68
  - LDADD/LIBADD
fada68
  - SOURCES
fada68
fada68
This is in part to reflect common conditional inclusion of additional
fada68
sources (which should preferably immediately follow the main SOURCES
fada68
definition) sometimes connected with extending other flags as well.
fada68
---
fada68
 attrd/Makefile.am          | 12 ++++++------
fada68
 cib/Makefile.am            | 18 +++++++++---------
fada68
 crmd/Makefile.am           | 31 +++++++++++++++----------------
fada68
 fencing/Makefile.am        | 30 ++++++++++++++++--------------
fada68
 lib/cib/Makefile.am        |  9 +++++----
fada68
 lib/cluster/Makefile.am    |  3 +--
fada68
 lib/common/Makefile.am     |  8 ++++----
fada68
 lib/fencing/Makefile.am    |  8 ++++----
fada68
 lib/lrmd/Makefile.am       | 10 +++++-----
fada68
 lib/pengine/Makefile.am    | 12 ++++++------
fada68
 lib/services/Makefile.am   | 24 ++++++++++++------------
fada68
 lib/transition/Makefile.am |  9 +++++----
fada68
 lrmd/Makefile.am           | 46 ++++++++++++++++++++++------------------------
fada68
 mcp/Makefile.am            |  4 ++--
fada68
 pengine/Makefile.am        | 16 +++++++---------
fada68
 15 files changed, 119 insertions(+), 121 deletions(-)
fada68
fada68
diff --git a/attrd/Makefile.am b/attrd/Makefile.am
fada68
index 9a841e5..a116e0e 100644
fada68
--- a/attrd/Makefile.am
fada68
+++ b/attrd/Makefile.am
fada68
@@ -17,16 +17,16 @@
fada68
 #
fada68
 include $(top_srcdir)/Makefile.common
fada68
 
fada68
-halibdir		= $(CRM_DAEMON_DIR)
fada68
-halib_PROGRAMS		= attrd
fada68
+halibdir	= $(CRM_DAEMON_DIR)
fada68
+halib_PROGRAMS	= attrd
fada68
 ## SOURCES
fada68
 
fada68
-attrd_SOURCES		=
fada68
-attrd_LDADD	= $(top_builddir)/lib/cluster/libcrmcluster.la 		\
fada68
-		$(top_builddir)/lib/common/libcrmcommon.la		\
fada68
-		$(top_builddir)/lib/cib/libcib.la			\
fada68
+attrd_LDADD	= $(top_builddir)/lib/cluster/libcrmcluster.la	\
fada68
+		$(top_builddir)/lib/common/libcrmcommon.la	\
fada68
+		$(top_builddir)/lib/cib/libcib.la		\
fada68
 		$(CLUSTERLIBS)
fada68
 
fada68
+attrd_SOURCES	=
fada68
 if BUILD_ATOMIC_ATTRD
fada68
 attrd_SOURCES	+= main.c commands.c
fada68
 else
fada68
diff --git a/cib/Makefile.am b/cib/Makefile.am
fada68
index 8508223..fcb8ce9 100644
fada68
--- a/cib/Makefile.am
fada68
+++ b/cib/Makefile.am
fada68
@@ -23,23 +23,23 @@ hadir		= $(sysconfdir)/ha.d
fada68
 halibdir	= $(CRM_DAEMON_DIR)
fada68
 commmoddir	= $(halibdir)/modules/comm
fada68
 
fada68
-COMMONLIBS	= $(top_builddir)/lib/common/libcrmcommon.la	\
fada68
-		  $(top_builddir)/lib/cib/libcib.la
fada68
+COMMONLIBS	= $(top_builddir)/lib/common/libcrmcommon.la \
fada68
+		$(top_builddir)/lib/cib/libcib.la
fada68
 
fada68
 ## binary progs
fada68
 halib_PROGRAMS	= cib cibmon
fada68
 
fada68
 ## SOURCES
fada68
-noinst_HEADERS          = callbacks.h cibio.h cibmessages.h common.h notify.h
fada68
+noinst_HEADERS	= callbacks.h cibio.h cibmessages.h common.h notify.h
fada68
 
fada68
-cib_SOURCES		= io.c messages.c notify.c	\
fada68
-			callbacks.c main.c remote.c common.c
fada68
+cib_LDADD	= $(top_builddir)/lib/cluster/libcrmcluster.la \
fada68
+		$(COMMONLIBS) $(CRYPTOLIB) $(CLUSTERLIBS)
fada68
 
fada68
-cib_LDADD		= $(top_builddir)/lib/cluster/libcrmcluster.la \
fada68
-			  $(COMMONLIBS) $(CRYPTOLIB) $(CLUSTERLIBS)
fada68
+cib_SOURCES	= io.c messages.c notify.c \
fada68
+		callbacks.c main.c remote.c common.c
fada68
 
fada68
-cibmon_SOURCES		= cibmon.c
fada68
-cibmon_LDADD		= $(COMMONLIBS)
fada68
+cibmon_LDADD	= $(COMMONLIBS)
fada68
+cibmon_SOURCES	= cibmon.c
fada68
 
fada68
 clean-generic:
fada68
 	rm -f *.log *.debug *.xml *~
fada68
diff --git a/crmd/Makefile.am b/crmd/Makefile.am
fada68
index c28da0b..979e266 100644
fada68
--- a/crmd/Makefile.am
fada68
+++ b/crmd/Makefile.am
fada68
@@ -24,20 +24,10 @@ halib_PROGRAMS	= crmd
fada68
 
fada68
 ## SOURCES
fada68
 
fada68
-noinst_HEADERS	= crmd.h crmd_fsa.h crmd_messages.h fsa_defines.h 	\
fada68
-		fsa_matrix.h fsa_proto.h crmd_utils.h crmd_callbacks.h \
fada68
+noinst_HEADERS	= crmd.h crmd_fsa.h crmd_messages.h fsa_defines.h	\
fada68
+		fsa_matrix.h fsa_proto.h crmd_utils.h crmd_callbacks.h	\
fada68
 		crmd_lrm.h te_callbacks.h tengine.h
fada68
 
fada68
-crmd_SOURCES	= main.c crmd.c corosync.c notify.c				\
fada68
-		fsa.c control.c messages.c membership.c callbacks.c		\
fada68
-		election.c join_client.c join_dc.c subsystems.c throttle.c	\
fada68
-		cib.c pengine.c tengine.c lrm.c lrm_state.c remote_lrmd_ra.c	\
fada68
-		utils.c misc.c te_events.c te_actions.c te_utils.c te_callbacks.c
fada68
-
fada68
-if BUILD_HEARTBEAT_SUPPORT
fada68
-crmd_SOURCES += heartbeat.c
fada68
-endif
fada68
-
fada68
 crmd_LDADD	= $(top_builddir)/lib/fencing/libstonithd.la		\
fada68
 		$(top_builddir)/lib/transition/libtransitioner.la	\
fada68
 		$(top_builddir)/lib/pengine/libpe_rules.la		\
fada68
@@ -45,19 +35,28 @@ crmd_LDADD	= $(top_builddir)/lib/fencing/libstonithd.la		\
fada68
 		$(top_builddir)/lib/cluster/libcrmcluster.la		\
fada68
 		$(top_builddir)/lib/common/libcrmcommon.la		\
fada68
 		$(top_builddir)/lib/services/libcrmservice.la		\
fada68
-		$(top_builddir)/lib/lrmd/liblrmd.la		\
fada68
+		$(top_builddir)/lib/lrmd/liblrmd.la			\
fada68
 		$(CLUSTERLIBS)
fada68
 
fada68
+crmd_SOURCES	= main.c crmd.c corosync.c notify.c				\
fada68
+		fsa.c control.c messages.c membership.c callbacks.c		\
fada68
+		election.c join_client.c join_dc.c subsystems.c throttle.c	\
fada68
+		cib.c pengine.c tengine.c lrm.c lrm_state.c remote_lrmd_ra.c	\
fada68
+		utils.c misc.c te_events.c te_actions.c te_utils.c te_callbacks.c
fada68
+if BUILD_HEARTBEAT_SUPPORT
fada68
+crmd_SOURCES += heartbeat.c
fada68
+endif
fada68
+
fada68
 if BUILD_XML_HELP
fada68
-man7_MANS =	crmd.7
fada68
+man7_MANS 	= crmd.7
fada68
 endif
fada68
 
fada68
-graphs:	fsa_inputs.png fsa_inputs_by_action.png fsa_actions_by_state.png
fada68
+graphs: fsa_inputs.png fsa_inputs_by_action.png fsa_actions_by_state.png
fada68
 
fada68
 %.png: %.dot
fada68
 	dot -Tpng $< > $@ 
fada68
 
fada68
-%.dot : fsa_matrix.h make_dot.pl
fada68
+%.dot: fsa_matrix.h make_dot.pl
fada68
 	perl $(top_srcdir)/crmd/make_dot.pl $(top_srcdir)/crmd/fsa_matrix.h $(top_builddir)/crmd
fada68
 
fada68
 CLEANFILES = $(man7_MANS)
fada68
diff --git a/fencing/Makefile.am b/fencing/Makefile.am
fada68
index 79fe2ed..1d591fc 100644
fada68
--- a/fencing/Makefile.am
fada68
+++ b/fencing/Makefile.am
fada68
@@ -24,13 +24,13 @@ test_SCRIPTS		= regression.py
fada68
 halibdir	= $(CRM_DAEMON_DIR)
fada68
 halib_PROGRAMS	= stonithd stonith-test
fada68
 
fada68
-sbin_PROGRAMS  = stonith_admin
fada68
-sbin_SCRIPTS   = fence_legacy fence_pcmk
fada68
+sbin_PROGRAMS	= stonith_admin
fada68
+sbin_SCRIPTS	= fence_legacy fence_pcmk
fada68
 
fada68
-noinst_HEADERS = internal.h
fada68
+noinst_HEADERS	= internal.h
fada68
 
fada68
 if BUILD_XML_HELP
fada68
-man7_MANS =	stonithd.7
fada68
+man7_MANS	= stonithd.7
fada68
 endif
fada68
 
fada68
 stonith_test_SOURCES	= test.c
fada68
@@ -49,23 +49,25 @@ stonith_admin_LDADD	= $(top_builddir)/lib/common/libcrmcommon.la	\
fada68
 			$(top_builddir)/lib/fencing/libstonithd.la	\
fada68
 			$(CRYPTOLIB) $(CLUSTERLIBS)
fada68
 
fada68
-stonithd_CFLAGS		= -I$(top_srcdir)/pengine
fada68
-stonithd_SOURCES	= main.c commands.c remote.c
fada68
-if BUILD_STONITH_CONFIG
fada68
-BUILT_SOURCES 		= standalone_config.h
fada68
-
fada68
-stonithd_SOURCES	+= standalone_config.c config.y config.l
fada68
-stonithd_AM_LFLAGS 	= -o$(LEX_OUTPUT_ROOT).c
fada68
-endif
fada68
-stonithd_YFLAGS 	= -d
fada68
+stonithd_CPPFLAGS	= -I$(top_srcdir)/pengine $(AM_CPPFLAGS)
fada68
+stonithd_YFLAGS		= -d
fada68
 
fada68
 stonithd_LDADD		= $(top_builddir)/lib/common/libcrmcommon.la	\
fada68
 			$(top_builddir)/lib/cluster/libcrmcluster.la	\
fada68
 			$(top_builddir)/lib/fencing/libstonithd.la	\
fada68
 			$(top_builddir)/lib/pengine/libpe_status.la	\
fada68
-			$(top_builddir)/pengine/libpengine.la	\
fada68
+			$(top_builddir)/pengine/libpengine.la		\
fada68
 			$(CRYPTOLIB) $(CLUSTERLIBS)
fada68
 
fada68
+stonithd_SOURCES	= main.c commands.c remote.c
fada68
+
fada68
+if BUILD_STONITH_CONFIG
fada68
+BUILT_SOURCES 		= standalone_config.h
fada68
+
fada68
+stonithd_SOURCES	+= standalone_config.c config.y config.l
fada68
+stonithd_AM_LFLAGS	= -o$(LEX_OUTPUT_ROOT).c
fada68
+endif
fada68
+
fada68
 # lex/yacc issues:
fada68
 CFLAGS			= $(CFLAGS_COPY:-Werror=)
fada68
 
fada68
diff --git a/lib/cib/Makefile.am b/lib/cib/Makefile.am
fada68
index 0c57eee..e414a7f 100644
fada68
--- a/lib/cib/Makefile.am
fada68
+++ b/lib/cib/Makefile.am
fada68
@@ -18,15 +18,16 @@
fada68
 include $(top_srcdir)/Makefile.common
fada68
 
fada68
 ## libraries
fada68
-lib_LTLIBRARIES	= libcib.la
fada68
+lib_LTLIBRARIES		= libcib.la
fada68
 
fada68
 ## SOURCES
fada68
 libcib_la_SOURCES	= cib_ops.c cib_utils.c cib_client.c cib_native.c cib_attrs.c
fada68
-libcib_la_SOURCES      += cib_file.c cib_remote.c
fada68
+libcib_la_SOURCES	+= cib_file.c cib_remote.c
fada68
 
fada68
 libcib_la_LDFLAGS	= -version-info 5:1:1
fada68
-libcib_la_LIBADD        = $(CRYPTOLIB) $(top_builddir)/lib/pengine/libpe_rules.la $(top_builddir)/lib/common/libcrmcommon.la
fada68
-libcib_la_CFLAGS	= -I$(top_srcdir)
fada68
+libcib_la_CPPFLAGS	= -I$(top_srcdir) $(AM_CPPFLAGS)
fada68
+
fada68
+libcib_la_LIBADD	= $(CRYPTOLIB) $(top_builddir)/lib/pengine/libpe_rules.la $(top_builddir)/lib/common/libcrmcommon.la
fada68
 
fada68
 clean-generic:
fada68
 	rm -f *.log *.debug *.xml *~
fada68
diff --git a/lib/cluster/Makefile.am b/lib/cluster/Makefile.am
fada68
index ffa2a73..06d7066 100644
fada68
--- a/lib/cluster/Makefile.am
fada68
+++ b/lib/cluster/Makefile.am
fada68
@@ -20,10 +20,10 @@ include $(top_srcdir)/Makefile.common
fada68
 ## libraries
fada68
 lib_LTLIBRARIES	= libcrmcluster.la 
fada68
 
fada68
-libcrmcluster_la_SOURCES = election.c cluster.c membership.c
fada68
 libcrmcluster_la_LDFLAGS = -version-info 6:0:2
fada68
 libcrmcluster_la_LIBADD  = $(top_builddir)/lib/common/libcrmcommon.la $(top_builddir)/lib/fencing/libstonithd.la $(CLUSTERLIBS)
fada68
 
fada68
+libcrmcluster_la_SOURCES = election.c cluster.c membership.c
fada68
 if BUILD_CS_SUPPORT
fada68
 libcrmcluster_la_SOURCES += cpg.c
fada68
 if BUILD_CS_PLUGIN
fada68
@@ -32,7 +32,6 @@ else
fada68
 libcrmcluster_la_SOURCES += corosync.c
fada68
 endif
fada68
 endif
fada68
-
fada68
 if BUILD_HEARTBEAT_SUPPORT
fada68
 libcrmcluster_la_SOURCES += heartbeat.c
fada68
 #libcrmcluster_la_LIBADD  += -ldl
fada68
diff --git a/lib/common/Makefile.am b/lib/common/Makefile.am
fada68
index 111628f..7550ec1 100644
fada68
--- a/lib/common/Makefile.am
fada68
+++ b/lib/common/Makefile.am
fada68
@@ -31,16 +31,16 @@ lib_LTLIBRARIES	= libcrmcommon.la
fada68
 
fada68
 CFLAGS		= $(CFLAGS_COPY:-Wcast-qual=) -fPIC
fada68
 
fada68
+libcrmcommon_la_LDFLAGS	= -version-info 9:0:6
fada68
+libcrmcommon_la_LIBADD	= @LIBADD_DL@ $(GNUTLSLIBS) -lm
fada68
+
fada68
 libcrmcommon_la_SOURCES	= compat.c digest.c ipc.c io.c procfs.c utils.c xml.c \
fada68
 			  iso8601.c remote.c mainloop.c logging.c watchdog.c \
fada68
 			  xpath.c
fada68
 if BUILD_CIBSECRETS
fada68
 libcrmcommon_la_SOURCES	+= cib_secrets.c
fada68
 endif
fada68
-
fada68
-libcrmcommon_la_LDFLAGS	= -version-info 9:0:6
fada68
-libcrmcommon_la_LIBADD  = @LIBADD_DL@ $(GNUTLSLIBS) -lm
fada68
-libcrmcommon_la_SOURCES += $(top_builddir)/lib/gnu/md5.c
fada68
+libcrmcommon_la_SOURCES	+= $(top_builddir)/lib/gnu/md5.c
fada68
 
fada68
 clean-generic:
fada68
 	rm -f *.log *.debug *.xml *~
fada68
diff --git a/lib/fencing/Makefile.am b/lib/fencing/Makefile.am
fada68
index a9f9874..85ae40a 100644
fada68
--- a/lib/fencing/Makefile.am
fada68
+++ b/lib/fencing/Makefile.am
fada68
@@ -18,8 +18,8 @@
fada68
 #
fada68
 include $(top_srcdir)/Makefile.common
fada68
 
fada68
-lib_LTLIBRARIES = libstonithd.la
fada68
+lib_LTLIBRARIES		= libstonithd.la
fada68
 
fada68
-libstonithd_la_SOURCES = st_client.c
fada68
-libstonithd_la_LDFLAGS = -version-info 4:1:2
fada68
-libstonithd_la_LIBADD = $(top_builddir)/lib/common/libcrmcommon.la
fada68
+libstonithd_la_LDFLAGS	= -version-info 4:1:2
fada68
+libstonithd_la_LIBADD	= $(top_builddir)/lib/common/libcrmcommon.la
fada68
+libstonithd_la_SOURCES	= st_client.c
fada68
diff --git a/lib/lrmd/Makefile.am b/lib/lrmd/Makefile.am
fada68
index c23fef5..25f3d55 100644
fada68
--- a/lib/lrmd/Makefile.am
fada68
+++ b/lib/lrmd/Makefile.am
fada68
@@ -16,10 +16,10 @@
fada68
 #
fada68
 include $(top_srcdir)/Makefile.common
fada68
 
fada68
-lib_LTLIBRARIES = liblrmd.la
fada68
+lib_LTLIBRARIES		= liblrmd.la
fada68
 
fada68
-liblrmd_la_SOURCES = lrmd_client.c proxy_common.c
fada68
-liblrmd_la_LDFLAGS = -version-info 4:0:3
fada68
-liblrmd_la_LIBADD = $(top_builddir)/lib/common/libcrmcommon.la	\
fada68
-			$(top_builddir)/lib/services/libcrmservice.la \
fada68
+liblrmd_la_LDFLAGS	= -version-info 4:0:3
fada68
+liblrmd_la_LIBADD	= $(top_builddir)/lib/common/libcrmcommon.la	\
fada68
+			$(top_builddir)/lib/services/libcrmservice.la	\
fada68
 			$(top_builddir)/lib/fencing/libstonithd.la
fada68
+liblrmd_la_SOURCES	= lrmd_client.c proxy_common.c
fada68
diff --git a/lib/pengine/Makefile.am b/lib/pengine/Makefile.am
fada68
index a0d19e5..de760c3 100644
fada68
--- a/lib/pengine/Makefile.am
fada68
+++ b/lib/pengine/Makefile.am
fada68
@@ -18,19 +18,19 @@
fada68
 include $(top_srcdir)/Makefile.common
fada68
 
fada68
 ## libraries
fada68
-lib_LTLIBRARIES	= libpe_rules.la libpe_status.la
fada68
+lib_LTLIBRARIES		= libpe_rules.la libpe_status.la
fada68
 
fada68
 ## SOURCES
fada68
-noinst_HEADERS	= unpack.h variant.h
fada68
+noinst_HEADERS		= unpack.h variant.h
fada68
 
fada68
 libpe_rules_la_LDFLAGS	= -version-info 2:6:0
fada68
-libpe_rules_la_SOURCES	= rules.c common.c
fada68
 libpe_rules_la_LIBADD	= $(top_builddir)/lib/common/libcrmcommon.la
fada68
+libpe_rules_la_SOURCES	= rules.c common.c
fada68
 
fada68
 libpe_status_la_LDFLAGS	= -version-info 11:0:1
fada68
-libpe_status_la_SOURCES	=  status.c unpack.c utils.c complex.c native.c \
fada68
-			   group.c clone.c rules.c common.c remote.c
fada68
-libpe_status_la_LIBADD	=  @CURSESLIBS@ $(top_builddir)/lib/common/libcrmcommon.la
fada68
+libpe_status_la_LIBADD	= @CURSESLIBS@ $(top_builddir)/lib/common/libcrmcommon.la
fada68
+libpe_status_la_SOURCES	= status.c unpack.c utils.c complex.c native.c \
fada68
+			group.c clone.c rules.c common.c remote.c
fada68
 
fada68
 clean-generic:
fada68
 	rm -f *.log *.debug *~
fada68
diff --git a/lib/services/Makefile.am b/lib/services/Makefile.am
fada68
index 2797b53..c789fbd 100644
fada68
--- a/lib/services/Makefile.am
fada68
+++ b/lib/services/Makefile.am
fada68
@@ -18,24 +18,24 @@
fada68
 
fada68
 MAINTAINERCLEANFILES = Makefile.in
fada68
 
fada68
-AM_CPPFLAGS         = -I$(top_builddir)/include
fada68
+AM_CPPFLAGS			= -I$(top_builddir)/include
fada68
 
fada68
-lib_LTLIBRARIES = libcrmservice.la
fada68
-noinst_HEADERS  = upstart.h systemd.h services_private.h
fada68
+lib_LTLIBRARIES			= libcrmservice.la
fada68
+noinst_HEADERS			= upstart.h systemd.h services_private.h
fada68
 
fada68
-libcrmservice_la_SOURCES = services.c services_linux.c
fada68
-libcrmservice_la_LDFLAGS = -version-info 4:1:1
fada68
-libcrmservice_la_CFLAGS  = $(GIO_CFLAGS) -DOCF_ROOT_DIR=\"@OCF_ROOT_DIR@\"
fada68
-libcrmservice_la_LIBADD  = $(GIO_LIBS) $(top_builddir)/lib/common/libcrmcommon.la $(DBUS_LIBS)
fada68
+libcrmservice_la_LDFLAGS	= -version-info 4:1:1
fada68
+libcrmservice_la_CPPFLAGS	= -DOCF_ROOT_DIR=\"@OCF_ROOT_DIR@\" $(AM_CPPFLAGS)
fada68
+libcrmservice_la_CFLAGS		= $(GIO_CFLAGS)
fada68
 
fada68
+libcrmservice_la_LIBADD		= $(GIO_LIBS) $(top_builddir)/lib/common/libcrmcommon.la $(DBUS_LIBS)
fada68
+
fada68
+libcrmservice_la_SOURCES	= services.c services_linux.c
fada68
 if BUILD_DBUS
fada68
-libcrmservice_la_SOURCES += dbus.c
fada68
+libcrmservice_la_SOURCES	+= dbus.c
fada68
 endif
fada68
-
fada68
 if BUILD_UPSTART
fada68
-libcrmservice_la_SOURCES += upstart.c
fada68
+libcrmservice_la_SOURCES	+= upstart.c
fada68
 endif
fada68
-
fada68
 if BUILD_SYSTEMD
fada68
-libcrmservice_la_SOURCES += systemd.c
fada68
+libcrmservice_la_SOURCES	+= systemd.c
fada68
 endif
fada68
diff --git a/lib/transition/Makefile.am b/lib/transition/Makefile.am
fada68
index 7bcfc1a..9bc039e 100644
fada68
--- a/lib/transition/Makefile.am
fada68
+++ b/lib/transition/Makefile.am
fada68
@@ -18,14 +18,15 @@
fada68
 include $(top_srcdir)/Makefile.common
fada68
 
fada68
 ## libraries
fada68
-lib_LTLIBRARIES	= libtransitioner.la
fada68
+lib_LTLIBRARIES			= libtransitioner.la
fada68
 
fada68
 ## SOURCES
fada68
-libtransitioner_la_SOURCES	= unpack.c graph.c utils.c
fada68
 
fada68
 libtransitioner_la_LDFLAGS	= -version-info 2:5:0
fada68
-libtransitioner_la_CFLAGS	= -I$(top_builddir)
fada68
-libtransitioner_la_LIBADD       = $(top_builddir)/lib/common/libcrmcommon.la
fada68
+libtransitioner_la_CPPFLAGS	= -I$(top_builddir) $(AM_CPPFLAGS)
fada68
+
fada68
+libtransitioner_la_LIBADD	= $(top_builddir)/lib/common/libcrmcommon.la
fada68
+libtransitioner_la_SOURCES	= unpack.c graph.c utils.c
fada68
 
fada68
 clean-generic:
fada68
 	rm -f *~
fada68
diff --git a/lrmd/Makefile.am b/lrmd/Makefile.am
fada68
index 556d48a..64df105 100644
fada68
--- a/lrmd/Makefile.am
fada68
+++ b/lrmd/Makefile.am
fada68
@@ -19,45 +19,43 @@ include $(top_srcdir)/Makefile.common
fada68
 testdir			= $(datadir)/$(PACKAGE)/tests/lrmd
fada68
 test_SCRIPTS		= regression.py
fada68
 
fada68
-lrmdlibdir	= $(CRM_DAEMON_DIR)
fada68
-lrmdlib_PROGRAMS = lrmd lrmd_test lrmd_internal_ctl
fada68
+lrmdlibdir		= $(CRM_DAEMON_DIR)
fada68
+lrmdlib_PROGRAMS	= lrmd lrmd_test lrmd_internal_ctl
fada68
 
fada68
-initdir		 = $(INITDIR)
fada68
-init_SCRIPTS	 = pacemaker_remote
fada68
-sbin_PROGRAMS	 = pacemaker_remoted
fada68
+initdir			= $(INITDIR)
fada68
+init_SCRIPTS		= pacemaker_remote
fada68
+sbin_PROGRAMS		= pacemaker_remoted
fada68
 
fada68
 if BUILD_SYSTEMD
fada68
-systemdunit_DATA = pacemaker_remote.service
fada68
+systemdunit_DATA	= pacemaker_remote.service
fada68
 endif
fada68
 
fada68
-lrmd_SOURCES	= main.c lrmd.c
fada68
 lrmd_LDADD		= $(top_builddir)/lib/common/libcrmcommon.la	\
fada68
-			$(top_builddir)/lib/services/libcrmservice.la \
fada68
-			$(top_builddir)/lib/lrmd/liblrmd.la  \
fada68
+			$(top_builddir)/lib/services/libcrmservice.la	\
fada68
+			$(top_builddir)/lib/lrmd/liblrmd.la		\
fada68
 			$(top_builddir)/lib/fencing/libstonithd.la ${COMPAT_LIBS}
fada68
+lrmd_SOURCES		= main.c lrmd.c
fada68
 
fada68
+pacemaker_remoted_CPPFLAGS	= -DSUPPORT_REMOTE $(AM_CPPFLAGS)
fada68
 
fada68
-pacemaker_remoted_SOURCES	= main.c lrmd.c tls_backend.c ipc_proxy.c
fada68
-pacemaker_remoted_CFLAGS	= -DSUPPORT_REMOTE
fada68
 pacemaker_remoted_LDADD		= $(lrmd_LDADD)
fada68
+pacemaker_remoted_SOURCES	= main.c lrmd.c tls_backend.c ipc_proxy.c
fada68
 
fada68
-
fada68
+lrmd_internal_ctl_LDADD		= $(top_builddir)/lib/common/libcrmcommon.la	\
fada68
+				$(top_builddir)/lib/lrmd/liblrmd.la		\
fada68
+				$(top_builddir)/lib/cib/libcib.la		\
fada68
+				$(top_builddir)/lib/services/libcrmservice.la	\
fada68
+				$(top_builddir)/lib/pengine/libpe_status.la	\
fada68
+				$(top_builddir)/pengine/libpengine.la
fada68
 lrmd_internal_ctl_SOURCES	= remote_ctl.c
fada68
-lrmd_internal_ctl_LDADD	= $(top_builddir)/lib/common/libcrmcommon.la	\
fada68
-			$(top_builddir)/lib/lrmd/liblrmd.la  \
fada68
-			$(top_builddir)/lib/cib/libcib.la   \
fada68
-			$(top_builddir)/lib/services/libcrmservice.la \
fada68
-			$(top_builddir)/lib/pengine/libpe_status.la \
fada68
-			$(top_builddir)/pengine/libpengine.la
fada68
 
fada68
-
fada68
-lrmd_test_SOURCES	= test.c
fada68
 lrmd_test_LDADD		= $(top_builddir)/lib/common/libcrmcommon.la	\
fada68
-			$(top_builddir)/lib/lrmd/liblrmd.la  \
fada68
-			$(top_builddir)/lib/cib/libcib.la   \
fada68
-			$(top_builddir)/lib/services/libcrmservice.la \
fada68
-			$(top_builddir)/lib/pengine/libpe_status.la \
fada68
+			$(top_builddir)/lib/lrmd/liblrmd.la		\
fada68
+			$(top_builddir)/lib/cib/libcib.la		\
fada68
+			$(top_builddir)/lib/services/libcrmservice.la	\
fada68
+			$(top_builddir)/lib/pengine/libpe_status.la	\
fada68
 			$(top_builddir)/pengine/libpengine.la
fada68
+lrmd_test_SOURCES	= test.c
fada68
 
fada68
 noinst_HEADERS  = lrmd_private.h
fada68
 
fada68
diff --git a/mcp/Makefile.am b/mcp/Makefile.am
fada68
index 1b3720a..195530a 100644
fada68
--- a/mcp/Makefile.am
fada68
+++ b/mcp/Makefile.am
fada68
@@ -24,16 +24,16 @@ init_SCRIPTS		= pacemaker
fada68
 sbin_PROGRAMS		= pacemakerd
fada68
 
fada68
 if BUILD_SYSTEMD
fada68
-systemdunit_DATA = pacemaker.service
fada68
+systemdunit_DATA	= pacemaker.service
fada68
 endif
fada68
 
fada68
 ## SOURCES
fada68
 
fada68
 noinst_HEADERS		= pacemaker.h
fada68
 
fada68
-pacemakerd_SOURCES	= pacemaker.c corosync.c 
fada68
 pacemakerd_LDADD	= $(top_builddir)/lib/cluster/libcrmcluster.la $(top_builddir)/lib/common/libcrmcommon.la
fada68
 pacemakerd_LDADD	+= $(CLUSTERLIBS)
fada68
+pacemakerd_SOURCES	= pacemaker.c corosync.c
fada68
 
fada68
 endif
fada68
 
fada68
diff --git a/pengine/Makefile.am b/pengine/Makefile.am
fada68
index 170b728..96c914f 100644
fada68
--- a/pengine/Makefile.am
fada68
+++ b/pengine/Makefile.am
fada68
@@ -17,7 +17,7 @@
fada68
 #
fada68
 include $(top_srcdir)/Makefile.common
fada68
 
fada68
-AM_CPPFLAGS     += -I$(top_builddir) -I$(top_srcdir)
fada68
+AM_CPPFLAGS	+= -I$(top_builddir) -I$(top_srcdir)
fada68
 
fada68
 halibdir	= $(CRM_DAEMON_DIR)
fada68
 
fada68
@@ -30,9 +30,8 @@ test_DATA		= regression.core.sh
fada68
 test10dir		= $(datadir)/$(PACKAGE)/tests/pengine/test10
fada68
 test10_DATA		= $(PE_TESTS) $(PE_TESTS:%.scores=%.xml) $(PE_TESTS:%.scores=%.exp) $(PE_TESTS:%.scores=%.dot) $(PE_TESTS:%.scores=%.summary) $(wildcard test10/*.stderr)
fada68
 
fada68
-COMMONLIBS	= 					\
fada68
-		$(top_builddir)/lib/common/libcrmcommon.la		\
fada68
-		$(top_builddir)/lib/pengine/libpe_status.la		\
fada68
+COMMONLIBS	= $(top_builddir)/lib/common/libcrmcommon.la	\
fada68
+		$(top_builddir)/lib/pengine/libpe_status.la	\
fada68
 		libpengine.la $(CURSESLIBS) $(CLUSTERLIBS)
fada68
 
fada68
 beekhof:
fada68
@@ -62,17 +61,16 @@ endif
fada68
 noinst_HEADERS	= allocate.h utils.h pengine.h
fada68
 
fada68
 libpengine_la_LDFLAGS	= -version-info 11:0:1
fada68
+libpengine_la_LIBADD	= $(top_builddir)/lib/pengine/libpe_status.la \
fada68
+			$(top_builddir)/lib/cib/libcib.la
fada68
 # -L$(top_builddir)/lib/pils -lpils -export-dynamic -module -avoid-version
fada68
 libpengine_la_SOURCES	= pengine.c allocate.c utils.c constraints.c
fada68
-libpengine_la_SOURCES  += native.c group.c clone.c master.c graph.c utilization.c
fada68
+libpengine_la_SOURCES	+= native.c group.c clone.c master.c graph.c utilization.c
fada68
 
fada68
-libpengine_la_LIBADD    = $(top_builddir)/lib/pengine/libpe_status.la \
fada68
-	$(top_builddir)/lib/cib/libcib.la
fada68
-
fada68
-pengine_SOURCES	= main.c
fada68
 pengine_LDADD	= $(top_builddir)/lib/cib/libcib.la $(COMMONLIBS)
fada68
 # libcib for get_object_root()
fada68
 #		$(top_builddir)/lib/hbclient/libhbclient.la
fada68
+pengine_SOURCES	= main.c
fada68
 
fada68
 install-exec-local:
fada68
 	$(mkinstalldirs) $(DESTDIR)/$(PE_STATE_DIR)
fada68
-- 
fada68
1.8.3.1
fada68