1 # Makefile for shutdown / halt / reboot.
3 CFLAGS
=$(OPT
) -D_MINIX
-D_POSIX_SOURCE
7 PROGRAMS
= shutdown halt tinyhalt
8 MANUALS
= shutdown
.8 halt
.8 reboot
.2 reboot
.8
12 shutdown
: shutdown.o sh_wall.o log.o
13 $(CC
) $(LDFLAGS
) -o shutdown shutdown.o sh_wall.o log.o
17 $(CC
) $(LDFLAGS
) -o halt halt.o log.o
21 $(CC
) $(CFLAGS
) $(LDFLAGS
) -o
$@
$?
24 install: /usr
/bin
/halt
/usr
/bin
/reboot
/usr
/bin
/shutdown \
28 install -cs
-o root
-g operator
-m
744 $?
$@
30 /usr
/bin
/reboot
: /usr
/bin
/halt
33 /usr
/bin
/shutdown
: shutdown
34 install -cs
-o root
-g operator
-m
4754 $?
$@
37 install -cs
-o root
-g operator
-m
744 $?
$@
39 /bin
/reboot
: /bin
/halt
43 rm -f
*.o a.out core
$(PROGRAMS
)