From e9f8d708cf3d9f765b2d4210b78f245aede19b53 Mon Sep 17 00:00:00 2001 From: louis Date: Sat, 4 Apr 2015 14:31:18 +0200 Subject: adapted Makefiles to work also in a LCLBLD environment --- libskindesignerapi/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libskindesignerapi/Makefile') 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)\" -- cgit v1.2.3