diff options
author | Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> | 2013-05-01 15:13:46 +0200 |
---|---|---|
committer | Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> | 2013-05-01 15:13:46 +0200 |
commit | e0a03d41603c92643a34ca5ef44a70bd2e983e8e (patch) | |
tree | 5e0d2b38386345cc72aec4fe5b5965f3afe67c3c | |
parent | 34e6a610ea30c76e749a7b92937546c5e5ef8809 (diff) | |
download | vdr-plugin-inputdev-e0a03d41603c92643a34ca5ef44a70bd2e983e8e.tar.gz vdr-plugin-inputdev-e0a03d41603c92643a34ca5ef44a70bd2e983e8e.tar.bz2 |
makefile: added section to allow build within vdr sources
[#1327]
-rw-r--r-- | Makefile | 24 |
1 files changed, 24 insertions, 0 deletions
@@ -228,3 +228,27 @@ gen-keymap.perf: Makefile @$(CC) $(call _buildflags,C) -imacros 'linux/input.h' -E -dN - </dev/null | \ $(SED) $(KEYMAP_SED) | sort -n >>$@.tmp @mv $@.tmp $@ + + +### {{{ VDR localbuild compat section +### +ifeq "$(origin VDRDIR)" "command line" +## Do not remove it. vdr greps for these magic strings +# $(LIBDIR)/$(APIVERSION) +# PKGCFG +PKG_CONFIG_PATH := $(VDRDIR)$(if $(PKG_CONFIG_PATH),:$(PKG_CONFIG_PATH)) +export PKG_CONFIG_PATH + +AM_CPPFLAGS += -I${VDRDIR}/include + +# The 'shell' function does not take makefile variables into account; +# pass it manually +VDR_CFLAGS = $(shell env PKG_CONFIG_PATH=${PKG_CONFIG_PATH} ${PKG_CONFIG} --variable=cflags vdr) +VDR_CXXFLAGS = $(shell env PKG_CONFIG_PATH=${PKG_CONFIG_PATH} ${PKG_CONFIG} --variable=cxxflags vdr) + +all: compat-symlink +compat-symlink: $(vdr_PLUGINS) + rm -f libvdr-$(PLUGIN).so + ln -s libvdr-$(PLUGIN).so.$(APIVERSION) libvdr-$(PLUGIN).so +endif +### }}} VDR localbuild compat section |