1 include $(top_srcdir)/config/include-Makefile.am
6 usrsbin_exec_PROGRAMS =
9 EXTRA_DIST = README.getty README.modems-with-agetty README.poeigl
12 sbin_PROGRAMS += agetty
13 dist_man_MANS += agetty.8
18 sbin_PROGRAMS += simpleinit shutdown initctl
19 dist_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 usrbin_exec_PROGRAMS += last
33 dist_man_MANS += last.1
39 usrbin_exec_PROGRAMS += chfn chsh newgrp
40 usrsbin_exec_PROGRAMS += vipw
41 dist_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)$(usrsbin_execdir) && ln -sf vipw vigr
99 usrbin_exec_PROGRAMS += mesg
100 dist_man_MANS += mesg.1
104 usrbin_exec_PROGRAMS += wall
105 wall_SOURCES = wall.c ttymsg.c ttymsg.h
106 dist_man_MANS += wall.1
109 if MAKEINSTALL_DO_CHOWN
111 chgrp tty $(DESTDIR)$(usrbin_execdir)/wall
112 chmod g+s $(DESTDIR)$(usrbin_execdir)/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
129 cd $(DESTDIR)$(mandir)/man8 && ln -sf initctl.8 need.8
130 cd $(DESTDIR)$(mandir)/man8 && ln -sf initctl.8 display-services.8
131 cd $(DESTDIR)$(mandir)/man8 && ln -sf initctl.8 provide.8
135 noinst_PROGRAMS = checktty_test islocal_test
136 checktty_test_SOURCES = checktty.c login.h
137 checktty_test_CPPFLAGS = -DMAIN_TEST_CHECKTTY $(AM_CPPFLAGS)
138 islocal_test_SOURCES = islocal.c
139 islocal_test_CPPFLAGS = -DMAIN_TEST_ISLOCAL $(AM_CPPFLAGS)