* [PATCH] iw/Makefile use pkg-config if passed from environmental var.
@ 2009-05-13 9:16 Karl Hiramoto
0 siblings, 0 replies; only message in thread
From: Karl Hiramoto @ 2009-05-13 9:16 UTC (permalink / raw)
To: linux-wireless
This patch makes cross compiling easier.
Signed-off-by: Karl Hiramoto <karl@hiramoto.org>
---
Makefile | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/Makefile b/Makefile
index 6d232c5..56a11e6 100644
--- a/Makefile
+++ b/Makefile
@@ -5,6 +5,7 @@ MAKEFLAGS += --no-print-directory
PREFIX ?= /usr
BINDIR ?= $(PREFIX)/bin
MANDIR ?= $(PREFIX)/share/man
+PKG_CONFIG ?= pkg-config
MKDIR ?= mkdir -p
INSTALL ?= install
@@ -16,8 +17,8 @@ CFLAGS += -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing
OBJS = iw.o genl.o event.o info.o phy.o interface.o ibss.o station.o util.o mesh.o mpath.o scan.o reg.o version.o reason.o status.o
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)
+NL1FOUND := $(shell $(PKG_CONFIG) --atleast-version=1 libnl-1 && echo Y)
+NL2FOUND := $(shell $(PKG_CONFIG) --atleast-version=2 libnl-2.0 && echo Y)
ifeq ($(NL1FOUND),Y)
NLLIBNAME = libnl-1
--
1.6.0.6
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2009-05-13 9:17 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-05-13 9:16 [PATCH] iw/Makefile use pkg-config if passed from environmental var Karl Hiramoto
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.