summaryrefslogtreecommitdiff
path: root/pages
diff options
context:
space:
mode:
authorDieter Hametner <dh (plus) vdr (at) gekrumbel (dot) de>2015-02-09 01:07:24 +0100
committerDieter Hametner <dh (plus) vdr (at) gekrumbel (dot) de>2015-02-09 01:07:24 +0100
commit33aff426eb96055c8b89894cb2a0d0514483e1c9 (patch)
treec95158db1881add3b7cc70610b64fe39fc464a7b /pages
parent6fd4948898043309957a822e0562596a5cf0b735 (diff)
downloadvdr-plugin-live-33aff426eb96055c8b89894cb2a0d0514483e1c9.tar.gz
vdr-plugin-live-33aff426eb96055c8b89894cb2a0d0514483e1c9.tar.bz2
Change to VDR 2.x compatible Makefiles. This terminates the
compatibility of the LIVE plugin with VDR versions < 1.7.37. This is based on a patch I received by the vdr-mailing-list user 'macmenot'.
Diffstat (limited to 'pages')
-rw-r--r--pages/Makefile34
1 files changed, 3 insertions, 31 deletions
diff --git a/pages/Makefile b/pages/Makefile
index 78a4a9c..520b208 100644
--- a/pages/Makefile
+++ b/pages/Makefile
@@ -1,5 +1,4 @@
-# The official name of this plugin.
-
+### The official name of this plugin.
PLUGIN = live
### Additional options to silence TNTNET warnings
@@ -7,33 +6,11 @@ TNTFLAGS ?= -Wno-overloaded-virtual -Wno-unused-variable
TNTVERSION ?= $(shell tntnet-config --version | sed -e's/\.//g' | sed -e's/pre.*//g' | awk '/^..$$/ { print $$1."000"} /^...$$/ { print $$1."00"} /^....$$/ { print $$1."0" } /^.....$$/ { print $$1 }')
CXXTOOLVER ?= $(shell cxxtools-config --version | sed -e's/\.//g' | sed -e's/pre.*//g' | awk '/^..$$/ { print $$1."000"} /^...$$/ { print $$1."00"} /^....$$/ { print $$1."0" } /^.....$$/ { print $$1 }')
-### The C++ compiler and options:
-
-CXX ?= g++
-AR ?= ar
-ECPPC ?= ecppc
-
-CXXFLAGS ?= -O2 -Woverloaded-virtual -Wall -fPIC
-DEFINES ?= -DPLUGIN_NAME_I18N='"$(PLUGIN)"' -DTNTVERSION=$(TNTVERSION) -DCXXTOOLVER=$(CXXTOOLVER)
-
-### The directory environment:
-
-VDRDIR ?= ../../../..
-
-### Make sure that necessary options are included:
-
--include $(VDRDIR)/Make.global
-
-### Allow user defined options to overwrite defaults:
-
--include $(VDRDIR)/Make.config
### Includes and Defines (add further entries here):
-
INCLUDES += -I$(VDRDIR)/include -I..
### The object files (add further files here):
-
OBJS = menu.o recordings.o schedule.o multischedule.o screenshot.o \
timers.o whats_on.o switch_channel.o keypress.o remote.o \
channels_widget.o edit_timer.o error.o pageelems.o tooltip.o \
@@ -43,10 +20,7 @@ OBJS = menu.o recordings.o schedule.o multischedule.o screenshot.o \
rwd_recording.o setup.o content.o epginfo.o timerconflicts.o \
recstream.o users.o edit_user.o edit_recording.o
-### Default rules:
-
-.PHONY: all clean
-
+### The main target:
all: libpages.a
### Implicit rules:
@@ -57,8 +31,7 @@ all: libpages.a
%.cpp: %.ecpp
$(ECPPC) $(ECPPFLAGS) $(ECPPFLAGS_CPP) $<
-# Dependencies:
-
+### Dependencies:
MAKEDEP = $(CXX) -MM -MG
DEPFILE = .dependencies
$(DEPFILE): Makefile $(OBJS:%.o=%.cpp) $(OBJS:%.o=%.ecpp)
@@ -69,7 +42,6 @@ ifneq ($(MAKECMDGOALS),clean)
endif
### Targets:
-
libpages.a: $(OBJS)
$(AR) r $@ $^