Debian Codegraph @

Makefile

raw ◀ ▶
Source reconstructed at patch state 0 of 2 — not the installed (fully patched) source.
2 Debian patches touch this file
1 PREFIX = /usr/local
2 MANDIR = $(PREFIX)/share/man
3
4 CDEBUGFLAGS = -Os -g -Wall
5
6 DEFINES = $(PLATFORM_DEFINES)
7
8 CFLAGS = $(CDEBUGFLAGS) $(DEFINES) $(EXTRA_DEFINES)
9
10 LDLIBS = -lrt
11
12 SRCS = babeld.c net.c kernel.c util.c interface.c source.c neighbour.c \
13 route.c xroute.c message.c resend.c configuration.c local.c \
14 hmac.c rfc6234/sha224-256.c BLAKE2/ref/blake2s-ref.c
15
16 OBJS = babeld.o net.o kernel.o util.o interface.o source.o neighbour.o \
17 route.o xroute.o message.o resend.o configuration.o local.o \
18 hmac.o rfc6234/sha224-256.o BLAKE2/ref/blake2s-ref.o
19
20 babeld: $(OBJS)
21 $(CC) $(CFLAGS) $(LDFLAGS) -o babeld $(OBJS) $(LDLIBS)
22
23 babeld.o: babeld.c version.h
24
25 local.o: local.c version.h
26
27 kernel.o: kernel_netlink.c kernel_socket.c
28
29 version.h:
30 ./generate-version.sh > version.h
31
32 .SUFFIXES: .man .html
33
34 .man.html:
35 mandoc -Thtml $< > $@
36
37 babeld.html: babeld.man
38
39 .PHONY: all install install.minimal uninstall clean
40
41 all: babeld babeld.man
42
43 install.minimal: babeld
44 -rm -f $(TARGET)$(PREFIX)/bin/babeld
45 mkdir -p $(TARGET)$(PREFIX)/bin
46 cp -f babeld $(TARGET)$(PREFIX)/bin
47
48 install: install.minimal all
49 mkdir -p $(TARGET)$(MANDIR)/man8
50 cp -f babeld.man $(TARGET)$(MANDIR)/man8/babeld.8
51
52 uninstall:
53 -rm -f $(TARGET)$(PREFIX)/bin/babeld
54 -rm -f $(TARGET)$(MANDIR)/man8/babeld.8
55
56 clean:
57 -rm -f babeld babeld.html version.h *.o */*.o */*/*.o *~ core TAGS gmon.out