summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorFrank Schmirler <vdr@schmirler.de>2010-12-02 09:57:17 +0100
committerFrank Schmirler <vdr@schmirler.de>2010-12-02 09:57:17 +0100
commit2ec54f75051001accc03c32b42df70cd4a19febd (patch)
tree836d96c9a4688a01745719787a7a0e83804356f8 /Makefile
parente0a00f90aece9cfc54f3d5a1d9098fa29d9dc468 (diff)
downloadvdr-plugin-streamdev-2ec54f75051001accc03c32b42df70cd4a19febd.tar.gz
vdr-plugin-streamdev-2ec54f75051001accc03c32b42df70cd4a19febd.tar.bz2
Snapshot 2010-09-15
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 6 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 2ead512..b375844 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,7 @@
#
# Makefile for a Video Disk Recorder plugin
#
-# $Id: Makefile,v 1.22 2010/07/19 13:49:24 schmirl Exp $
+# $Id: Makefile,v 1.23 2010/08/02 10:36:59 schmirl Exp $
# The main source file name.
#
@@ -35,7 +35,8 @@ TSPLAYVERSNUM = $(shell grep 'define TSPLAY_PATCH_VERSION ' $(VDRDIR)/device.h |
ifeq ($(shell test $(APIVERSNUM) -ge 10713; echo $$?),0)
include $(VDRDIR)/Make.global
-else ifeq ($(shell test $(APIVERSNUM) -ge 10704 -o -n "$(TSPLAYVERSNUM)" ; echo $$?),0)
+else
+ifeq ($(shell test $(APIVERSNUM) -ge 10704 -o -n "$(TSPLAYVERSNUM)" ; echo $$?),0)
DEFINES += -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE
CFLAGS += -fPIC
CXXFLAGS += -fPIC
@@ -43,13 +44,14 @@ else
CFLAGS += -fPIC
CXXFLAGS += -fPIC
endif
+endif
-include $(VDRDIR)/Make.config
### export all vars for sub-makes, using absolute paths
-VDRDIR := $(abspath $(VDRDIR))
-LIBDIR := $(abspath $(LIBDIR))
+VDRDIR := $(shell cd $(VDRDIR) >/dev/null 2>&1 && pwd)
+LIBDIR := $(shell cd $(LIBDIR) >/dev/null 2>&1 && pwd)
export
unexport PLUGIN