summaryrefslogtreecommitdiff
path: root/libskindesignerapi
diff options
context:
space:
mode:
authorlouis <louis.braun@gmx.de>2015-04-04 14:31:18 +0200
committerlouis <louis.braun@gmx.de>2015-04-04 14:31:18 +0200
commite9f8d708cf3d9f765b2d4210b78f245aede19b53 (patch)
treed214363529b9481a49dd3cb261517abc70f157d5 /libskindesignerapi
parentdc6425241494e6e51e7ee2002aa201b0cbeb515d (diff)
downloadvdr-plugin-skindesigner-e9f8d708cf3d9f765b2d4210b78f245aede19b53.tar.gz
vdr-plugin-skindesigner-e9f8d708cf3d9f765b2d4210b78f245aede19b53.tar.bz2
adapted Makefiles to work also in a LCLBLD environment
Diffstat (limited to 'libskindesignerapi')
-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)\"