]>
Commit | Line | Data |
---|---|---|
7eda085c KZ |
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 | ||
22853e4a KZ |
23 | CWFLAGS := $(subst -Wmissing-prototypes,,$(CFLAGS)) |
24 | ||
25 | cmos.o: cmos.c | |
66ee8158 KZ |
26 | $(CC) $(CWFLAGS) -c cmos.c -o $@ |
27 | # $< expands to clock.h on some systems | |
22853e4a | 28 | |
7eda085c KZ |
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) |