]> git.ipfire.org Git - thirdparty/iw.git/commitdiff
makefile: allow passing NO_PKG_CONFIG
authorJohannes Berg <johannes.berg@intel.com>
Tue, 23 Apr 2013 13:32:27 +0000 (15:32 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 23 Apr 2013 13:34:10 +0000 (15:34 +0200)
To build iw without pkg-config, you can now do something
like

$ make NO_PKG_CONFIG=1 LDFLAGS=-lnl

Makefile

index cf6a6713eed5397fadf599d535e3ecb4bdb2a7ca..c485b5e96553ba478b983341248ec220b01dda7c 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -25,6 +25,7 @@ OBJS += $(OBJS-y) $(OBJS-Y)
 
 ALL = iw
 
+ifeq ($(NO_PKG_CONFIG),)
 NL3xFOUND := $(shell $(PKG_CONFIG) --atleast-version=3.2 libnl-3.0 && echo Y)
 ifneq ($(NL3xFOUND),Y)
 NL31FOUND := $(shell $(PKG_CONFIG) --exact-version=3.1 libnl-3.1 && echo Y)
@@ -77,6 +78,7 @@ endif
 
 LIBS += $(shell $(PKG_CONFIG) --libs $(NLLIBNAME))
 CFLAGS += $(shell $(PKG_CONFIG) --cflags $(NLLIBNAME))
+endif # NO_PKG_CONFIG
 
 ifeq ($(V),1)
 Q=