summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorRolf Ahrenberg <Rolf.Ahrenberg@sci.fi>2011-02-10 13:37:53 +0200
committerDieter Hametner <dh (plus) vdr (at) gekrumbel (dot) de>2011-02-10 22:41:14 +0100
commitf61e6393290b94f5f4404ca4dc28fc62adbe186f (patch)
tree74c48788eb381a146766e2afa73b003c9c03bc1d /Makefile
parent9f575869f0415b95f15c7641fd9e362cc77b3e20 (diff)
downloadvdr-plugin-live-f61e6393290b94f5f4404ca4dc28fc62adbe186f.tar.gz
vdr-plugin-live-f61e6393290b94f5f4404ca4dc28fc62adbe186f.tar.bz2
Silenced compilation warnings related to internals of TNTNET library.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile18
1 files changed, 7 insertions, 11 deletions
diff --git a/Makefile b/Makefile
index 0e5e0de..a6602db 100644
--- a/Makefile
+++ b/Makefile
@@ -17,6 +17,7 @@ VERSION = $(shell grep '\#define LIVEVERSION ' setup.h | awk '{ print $$3 }' | s
### The C++ compiler and options:
CXX ?= g++
+ECPPC ?= ecppc
### This variable is overriden in pages/Makefile because we don't want the
### extra warnings in the tntnet generated files. So if you change here
@@ -24,11 +25,6 @@ CXX ?= g++
CXXFLAGS ?= -fPIC -O2 -Wall
LDFLAGS ?= -fPIC -g
-ECPPC ?= ecppc
-CXXFLAGS += `tntnet-config --cxxflags`
-
-LIBS += $(shell tntnet-config --libs)
-
### The directory environment:
VDRDIR ?= ../../..
@@ -39,7 +35,6 @@ TMPDIR ?= /tmp
-include $(VDRDIR)/Make.global
-
### Allow user defined options to overwrite defaults:
-include $(VDRDIR)/Make.config
@@ -51,6 +46,9 @@ I18NTARG = $(shell if [ `echo $(APIVERSION) | tr [.] [0]` -ge "10507" ]; then
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 }')
TNTVERS7 = $(shell ver=$(TNTVERSION); if [ $$ver -ge "1606" ]; then echo "yes"; fi)
+CXXFLAGS += $(shell tntnet-config --cxxflags)
+LIBS += $(shell tntnet-config --libs)
+
### The name of the distribution archive:
ARCHIVE = $(PLUGIN)-$(VERSION)
@@ -65,7 +63,6 @@ ifneq ($(TNTVERS7),yes)
endif
DEFINES += -D_GNU_SOURCE -DPLUGIN_NAME_I18N='"$(PLUGIN)"' -DTNTVERSION=$(TNTVERSION)
-export DEFINES
SUBDIRS = pages css javascript
ifneq ($(TNTVERS7),yes)
@@ -91,9 +88,8 @@ all: libvdr-$(PLUGIN).so $(I18NTARG)
### Implicit rules:
-### all source compiled here shall warn about overloaded virtuals
%.o: %.cpp
- $(CXX) $(CXXFLAGS) -Woverloaded-virtual -c $(DEFINES) $(INCLUDES) $<
+ $(CXX) $(CXXFLAGS) -c $(DEFINES) $(INCLUDES) $<
# Dependencies:
@@ -143,10 +139,10 @@ generate-i18n: i18n-template.h $(I18Npot) $(I18Npo) buildutil/pot2i18n.pl
subdirs: $(SUBDIRS)
$(SUBDIRS):
- $(MAKE) -C $@ CXX="$(CXX)" CXXFLAGS="$(CXXFLAGS)" VDRDIR="../$(VDRDIR)" $(MAKECMDGOALS)
+ $(MAKE) -C $@ $(MAKECMDGOALS)
PAGES:
- $(MAKE) -C pages CXX="$(CXX)" CXXFLAGS="$(CXXFLAGS)" VDRDIR="../$(VDRDIR)" .dependencies
+ $(MAKE) -C pages .dependencies
$(VERSIONSUFFIX): FORCE
./buildutil/version-util $(VERSIONSUFFIX) || ./buildutil/version-util -F $(VERSIONSUFFIX)