minix/commands/reboot/Makefile
Arun Thomas 2a8fabf4ad Include directory reorg and makefile updates.
-Convert the include directory over to using bsdmake
 syntax
-Update/add mkfiles
-Modify install(1) so that it can create symlinks
-Update makefiles to use new install(1) options
-Rename /usr/include/ibm to /usr/include/i386
-Create /usr/include/machine symlink to arch header files
-Move vm_i386.h to its new home in the /usr/include/i386
-Update source files to #include the header files at their
 new homes.
-Add new gnu-includes target for building GCC headers
2010-03-08 11:04:59 +00:00

43 lines
902 B
Makefile

# Makefile for shutdown / halt / reboot.
CFLAGS=$(OPT) -D_MINIX -D_POSIX_SOURCE
LDFLAGS=-i
CC=exec cc
PROGRAMS= shutdown halt tinyhalt
MANUALS= shutdown.8 halt.8 reboot.2 reboot.8
all: $(PROGRAMS)
shutdown: shutdown.o sh_wall.o log.o
$(CC) $(LDFLAGS) -o shutdown shutdown.o sh_wall.o log.o
install -S 4kw $@
halt: halt.o log.o
$(CC) $(LDFLAGS) -o halt halt.o log.o
install -S 4kw $@
tinyhalt: tinyhalt.c
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $?
install -S 4kw $@
install: /usr/bin/halt /usr/bin/reboot /usr/bin/shutdown \
/bin/halt /bin/reboot
/usr/bin/halt: halt
install -cs -o root -g operator -m 744 $? $@
/usr/bin/reboot: /usr/bin/halt
install -l h $? $@
/usr/bin/shutdown: shutdown
install -cs -o root -g operator -m 4754 $? $@
/bin/halt: tinyhalt
install -cs -o root -g operator -m 744 $? $@
/bin/reboot: /bin/halt
install -l h $? $@
clean:
rm -f *.o a.out core $(PROGRAMS)