adapted Makefiles to work also in a LCLBLD environment

This commit is contained in:
louis
2015-04-04 14:31:18 +02:00
parent dc64252414
commit e9f8d708cf
2 changed files with 21 additions and 5 deletions

View File

@@ -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)\"