4ca67dcca5
For simplicity, we don't use different MTUs for compat 14 and 15 anymore, there's no harm in using 1532 for batman-adv-legacy as well.
25 lines
784 B
Makefile
25 lines
784 B
Makefile
all: respondd.so
|
|
|
|
CFLAGS += -Wall
|
|
|
|
ifeq ($(origin PKG_CONFIG), undefined)
|
|
PKG_CONFIG = pkg-config
|
|
ifeq ($(shell which $(PKG_CONFIG) 2>/dev/null),)
|
|
$(error $(PKG_CONFIG) not found)
|
|
endif
|
|
endif
|
|
|
|
ifeq ($(origin LIBNL_CFLAGS) $(origin LIBNL_LDLIBS), undefined undefined)
|
|
LIBNL_NAME ?= libnl-tiny
|
|
ifeq ($(shell $(PKG_CONFIG) --modversion $(LIBNL_NAME) 2>/dev/null),)
|
|
$(error No $(LIBNL_NAME) development libraries found!)
|
|
endif
|
|
LIBNL_CFLAGS += $(shell $(PKG_CONFIG) --cflags $(LIBNL_NAME))
|
|
LIBNL_LDLIBS += $(shell $(PKG_CONFIG) --libs $(LIBNL_NAME))
|
|
endif
|
|
CFLAGS += $(LIBNL_CFLAGS)
|
|
LDLIBS += $(LIBNL_LDLIBS)
|
|
|
|
respondd.so: respondd.c batadv-netlink.c
|
|
$(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -shared -fPIC -D_GNU_SOURCE -o $@ $^ $(LDLIBS) -lgluonutil -liwinfo -luci
|