aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKristen Carlson Accardi <kristen@linux.intel.com>2011-04-21 15:15:00 -0700
committerKristen Carlson Accardi <kristen@linux.intel.com>2011-04-21 15:30:56 -0700
commit42f47caf1acc6f6f843febe3b39e66fdbbe642ed (patch)
tree812b661450f3a7a4ce70aed14db8f8ca91a05f56
parentb6938bca1eb682bc9054c439973d3a97bbd4806c (diff)
downloadpowertop-42f47caf1acc6f6f843febe3b39e66fdbbe642ed.tar.gz
libnl-3.0 was released 2011-03-21, let powertop understand it
Signed-off-by: Jesse Brandeburg <jesse.brandeburg@intel.com> Signed-off-by: Kristen Carlson Accardi <kristen@linux.intel.com>
-rw-r--r--Makefile7
1 files changed, 7 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 5e0bf5b..d5fa84d 100644
--- a/Makefile
+++ b/Makefile
@@ -24,6 +24,7 @@ OBJS += tuning/cpufreq.o tuning/ethernet.o tuning/iw.o tuning/wifi.o
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_LIBNL20
+LIBS += -lnl-genl
+NLLIBNAME = libnl-3.0
+endif
+
ifeq ($(NLLIBNAME),)
$(error Cannot find development files for any supported version of libnl)
endif