From 3953c5f85cfcf4efa82680e9898a89beeb598416 Mon Sep 17 00:00:00 2001 From: Naoto Yamaguchi Date: Sun, 26 Nov 2023 17:38:40 +0900 Subject: [PATCH] Fix build issue for separate directory Signed-off-by: Naoto Yamaguchi --- example/Makefile.am | 3 +-- lib/Makefile.am | 18 +++--------------- src/Makefile.am | 4 ++-- 3 files changed, 6 insertions(+), 19 deletions(-) diff --git a/example/Makefile.am b/example/Makefile.am index ddf3b67..d842868 100644 --- a/example/Makefile.am +++ b/example/Makefile.am @@ -10,7 +10,7 @@ cluster_client_SOURCES = \ # options # Additional library cluster_client_LDADD = \ - $(top_srcdir)/lib/libcluster-api-systemd.la \ + $(top_builddir)/lib/libcluster-api-systemd.la \ -lrt -lpthread \ @LIBSYSTEMD_LIBS@ @@ -36,7 +36,6 @@ if ENABLE_GCOV CFLAGS += -coverage endif -# #if ENABLE_PRINTFDEBUG #exsample_CFLAGS += -D_PRINTF_DEBUG_ #exsample_CXXFLAGS += -D_PRINTF_DEBUG_ diff --git a/lib/Makefile.am b/lib/Makefile.am index df30b6d..2e71ddd 100644 --- a/lib/Makefile.am +++ b/lib/Makefile.am @@ -8,9 +8,9 @@ libcluster_api_systemd_la_SOURCES = \ cluster-api-sdevent.c libcluster_api_systemd_la_LIBADD = \ - $(top_srcdir)/lib/libcluster_service_client.a \ - $(top_srcdir)/lib/libcluster_service_common.a \ - $(top_srcdir)/lib/libcluster_service_static_configurator.a \ + $(top_builddir)/lib/libcluster_service_client.a \ + $(top_builddir)/lib/libcluster_service_common.a \ + $(top_builddir)/lib/libcluster_service_static_configurator.a \ -lrt -lpthread \ @LIBSYSTEMD_LIBS@ @@ -70,16 +70,4 @@ if ENABLE_GCOV CFLAGS += -coverage endif -#lib_LTLIBRARIES = libexsample.la - -#libexsample_la_SOURCES = \ -# libexsample-c.c -# -#libexsample_la_LBSADD = -# -#libexsample_la_CFLAGS = \ -# -I$(top_srcdir)/include -# -#libexsample_la_LDFLAGS = - CLEANFILES = *.gcda *.gcno diff --git a/src/Makefile.am b/src/Makefile.am index eefeb8a..fb3f50b 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -12,8 +12,8 @@ cluster_service_SOURCES = \ # options # Additional library cluster_service_LDADD = \ - $(top_srcdir)/lib/libcluster_service_common.a \ - $(top_srcdir)/lib/libcluster_service_static_configurator.a \ + $(top_builddir)/lib/libcluster_service_common.a \ + $(top_builddir)/lib/libcluster_service_static_configurator.a \ -lrt -lpthread \ @LIBSYSTEMD_LIBS@