diff options
author | Dieter Hametner <dh (plus) vdr (at) gekrumbel (dot) de> | 2008-04-20 20:01:50 +0200 |
---|---|---|
committer | Dieter Hametner <dh (plus) vdr (at) gekrumbel (dot) de> | 2008-04-20 20:01:50 +0200 |
commit | 0b917d2c8dc2a6a3f64e9157f196fc0367419194 (patch) | |
tree | 42641ff717133cf3f0b6d39703ad7c3c0e280c43 /Makefile | |
parent | b3e67f7e4dd338672a3019cc56310512df547dca (diff) | |
download | vdr-plugin-live-0b917d2c8dc2a6a3f64e9157f196fc0367419194.tar.gz vdr-plugin-live-0b917d2c8dc2a6a3f64e9157f196fc0367419194.tar.bz2 |
Changed CXXFLAGS to ommit well known but anoying warnings when compiling
sources generated through the tntnet ecppc precompiler.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 11 |
1 files changed, 7 insertions, 4 deletions
@@ -18,14 +18,16 @@ VERSION = $(shell grep '\#define LIVEVERSION ' setup.h | awk '{ print $$3 }' | s CXX ?= g++ -### tntnet produces some compiler warnings, so we add -Wno-unused-variable -Wno-non-virtual-dtor for nice output ;) -CXXFLAGS ?= -fPIC -O2 -Wall -Woverloaded-virtual -Wno-unused-variable -Wno-non-virtual-dtor +### 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 +### something be sure to check pages/Makefile too. +CXXFLAGS ?= -fPIC -O2 -Wall LDFLAGS ?= -fPIC -g ECPPC ?= ecppc CXXFLAGS += `tntnet-config --cxxflags` -LIBS += $(shell tntnet-config --libs) +LIBS += $(shell tntnet-config --libs) ### The directory environment: @@ -85,8 +87,9 @@ all: libvdr-$(PLUGIN).so $(I18NTARG) ### Implicit rules: +### all source compiled here shall warn about overloaded virtuals %.o: %.cpp - $(CXX) $(CXXFLAGS) -c $(DEFINES) $(INCLUDES) $< + $(CXX) $(CXXFLAGS) -Woverloaded-virtual -c $(DEFINES) $(INCLUDES) $< # Dependencies: |