summaryrefslogtreecommitdiff
path: root/Make.config.template
diff options
context:
space:
mode:
Diffstat (limited to 'Make.config.template')
-rw-r--r--Make.config.template20
1 files changed, 9 insertions, 11 deletions
diff --git a/Make.config.template b/Make.config.template
index 08f9ece8..3a4e3842 100644
--- a/Make.config.template
+++ b/Make.config.template
@@ -6,20 +6,16 @@
# See the main source file 'vdr.c' for copyright information and
# how to reach the author.
#
-# $Id: Make.config.template 2.10 2012/10/09 10:32:32 kls Exp $
+# $Id: Make.config.template 2.11 2012/12/18 17:37:54 kls Exp $
### The C compiler and options:
CC = gcc
CFLAGS = -g -O3 -Wall
+CFLAGS += -fPIC
CXX = g++
-CXXFLAGS = -g -O3 -Wall -Werror=overloaded-virtual -Wno-parentheses
-
-ifdef PLUGIN
-CFLAGS += -fPIC
-CXXFLAGS += -fPIC
-endif
+CXXFLAGS = $(CFLAGS) -Werror=overloaded-virtual -Wno-parentheses
# Use 'make M32=1 ...' to build a 32-bit version of VDR on a 64-bit machine:
ifdef M32
@@ -35,9 +31,10 @@ MANDIR = $(PREFIX)/man
BINDIR = $(PREFIX)/bin
# By default locale and plugin files are built under the source directory:
-LOCDIR = ./locale
-PLUGINDIR = ./PLUGINS
-PLUGINLIBDIR = $(PLUGINDIR)/lib
+INCDIR = $(CWD)/include
+LOCDIR = $(CWD)/locale
+PLUGINDIR = $(CWD)/PLUGINS
+LIBDIR = $(PLUGINDIR)/lib
# By default VDR requires only one single directory to operate:
VIDEODIR = /video
# Activate the following line to build VDR according to the FHS ("File system Hierarchy Standard"):
@@ -47,8 +44,9 @@ VIDEODIR = /srv/vdr/video
CONFDIR = /var/lib/vdr
CACHEDIR = /var/cache/vdr
RESDIR = $(PREFIX)/share/vdr
+INCDIR = $(PREFIX)/include
LOCDIR = $(PREFIX)/share/locale
-PLUGINLIBDIR = $(PREFIX)/lib/vdr
+LIBDIR = $(PREFIX)/lib/vdr
endif
### The remote control: