3 usrbin_exec_PROGRAMS += last
4 dist_man_MANS += login-utils/last.1
5 last_SOURCES = login-utils/last.c
9 sbin_PROGRAMS += sulogin
10 dist_man_MANS += login-utils/sulogin.8
13 sulogin_LDADD = libcommon.la
15 sulogin_LDADD += -lcrypt
18 sulogin_LDADD += -lselinux
25 dist_man_MANS += login-utils/login.1
28 login-utils/logindefs.c \
29 login-utils/logindefs.h
30 login_LDADD = libcommon.la -lpam -lpam_misc
32 login_LDADD += -laudit
35 login_LDADD += -lselinux
41 usrbin_exec_PROGRAMS += utmpdump
42 dist_man_MANS += login-utils/utmpdump.1
43 utmpdump_SOURCES = login-utils/utmpdump.c
48 usrbin_exec_PROGRAMS += chfn chsh
54 login-utils/islocal.c \
55 login-utils/islocal.h \
56 login-utils/setpwnam.c \
57 login-utils/setpwnam.h
58 chfn_chsh_cflags = $(SUID_CFLAGS) $(AM_CFLAGS)
59 chfn_chsh_ldflags = $(SUID_LDFLAGS) $(AM_LDFLAGS)
60 chfn_chsh_ldadd = libcommon.la -lpam -lpam_misc
63 chfn_chsh_sources += \
64 login-utils/selinux_utils.c \
65 login-utils/selinux_utils.h
66 chfn_chsh_ldadd += -lselinux
69 chfn_SOURCES = login-utils/chfn.c $(chfn_chsh_sources)
70 chfn_CFLAGS = $(chfn_chsh_cflags)
71 chfn_LDFLAGS = $(chfn_chsh_ldflags)
72 chfn_LDADD = $(chfn_chsh_ldadd)
74 chsh_SOURCES = login-utils/chsh.c $(chfn_chsh_sources)
75 chsh_CFLAGS = $(chfn_chsh_cflags)
76 chsh_LDFLAGS = $(chfn_chsh_ldflags)
77 chsh_LDADD = $(chfn_chsh_ldadd)
78 endif # BUILD_CHFN_CHSH
85 login-utils/logindefs.c \
86 login-utils/logindefs.h
87 su_CFLAGS = $(SUID_CFLAGS) $(AM_CFLAGS)
88 su_LDFLAGS = $(SUID_LDFLAGS) $(AM_LDFLAGS)
89 su_LDADD = -lpam -lpam_misc
94 usrbin_exec_PROGRAMS += newgrp
95 dist_man_MANS += login-utils/newgrp.1
96 newgrp_SOURCES = login-utils/newgrp.c
97 newgrp_CFLAGS = $(SUID_CFLAGS) $(AM_CFLAGS)
98 newgrp_LDFLAGS = $(SUID_LDFLAGS) $(AM_LDFLAGS)
101 newgrp_LDADD += -lcrypt
107 usrsbin_exec_PROGRAMS += vipw
113 login-utils/setpwnam.h
114 vipw_LDADD = libcommon.la
116 vipw_LDADD += -lselinux
118 install-exec-hook-vipw::
119 cd $(DESTDIR)$(usrsbin_execdir) && ln -sf vipw vigr
121 INSTALL_EXEC_HOOKS += install-exec-hook-vipw
129 test_islocal_SOURCES = login-utils/islocal.c
130 test_islocal_CPPFLAGS = -DTEST_PROGRAM $(AM_CPPFLAGS)
132 test_logindefs_SOURCES = \
133 login-utils/logindefs.c \
134 login-utils/logindefs.h
135 test_logindefs_CPPFLAGS = -DTEST_PROGRAM $(AM_CPPFLAGS)
140 if MAKEINSTALL_DO_SETUID
141 chmod 4755 $(DESTDIR)$(bindir)/su
145 cd $(DESTDIR)$(usrsbin_execdir) && ln -sf vipw vigr