diff options
author | Yegor Yefremov <yegor_sub1@visionsystems.de> | 2011-07-21 15:06:17 +0000 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2011-09-07 18:10:58 +0200 |
commit | ded667b01ad0e39d6ce2490b7a721b1c1fc1d519 (patch) | |
tree | 5751be5912776ee15e3f23a585f4ea25d9c51993 /Makefile | |
parent | b9aa711a58c824df6b3f7f996eab94ac00716f35 (diff) | |
download | platform_external_iw-ded667b01ad0e39d6ce2490b7a721b1c1fc1d519.tar.gz platform_external_iw-ded667b01ad0e39d6ce2490b7a721b1c1fc1d519.tar.bz2 platform_external_iw-ded667b01ad0e39d6ce2490b7a721b1c1fc1d519.zip |
iw: add libnl-3.0 support
Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -24,6 +24,7 @@ ALL = iw NL1FOUND := $(shell $(PKG_CONFIG) --atleast-version=1 libnl-1 && echo Y) NL2FOUND := $(shell $(PKG_CONFIG) --atleast-version=2 libnl-2.0 && echo Y) +NL3FOUND := $(shell $(PKG_CONFIG) --atleast-version=3 libnl-3.0 && echo Y) ifeq ($(NL1FOUND),Y) NLLIBNAME = libnl-1 @@ -35,6 +36,12 @@ LIBS += -lnl-genl NLLIBNAME = libnl-2.0 endif +ifeq ($(NL3FOUND),Y) +CFLAGS += -DCONFIG_LIBNL30 +LIBS += -lnl-genl +NLLIBNAME = libnl-3.0 +endif + ifeq ($(NLLIBNAME),) $(error Cannot find development files for any supported version of libnl) endif @@ -53,6 +60,8 @@ endif all: version_check $(ALL) version_check: +ifeq ($(NL3FOUND),Y) +else ifeq ($(NL2FOUND),Y) else ifeq ($(NL1FOUND),Y) @@ -60,6 +69,7 @@ else $(error No libnl found) endif endif +endif VERSION_OBJS := $(filter-out version.o, $(OBJS)) |