From 668bf2079f30e5df8f78974ebee2194d873f50ac Mon Sep 17 00:00:00 2001
From: Michael Stapelberg <michael@stapelberg.de>
Date: Thu, 24 Sep 2015 21:47:02 +0200
Subject: wireless (linux): switch from libiw to libnl

Based on http://cr.i3wm.org/patch/692/ by Alexander Monakov

fixes #32
fixes #52
---
 Makefile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

(limited to 'Makefile')

diff --git a/Makefile b/Makefile
index edbdc44..5667c0d 100644
--- a/Makefile
+++ b/Makefile
@@ -30,7 +30,8 @@ OS:=$(shell uname)
 ifeq ($(OS),Linux)
 CPPFLAGS+=-DLINUX
 CPPFLAGS+=-D_GNU_SOURCE
-LIBS+=-liw
+CFLAGS += $(shell pkg-config --cflags libnl-genl-3.0)
+LIBS += $(shell pkg-config --libs libnl-genl-3.0)
 LIBS+=-lasound
 endif
 
-- 
cgit v1.2.3