Debian Codegraph @

Makefile

raw symbols SCIP
1 UNAME_S := $(shell uname -s)
2 ifeq ($(UNAME_S),Linux)
3
4 PROG= rbootd
5 SRCS= pcap.c conf.c parseconf.c rbootd.c rmpproto.c utils.c
6 OBJS = pcap.o conf.o parseconf.o rbootd.o rmpproto.o utils.o
7 MAN= rbootd.8
8
9 # We used to -lbsd but that seems to have gone away with glibc...
10 LFLAGS += -lpcap
11
12 # -Wall picks up all the static char rcsid[] stuff but is otherwise clean
13 CFLAGS += -O2 -Wall -Wno-unused-variable
14 rbootd: $(OBJS)
15 $(CC) -o $@ $(OBJS) $(LFLAGS) $(LDFLAGS)
16
17 clean:
18 rm -f *.o
19 rm -f rbootd
20 rm -f rbootd.8.gz
21
22 rbootd.8.gz: $(MAN)
23 gzip -9 < rbootd.8 > rbootd.8.gz
24
25 all: rbootd rbootd.8.gz
26
27 INSTALL = install
28 IFLAGS = -o root -g root
29 INSTALL += ${IFLAGS}
30 DESTDIR = ./root
31
32 install: all
33 ${INSTALL} -d ${DESTDIR}/etc \
34 ${DESTDIR}/usr/sbin \
35 ${DESTDIR}/var/lib/rbootd \
36 ${DESTDIR}/usr/share/man/man8
37 ${INSTALL} -m644 etc-rbootd/rbootd.conf ${DESTDIR}/etc
38 ${INSTALL} -m755 rbootd ${DESTDIR}/usr/sbin
39 ${INSTALL} -m444 rbootd.8.gz ${DESTDIR}/usr/share/man/man8
40
41 else # BSD
42
43 # Makefile for BSD
44
45 PROG= rbootd
46 SRCS= bpf.c conf.c parseconf.c rbootd.c rmpproto.c utils.c
47 MAN= rbootd.8
48
49 .include <bsd.prog.mk>
50
51 endif