From: Fridrich Štrba Date: Mon, 19 Jul 2010 08:23:21 +0000 (+0200) Subject: Make makefile respect environment variable PKG_CONFIG X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=03562ea8303b1da332998699f8dcd747581a6d02;p=users%2Fdwmw2%2Fews-sync.git Make makefile respect environment variable PKG_CONFIG --- diff --git a/Makefile b/Makefile index be1d402..13355f8 100644 --- a/Makefile +++ b/Makefile @@ -5,26 +5,30 @@ else OPT_FLAGS := -O2 -g -Wall endif +ifeq ($(PKG_CONFIG),) +PKG_CONFIG=pkg-config +endif + XML2_CFLAGS += $(shell xml2-config --cflags) XML2_LDFLAGS += $(shell xml2-config --libs) ifeq ($(XML2_LDFLAGS),) $(error "No libxml2 support. Cannot continue"); endif -SOUP_CFLAGS += $(shell pkg-config libsoup-2.4 --cflags) -SOUP_LDFLAGS += $(shell pkg-config libsoup-2.4 --libs) +SOUP_CFLAGS += $(shell $(PKG_CONFIG) libsoup-2.4 --cflags) +SOUP_LDFLAGS += $(shell $(PKG_CONFIG) libsoup-2.4 --libs) ifeq ($(SOUP_LDFLAGS),) $(error "No libsoup support. Cannot continue"); endif -ICAL_CFLAGS += $(shell pkg-config libical --cflags) -ICAL_LDFLAGS += $(shell pkg-config libical --libs) +ICAL_CFLAGS += $(shell $(PKG_CONFIG) libical --cflags) +ICAL_LDFLAGS += $(shell $(PKG_CONFIG) libical --libs) ifeq ($(ICAL_LDFLAGS),) $(error "No libical support. Cannot continue"); endif -GLIB_CFLAGS += $(shell pkg-config glib-2.0 --cflags) -GLIB_LDFLAGS += $(shell pkg-config glib-2.0 --libs) +GLIB_CFLAGS += $(shell $(PKG_CONFIG) glib-2.0 --cflags) +GLIB_LDFLAGS += $(shell $(PKG_CONFIG) glib-2.0 --libs) ifeq ($(GLIB_LDFLAGS),) $(error "No glib support. Cannot continue"); endif