1
include $(top_srcdir)/config/include-Makefile.am
9
EXTRA_DIST = README.getty README.modems-with-agetty README.poeigl
12
sbin_PROGRAMS += agetty
18
sbin_PROGRAMS += simpleinit shutdown initctl
19
man_MANS += fastboot.8 fasthalt.8 halt.8 reboot.8 simpleinit.8 shutdown.8 \
22
simpleinit_SOURCES = simpleinit.c my_crypt.h simpleinit.h
23
initctl_SOURCES = initctl.c simpleinit.h
26
simpleinit_LDADD = -lcrypt
32
usrbinexec_PROGRAMS += last
39
usrbinexec_PROGRAMS += chfn chsh newgrp
40
usrsbinexec_PROGRAMS += vipw
41
man_MANS += chfn.1 chsh.1 login.1 newgrp.1 vipw.8 vigr.8
43
chfn_SOURCES = chfn.c $(chfn_chsh_common)
44
chsh_SOURCES = chsh.c $(chfn_chsh_common)
45
chfn_chsh_common = islocal.c setpwnam.c islocal.h my_crypt.h setpwnam.h \
47
login_SOURCES = login.c login.h my_crypt.h ../lib/setproctitle.c
48
newgrp_SOURCES = newgrp.c my_crypt.h
49
vipw_SOURCES = vipw.c setpwnam.h
57
chfn_CFLAGS = $(SUID_CFLAGS) $(AM_CFLAGS)
58
chsh_CFLAGS = $(SUID_CFLAGS) $(AM_CFLAGS)
59
newgrp_CFLAGS = $(SUID_CFLAGS) $(AM_CFLAGS)
61
chfn_LDFLAGS = $(SUID_LDFLAGS) $(AM_LDFLAGS)
62
chsh_LDFLAGS = $(SUID_LDFLAGS) $(AM_LDFLAGS)
63
newgrp_LDFLAGS = $(SUID_LDFLAGS) $(AM_LDFLAGS)
68
login_LDADD += -lcrypt
69
newgrp_LDADD += -lcrypt
73
chfn_LDADD += -lpam -lpam_misc
74
chsh_LDADD += -lpam -lpam_misc
75
login_LDADD += -lpam -lpam_misc
77
login_SOURCES += checktty.c
81
login_LDADD += -laudit
85
chfn_SOURCES += selinux_utils.c selinux_utils.h
86
chfn_LDADD += -lselinux
87
chsh_SOURCES += selinux_utils.c selinux_utils.h
88
chsh_LDADD += -lselinux
89
vipw_LDADD += -lselinux
94
cd $(DESTDIR)$(usrsbinexecdir) && ln -sf vipw vigr
99
usrbinexec_PROGRAMS += mesg
104
usrbinexec_PROGRAMS += wall
105
wall_SOURCES = wall.c ttymsg.c ttymsg.h
109
if MAKEINSTALL_DO_CHOWN
111
chgrp tty $(DESTDIR)$(usrbinexecdir)/wall
112
chmod g+s $(DESTDIR)$(usrbinexecdir)/wall
120
cd $(DESTDIR)$(sbindir) && ln -sf shutdown reboot
121
cd $(DESTDIR)$(sbindir) && ln -sf shutdown fastboot
122
cd $(DESTDIR)$(sbindir) && ln -sf shutdown halt
123
cd $(DESTDIR)$(sbindir) && ln -sf shutdown fasthalt
124
cd $(DESTDIR)$(sbindir) && ln -sf initctl need
125
cd $(DESTDIR)$(sbindir) && ln -sf initctl display-services
126
cd $(DESTDIR)$(sbindir) && ln -sf initctl provide
127
cd $(DESTDIR)$(mandir)/man8 && ln -sf initctl.8 need.8
128
cd $(DESTDIR)$(mandir)/man8 && ln -sf initctl.8 display-services.8
129
cd $(DESTDIR)$(mandir)/man8 && ln -sf initctl.8 provide.8
133
noinst_PROGRAMS = checktty_test
134
checktty_test_SOURCES = checktty.c login.h
135
checktty_test_CPPFLAGS = -DMAIN_TEST_CHECKTTY $(AM_CPPFLAGS)