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