]> git.ipfire.org Git - thirdparty/util-linux.git/blame - hwclock/Makefile
Imported from util-linux-2.10s tarball.
[thirdparty/util-linux.git] / hwclock / Makefile
CommitLineData
7eda085c
KZ
1# Makefile -- Makefile for util-linux Linux utilities
2#
3include ../make_include
4include ../MCONFIG
5
6# Where to put man pages?
7
8MAN8= hwclock.8
9
10# Where to put binaries?
11# See the "install" rule for the links. . .
12
13SBIN= hwclock
14
15
16all: $(SBIN)
17
18
19hwclock.o: hwclock.c shhopt.h
20hwclock.o cmos.o rtc.o kd.o: clock.h
21hwclock: hwclock.o shhopt.o cmos.o rtc.o kd.o
22
22853e4a
KZ
23CWFLAGS := $(subst -Wmissing-prototypes,,$(CFLAGS))
24
25cmos.o: cmos.c
66ee8158
KZ
26 $(CC) $(CWFLAGS) -c cmos.c -o $@
27# $< expands to clock.h on some systems
22853e4a 28
7eda085c
KZ
29install: all
30 $(INSTALLDIR) $(SBINDIR) $(BINDIR) $(USRBINDIR)
31 $(INSTALLBIN) $(SBIN) $(SBINDIR)
32 $(INSTALLMAN) $(MAN8) $(MAN8DIR)
33
34clean:
35 -rm -f *.o *~ core $(SBIN)