diff options
author | Rolf Ahrenberg <Rolf.Ahrenberg@sci.fi> | 2011-02-10 13:37:53 +0200 |
---|---|---|
committer | Dieter Hametner <dh (plus) vdr (at) gekrumbel (dot) de> | 2011-02-10 22:41:14 +0100 |
commit | f61e6393290b94f5f4404ca4dc28fc62adbe186f (patch) | |
tree | 74c48788eb381a146766e2afa73b003c9c03bc1d /css | |
parent | 9f575869f0415b95f15c7641fd9e362cc77b3e20 (diff) | |
download | vdr-plugin-live-f61e6393290b94f5f4404ca4dc28fc62adbe186f.tar.gz vdr-plugin-live-f61e6393290b94f5f4404ca4dc28fc62adbe186f.tar.bz2 |
Silenced compilation warnings related to internals of TNTNET library.
Diffstat (limited to 'css')
-rw-r--r-- | css/Makefile | 31 |
1 files changed, 25 insertions, 6 deletions
diff --git a/css/Makefile b/css/Makefile index d201ab9..a138774 100644 --- a/css/Makefile +++ b/css/Makefile @@ -1,17 +1,36 @@ +# The official name of this plugin. + +PLUGIN = live + +### Additional options to silence TNTNET warnings +TNTFLAGS ?= -Wno-overloaded-virtual -Wno-unused-function +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 }') + +### The C++ compiler and options: + CXX ?= g++ AR ?= ar ECPPC ?= ecppc CXXFLAGS ?= -O2 -Woverloaded-virtual -Wall -fPIC - -CXXFLAGS += `tntnet-config --cxxflags` -LDFLAGS += `tntnet-config --libs` - -INCLUDES += -I.. +DEFINES ?= -DPLUGIN_NAME_I18N='"$(PLUGIN)"' -DTNTVERSION=$(TNTVERSION) ### 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 = styles.o @@ -25,7 +44,7 @@ all: libcss.a ### Implicit rules: %.o: %.cpp - $(CXX) $(CXXFLAGS) -c $(DEFINES) $(INCLUDES) $< + $(CXX) $(CXXFLAGS) $(TNTFLAGS) -c $(DEFINES) $(INCLUDES) $< %.cpp: %.css $(ECPPC) $(ECPPFLAGS) $(ECPPFLAGS_CSS) -b -m "text/css" $< |