File: Makefile

package info (click to toggle)
loop-aes-utils 2.12r-15%2Betch1
  • links: PTS
  • area: main
  • in suites: etch
  • size: 8,876 kB
  • ctags: 5,077
  • sloc: ansic: 46,163; sh: 11,326; makefile: 886; perl: 86; csh: 62; sed: 55
file content (36 lines) | stat: -rw-r--r-- 690 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Makefile -- Makefile for util-linux Linux utilities
#
include ../make_include
include ../MCONFIG

# Where to put man pages?

MAN8= 		hwclock.8

# Where to put binaries?
# See the "install" rule for the links. . .

SBIN= 		hwclock


all: $(SBIN)


hwclock.o: hwclock.c
hwclock.o cmos.o kd.o: ../defines.h
hwclock.o cmos.o rtc.o kd.o: clock.h
hwclock: hwclock.o cmos.o rtc.o kd.o

CWFLAGS := $(subst -Wmissing-prototypes,,$(CFLAGS))

cmos.o: cmos.c
	$(CC) $(CWFLAGS) -c cmos.c -o $@
# $< expands to clock.h on some systems

install: all
	$(INSTALLDIR) $(SBINDIR) $(BINDIR) $(USRBINDIR)
	$(INSTALLBIN) $(SBIN) $(SBINDIR)
	$(INSTALLMAN) $(MAN8) $(MAN8DIR)

clean:
	-rm -f *.o *~ core $(SBIN)