summaryrefslogtreecommitdiff
path: root/src/grp-login/systemd-logind/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'src/grp-login/systemd-logind/Makefile')
-rw-r--r--src/grp-login/systemd-logind/Makefile18
1 files changed, 8 insertions, 10 deletions
diff --git a/src/grp-login/systemd-logind/Makefile b/src/grp-login/systemd-logind/Makefile
index 24de945818..0dbbc9733b 100644
--- a/src/grp-login/systemd-logind/Makefile
+++ b/src/grp-login/systemd-logind/Makefile
@@ -23,9 +23,8 @@
include $(dir $(lastword $(MAKEFILE_LIST)))/../../../config.mk
include $(topsrcdir)/build-aux/Makefile.head.mk
-ifneq ($(ENABLE_LOGIND),)
-
systemd_logind_SOURCES = \
+ $(_liblogind_core_la_SOURCES) \
src/login/logind.c \
src/login/logind.h
@@ -33,9 +32,10 @@ nodist_systemd_logind_SOURCES = \
src/login/logind-gperf.c
systemd_logind_LDADD = \
- liblogind-core.la
+ libsystemd-internal.la \
+ libsystemd-shared.la
-liblogind_core_la_SOURCES = \
+_liblogind_core_la_SOURCES = \
src/login/logind-core.c \
src/login/logind-device.c \
src/login/logind-device.h \
@@ -64,13 +64,10 @@ liblogind_core_la_LIBADD = \
libsystemd-shared.la
ifneq ($(HAVE_ACL),)
-liblogind_core_la_SOURCES += \
+_liblogind_core_la_SOURCES += \
src/login/logind-acl.c
endif # HAVE_ACL
-noinst_LTLIBRARIES += \
- liblogind-core.la
-
rootlibexec_PROGRAMS += \
systemd-logind
@@ -115,8 +112,6 @@ nodist_udevrules_DATA += \
src/login/71-seat.rules \
src/login/73-seat-late.rules
-endif # ENABLE_LOGIND
-
polkitpolicy_in_files += \
src/login/org.freedesktop.login1.policy.in
@@ -129,4 +124,7 @@ EXTRA_DIST += \
units/systemd-logind.service.in \
src/login/logind.conf.in
+sd.CPPFLAGS += -DPKGSYSCONFDIR=\"$(pkgsysconfdir)\"
+sd.CPPFLAGS += -DKEXEC=\"$(KEXEC)\"
+
include $(topsrcdir)/build-aux/Makefile.tail.mk