summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2012-12-27 11:58:09 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2012-12-27 11:58:09 +0100
commit28441aded5649e2650b9346f42d559768295651c (patch)
tree69a612f1f0150c4740597ed611eb5c10dc3be60c
parent70c4a2d5d518309c7792ace4a9f6603748f39f4a (diff)
downloadvdr-28441aded5649e2650b9346f42d559768295651c.tar.gz
vdr-28441aded5649e2650b9346f42d559768295651c.tar.bz2
DVBDIR is now conveyed to plugins via the CFLAGS; removed some redundancy from Make.config.template
-rw-r--r--HISTORY7
-rw-r--r--Make.config.template10
-rw-r--r--Makefile7
3 files changed, 13 insertions, 11 deletions
diff --git a/HISTORY b/HISTORY
index d1591723..8b63bdcd 100644
--- a/HISTORY
+++ b/HISTORY
@@ -7465,3 +7465,10 @@ Video Disk Recorder Revision History
- Making sure that plugins include the VDR header files from the actual VDR source
directory when doing "make plugins" (suggested by Christoper Reimer).
- Increased the version numbers of all plugins to reflect the recent Makefile changes.
+- Removed the lines
+ ifdef DVBDIR
+ INCLUDES += -I$(DVBDIR)/include
+ endif
+ from the file Make.config.template. If set, DVBDIR is now conveyed to plugins via
+ the CFLAGS.
+- Removed some redundancy from Make.config.template.
diff --git a/Make.config.template b/Make.config.template
index a2cc6976..6399b20a 100644
--- a/Make.config.template
+++ b/Make.config.template
@@ -6,7 +6,7 @@
# See the main source file 'vdr.c' for copyright information and
# how to reach the author.
#
-# $Id: Make.config.template 2.12 2012/12/22 10:54:47 kls Exp $
+# $Id: Make.config.template 2.13 2012/12/27 11:34:05 kls Exp $
### The C compiler and options:
@@ -17,12 +17,10 @@ CXX = g++
CXXFLAGS = $(CFLAGS) -Werror=overloaded-virtual -Wno-parentheses
CFLAGS += -fPIC
-CXXFLAGS += -fPIC
# Use 'make M32=1 ...' to build a 32-bit version of VDR on a 64-bit machine:
ifdef M32
CFLAGS += -m32
-CXXFLAGS += -m32
endif
### The directory environment:
@@ -57,9 +55,3 @@ LIRC_DEVICE = /var/run/lirc/lircd
## Define if you want vdr to not run as root
#VDR_USER = vdr
-
-### You don't need to touch the following:
-
-ifdef DVBDIR
-INCLUDES += -I$(DVBDIR)/include
-endif
diff --git a/Makefile b/Makefile
index ccc74af5..2adb203e 100644
--- a/Makefile
+++ b/Makefile
@@ -4,7 +4,7 @@
# See the main source file 'vdr.c' for copyright information and
# how to reach the author.
#
-# $Id: Makefile 2.37 2012/12/26 10:55:01 kls Exp $
+# $Id: Makefile 2.38 2012/12/27 11:28:21 kls Exp $
.DELETE_ON_ERROR:
@@ -17,7 +17,6 @@ CXX ?= g++
CXXFLAGS ?= $(CFLAGS) -Werror=overloaded-virtual -Wno-parentheses
CFLAGS += -fPIC
-CXXFLAGS += -fPIC
CDEFINES = -D_GNU_SOURCE
CDEFINES += -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE
@@ -49,6 +48,10 @@ PCDIR ?= $(firstword $(subst :, , ${PKG_CONFIG_PATH}:$(shell pkg-config --vari
-include Make.config
+ifdef DVBDIR
+CFLAGS += -I$(DVBDIR)/include
+endif
+
SILIB = $(LSIDIR)/libsi.a
OBJS = audio.o channels.o ci.o config.o cutter.o device.o diseqc.o dvbdevice.o dvbci.o\