From: Johannes Berg Date: Tue, 23 Apr 2013 13:32:27 +0000 (+0200) Subject: makefile: allow passing NO_PKG_CONFIG X-Git-Tag: v3.10~5 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=d0f5db8626b0a67adfc6d676ac3bd16c1feb1053;p=thirdparty%2Fiw.git makefile: allow passing NO_PKG_CONFIG To build iw without pkg-config, you can now do something like $ make NO_PKG_CONFIG=1 LDFLAGS=-lnl --- diff --git a/Makefile b/Makefile index cf6a671..c485b5e 100644 --- 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=