blob: 7c2560e6ed8e58ae2603105338f4750e302306a8 (
plain)
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
|
progs-y += opennhrp
opennhrp-objs += libev.o opennhrp.o nhrp_address.o nhrp_packet.o \
nhrp_peer.o nhrp_server.o nhrp_interface.o admin.o \
sysdep_netlink.o sysdep_pfpacket.o \
sysdep_syslog.o
CFLAGS_libev.o += -Wno-unused -Wno-comment -Wno-parentheses
CFLAGS_opennhrp.o += -DOPENNHRP_VERSION=\"$(FULL_VERSION)\" \
-DOPENNHRP_ADMIN_SOCKET=\"$(STATEDIR)/opennhrp.socket\"
LIBS_opennhrp += -lm
ifeq ($(shell pkg-config --exists libcares && echo "yes"),yes)
CFLAGS +=$(shell pkg-config --cflags libcares)
LIBS_opennhrp +=$(shell pkg-config --libs libcares)
else
LIBS_opennhrp += -lcares
endif
progs-y += opennhrpctl
opennhrpctl-objs += opennhrpctl.o
CFLAGS_opennhrpctl.o += $(CFLAGS_opennhrp.o)
CFLAGS_EXTRA += -I$(srctree)/include -Wno-strict-aliasing
install:
$(INSTALLDIR) $(DESTDIR)$(SBINDIR)
$(INSTALL) $(addprefix $(obj)/,$(progs-y)) $(DESTDIR)$(SBINDIR)
|