File: Makefile

package info (click to toggle)
efingerd 1.6.7-1
  • links: PTS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 372 kB
  • sloc: sh: 344; ansic: 303; makefile: 27
file content (30 lines) | stat: -rw-r--r-- 549 bytes parent folder | download | duplicates (2)
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
DESTDIR =
BINDIR=$(DESTDIR)/usr/sbin
MANDIR=$(DESTDIR)/usr/share/man/man8
STRIP ?= strip

CC = gcc 
CFLAGS = -O2 -Wall

LIBS = -lident

all: efingerd

efingerd: efingerd.o child.o
	$(CC) $(CFLAGS) $(LDFLAGS) efingerd.o child.o -o efingerd $(LIBS)

efingerd.o: efingerd.c
	$(CC) $(CFLAGS) -c efingerd.c

child.o: child.c
	$(CC) $(CFLAGS) -c child.c

clean:
	rm -f *~ *.o efingerd

install: efingerd 
	$(STRIP) efingerd
	cp efingerd $(BINDIR)
	mkdir -p $(DESTDIR)/etc/efingerd
	cp examples-standard/* $(DESTDIR)/etc/efingerd
	cp efingerd.8 $(MANDIR)/