diff options
Diffstat (limited to 'sys-utils/Makefile')
-rw-r--r-- | sys-utils/Makefile | 40 |
1 files changed, 27 insertions, 13 deletions
diff --git a/sys-utils/Makefile b/sys-utils/Makefile index fc5afd4eb..9513717ee 100644 --- a/sys-utils/Makefile +++ b/sys-utils/Makefile @@ -1,7 +1,8 @@ # Makefile -- Makefile for util-linux Linux utilities # Created: Sat Dec 26 20:09:40 1992 -# Revised: Sat Oct 7 19:24:39 1995 by r.faith@ieee.org +# Revised: Mon Aug 19 20:12:33 1996 by faith@cs.unc.edu # Copyright 1992, 1993, 1994, 1995 Rickard E. Faith (faith@cs.unc.edu) +# Copyright 1996 Nicolai Langfeldt (janl@math.uio.no)?? # include ../MCONFIG @@ -10,21 +11,37 @@ include ../MCONFIG MAN1= arch.1 readprofile.1 -MAN8= chroot.8 clock.8 ctrlaltdel.8 cytune.8 dmesg.8 \ - ipcrm.8 ipcs.8 kbdrate.8 ramsize.8 rdev.8 renice.8 \ - rootflags.8 setserial.8 setsid.8 swapdev.8 sync.8 tunelp.8 \ - vidmode.8 +MAN8= chroot.8 ctrlaltdel.8 cytune.8 dmesg.8 \ + ipcrm.8 ipcs.8 kbdrate.8 ramsize.8 renice.8 \ + rootflags.8 setsid.8 swapdev.8 tunelp.8 \ + vidmode.8 + +ifneq "$(CPU)" "sparc" +MAN8:= $(MAN8) hwclock.8 +endif + +ifeq "$(CPU)" "intel" +MAN8:= $(MAN8) rdev.8 +endif # Where to put binaries? # See the "install" rule for the links. . . -SBIN= clock ctrlaltdel kbdrate sln +SBIN= sln ctrlaltdel kbdrate + +ifneq "$(CPU)" "sparc" +SBIN:=$(SBIN) hwclock +endif -BIN= arch dmesg setserial sync +BIN= arch dmesg USRSBIN= chroot -USRBIN= cytune ipcrm ipcs rdev renice readprofile setsid tunelp +USRBIN= cytune ipcrm ipcs renice readprofile setsid tunelp + +ifeq "$(CPU)" "intel" +USRBIN:=$(USRBIN) rdev +endif # Where to put datebase files? @@ -35,14 +52,12 @@ all: $(SBIN) $(BIN) $(USRSBIN) $(USRBIN) sln: sln.c $(CC) -static $(CFLAGS) $(LDFLAGS) $< -o $@ -sync: sync.S - $(CC) -nostdlib $(LDFLAGS) $< -o $@ - # Rules for everything else arch: arch.o chroot: chroot.o -clock: clock.o +hwclock.o: hwclock.c shhopt.h +hwclock: hwclock.o shhopt.o ctrlaltdel: ctrlaltdel.o ipcrm: ipcrm.o ipcs: ipcs.o @@ -50,7 +65,6 @@ kbdrate: kbdrate.o rdev: rdev.o renice: renice.o readprofile: readprofile.o -setserial: setserial.o setsid: setsid.o install: all |