From bf85e32d0da4fcf6e4f02c9a0cb2388cb8aa1c75 Mon Sep 17 00:00:00 2001 From: Rolf Ahrenberg Date: Sun, 23 Apr 2006 04:20:00 +0300 Subject: [PATCH] =?UTF-8?q?Added=20STRIP=20option=20for=20Makefile=20(Than?= =?UTF-8?q?ks=20to=20Ville=20Skytt=C3=A4).=20Modified=20APIVERSION=20code?= =?UTF-8?q?=20in=20Makefile.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- HISTORY | 5 +++++ Makefile | 7 +++++-- femon.h | 2 +- femonclient-0.0.1/Makefile | 2 +- 4 files changed, 12 insertions(+), 4 deletions(-) diff --git a/HISTORY b/HISTORY index 6ad27df..b4a0b00 100644 --- a/HISTORY +++ b/HISTORY @@ -217,3 +217,8 @@ VDR Plugin 'femon' Revision History 2006-04-20: Version 0.9.9 - Updated for vdr-1.3.47. + +2006-04-23: Version 0.9.10 + +- Added STRIP option for Makefile (Thanks to Ville Skyttä). +- Modified APIVERSION code in Makefile. diff --git a/Makefile b/Makefile index bd1a4a2..5bb2655 100644 --- a/Makefile +++ b/Makefile @@ -9,6 +9,9 @@ # NTSC on/off #FEMON_NTSC = 1 +# Strip debug symbols? Set eg. to /bin/true if not +STRIP = strip + # The official name of this plugin. # This name will be used in the '-P...' option of VDR to load the plugin. # By default the main source file also carries this name. @@ -36,7 +39,7 @@ TMPDIR = /tmp ### The version number of VDR's plugin API (taken from VDR's "config.h"): -APIVERSION = $(shell grep 'define APIVERSION ' $(VDRDIR)/config.h | awk '{ print $$3 }' | sed -e 's/"//g') +APIVERSION = $(shell sed -ne '/define APIVERSION/ { s/^.*"\(.*\)".*$$/\1/; p }' $(VDRDIR)/config.h) ### The name of the distribution archive: @@ -85,7 +88,7 @@ all: libvdr-$(PLUGIN).so libvdr-$(PLUGIN).so: $(OBJS) $(CXX) $(CXXFLAGS) -shared $(OBJS) -o $@ ifndef FEMON_DEBUG - @strip $@ + @$(STRIP) $@ endif @cp $@ $(LIBDIR)/$@.$(APIVERSION) diff --git a/femon.h b/femon.h index d81dec4..674e214 100644 --- a/femon.h +++ b/femon.h @@ -11,7 +11,7 @@ #include -static const char VERSION[] = "0.9.9"; +static const char VERSION[] = "0.9.10"; static const char DESCRIPTION[] = "DVB Signal Information Monitor (OSD)"; static const char MAINMENUENTRY[] = "Signal Information"; diff --git a/femonclient-0.0.1/Makefile b/femonclient-0.0.1/Makefile index fe15918..05bc82e 100644 --- a/femonclient-0.0.1/Makefile +++ b/femonclient-0.0.1/Makefile @@ -30,7 +30,7 @@ TMPDIR = /tmp ### The version number of VDR's plugin API (taken from VDR's "config.h"): -APIVERSION = $(shell grep 'define APIVERSION ' $(VDRDIR)/config.h | awk '{ print $$3 }' | sed -e 's/"//g') +APIVERSION = $(shell sed -ne '/define APIVERSION/ { s/^.*"\(.*\)".*$$/\1/; p }' $(VDRDIR)/config.h) ### The name of the distribution archive: