Makefile: make PKG_CONFIG overridable (patch by Helmut Grohne)
This commit is contained in:
parent
884e4da673
commit
9f5ac89aa4
5
Makefile
5
Makefile
@ -14,6 +14,7 @@ ifndef SYSCONFDIR
|
|||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
PKG_CONFIG ?= pkg-config
|
||||||
CFLAGS+=-Wall -Wshadow -Wpointer-arith -Wcast-qual -Wsign-compare
|
CFLAGS+=-Wall -Wshadow -Wpointer-arith -Wcast-qual -Wsign-compare
|
||||||
CFLAGS+=-g
|
CFLAGS+=-g
|
||||||
CFLAGS+=-std=gnu99
|
CFLAGS+=-std=gnu99
|
||||||
@ -40,8 +41,8 @@ OS:=$(shell uname)
|
|||||||
ifeq ($(OS),Linux)
|
ifeq ($(OS),Linux)
|
||||||
CPPFLAGS+=-DLINUX
|
CPPFLAGS+=-DLINUX
|
||||||
CPPFLAGS+=-D_GNU_SOURCE
|
CPPFLAGS+=-D_GNU_SOURCE
|
||||||
CFLAGS += $(shell pkg-config --cflags libnl-genl-3.0)
|
CFLAGS += $(shell $(PKG_CONFIG) --cflags libnl-genl-3.0)
|
||||||
LIBS += $(shell pkg-config --libs libnl-genl-3.0)
|
LIBS += $(shell $(PKG_CONFIG) --libs libnl-genl-3.0)
|
||||||
LIBS+=-lasound
|
LIBS+=-lasound
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user