Skip to content

Commit

Permalink
Fix build issue for separate directory
Browse files Browse the repository at this point in the history
Signed-off-by: Naoto Yamaguchi <[email protected]>
  • Loading branch information
AGLExport committed Nov 26, 2023
1 parent 518f8d5 commit 3953c5f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 19 deletions.
3 changes: 1 addition & 2 deletions example/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -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@

Expand All @@ -36,7 +36,6 @@ if ENABLE_GCOV
CFLAGS += -coverage
endif

#
#if ENABLE_PRINTFDEBUG
#exsample_CFLAGS += -D_PRINTF_DEBUG_
#exsample_CXXFLAGS += -D_PRINTF_DEBUG_
Expand Down
18 changes: 3 additions & 15 deletions lib/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -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@

Expand Down Expand Up @@ -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
4 changes: 2 additions & 2 deletions src/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -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@

Expand Down

0 comments on commit 3953c5f

Please sign in to comment.