summaryrefslogtreecommitdiff
path: root/libskindesignerapi/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'libskindesignerapi/Makefile')
-rw-r--r--libskindesignerapi/Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/libskindesignerapi/Makefile b/libskindesignerapi/Makefile
index c8c3a3d..fa1ce56 100644
--- a/libskindesignerapi/Makefile
+++ b/libskindesignerapi/Makefile
@@ -18,7 +18,8 @@ TMPDIR ?= /tmp
### The name of the distribution archive:
ARCHIVE = $(LIBNAME)-$(VERSION)
-CXXFLAGS = $(shell pkg-config --variable=cxxflags vdr)
+PKGCFG = $(if $(VDRDIR),$(shell pkg-config --silence-errors --variable=$(1) $(VDRDIR)/vdr.pc),$(shell pkg-config --silence-errors --variable=$(1) vdr || pkg-config --variable=$(1) ../../../../vdr.pc))
+CXXFLAGS = $(call PKGCFG,cxxflags)
LDFLAGS = -shared -Wl,-soname,$(SONAME)
DEFINES += -DAPIVERSION=$(MAJOR) -DLIBVERSION=\"$(VERSION)\"