summaryrefslogtreecommitdiff
path: root/login/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'login/Makefile')
-rw-r--r--login/Makefile12
1 files changed, 10 insertions, 2 deletions
diff --git a/login/Makefile b/login/Makefile
index 6c10a5aff4..832b1caf63 100644
--- a/login/Makefile
+++ b/login/Makefile
@@ -25,9 +25,15 @@ subdir := login
headers := utmp.h utmpbits.h lastlog.h pty.h
routines := getutent getutent_r getutid getutline getutid_r getutline_r \
- utmp_file utmp_db
+ utmp_file utmp_daemon utmpname
-distribute := utmp-private.h
+others = utmpd
+install-sbin = utmpd
+utmpd-routines := connection database error request xtmp
+
+distribute := utmp-private.h utmpd/xtmp.h utmpd/utmpd.h utmpd/utmpd-private.h
+
+vpath %.c utmpd
# Build the -lutil library with these extra functions.
extra-libs := libutil
@@ -37,6 +43,8 @@ libutil-routines:= login login_tty logout logwtmp pty
include ../Rules
+$(objpfx)utmpd: $(utmpd-routines:%=$(objpfx)%.o)
+
# Depend on libc.so so a DT_NEEDED is generated in the shared objects.
# This ensures they will load libc.so for needed symbols if loaded by
# a statically-linked program that hasn't already loaded it.