summaryrefslogtreecommitdiff
path: root/src/grp-machine
diff options
context:
space:
mode:
Diffstat (limited to 'src/grp-machine')
-rw-r--r--src/grp-machine/Makefile2
-rw-r--r--src/grp-machine/libmachine-core/Makefile6
-rw-r--r--src/grp-machine/nss-mymachines/Makefile6
3 files changed, 13 insertions, 1 deletions
diff --git a/src/grp-machine/Makefile b/src/grp-machine/Makefile
index a169a6b75c..7412341233 100644
--- a/src/grp-machine/Makefile
+++ b/src/grp-machine/Makefile
@@ -24,4 +24,6 @@ include $(dir $(lastword $(MAKEFILE_LIST)))/../../config.mk
include $(topsrcdir)/build-aux/Makefile.head.mk
at.subdirs += machinectl systemd-machined
+at.subdirs += nss-mymachines
+
include $(topsrcdir)/build-aux/Makefile.tail.mk
diff --git a/src/grp-machine/libmachine-core/Makefile b/src/grp-machine/libmachine-core/Makefile
index f37ec9772b..de95c44f8e 100644
--- a/src/grp-machine/libmachine-core/Makefile
+++ b/src/grp-machine/libmachine-core/Makefile
@@ -47,4 +47,10 @@ test_machine_tables_LDADD = \
tests += \
test-machine-tables
+at.depdirs += $(topoutdir)/src/libsystemd/libsystemd-internal
+systemd.CPPFLAGS += $(libshared.CPPFLAGS)
+systemd.CPPFLAGS += $(libbasic.CPPFLAGS)
+systemd.CPPFLAGS += $(libsystemd.CPPFLAGS)
+systemd.CPPFLAGS += -I$(topsrcdir)/src/libsystemd/libsystemd-internal/sd-bus
+
include $(topsrcdir)/build-aux/Makefile.tail.mk
diff --git a/src/grp-machine/nss-mymachines/Makefile b/src/grp-machine/nss-mymachines/Makefile
index 74871c8446..fa281407fb 100644
--- a/src/grp-machine/nss-mymachines/Makefile
+++ b/src/grp-machine/nss-mymachines/Makefile
@@ -35,7 +35,7 @@ libnss_mymachines_la_LDFLAGS = \
-avoid-version \
-shared \
-shrext .so.2 \
- -Wl,--version-script=$(top_srcdir)/src/nss-mymachines/nss-mymachines.sym
+ -Wl,--version-script=$(srcdir)/nss-mymachines.sym
libnss_mymachines_la_LIBADD = \
libsystemd-internal.la
@@ -43,4 +43,8 @@ libnss_mymachines_la_LIBADD = \
lib_LTLIBRARIES += \
libnss_mymachines.la
+at.depdirs += $(topoutdir)/src/libsystemd/libsystemd-internal
+systemd.CPPFLAGS += $(libbasic.CPPFLAGS)
+systemd.CPPFLAGS += -I$(topsrcdir)/src/libsystemd/libsystemd-internal/sd-bus
+
include $(topsrcdir)/build-aux/Makefile.tail.mk