pci: don't do sanity check for missing pci bus, the check can misfire.
[minix.git] / commands / reboot / Makefile
blobd10a987337052e0d9cfb30fc5f801809d5cdeeae
1 # Makefile for shutdown / halt / reboot.
3 CFLAGS=$(OPT) -D_MINIX -D_POSIX_SOURCE
4 LDFLAGS=-i
5 CC=exec cc
7 PROGRAMS= shutdown halt tinyhalt
8 MANUALS= shutdown.8 halt.8 reboot.2 reboot.8
10 all: $(PROGRAMS)
12 shutdown: shutdown.o sh_wall.o log.o
13 $(CC) $(LDFLAGS) -o shutdown shutdown.o sh_wall.o log.o
14 install -S 4kw $@
16 halt: halt.o log.o
17 $(CC) $(LDFLAGS) -o halt halt.o log.o
18 install -S 4kw $@
20 tinyhalt: tinyhalt.c
21 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $?
22 install -S 4kw $@
24 install: /usr/bin/halt /usr/bin/reboot /usr/bin/shutdown \
25 /bin/halt /bin/reboot
27 /usr/bin/halt: halt
28 install -cs -o root -g operator -m 744 $? $@
30 /usr/bin/reboot: /usr/bin/halt
31 install -l h $? $@
33 /usr/bin/shutdown: shutdown
34 install -cs -o root -g operator -m 4754 $? $@
36 /bin/halt: tinyhalt
37 install -cs -o root -g operator -m 744 $? $@
39 /bin/reboot: /bin/halt
40 install -l h $? $@
42 clean:
43 rm -f *.o a.out core $(PROGRAMS)