summaryrefslogtreecommitdiff
path: root/Make.config.template
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2012-01-18 12:40:17 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2012-01-18 12:40:17 +0100
commitfbe4f2a0568a1bf893f2bf970edcbb3d345e5db5 (patch)
treef6fe25555abc1fbcce6e2d62030fcdfbf632562e /Make.config.template
parent6469b666bd15110091da0a23a3f4e25a481b0ef7 (diff)
downloadvdr-fbe4f2a0568a1bf893f2bf970edcbb3d345e5db5.tar.gz
vdr-fbe4f2a0568a1bf893f2bf970edcbb3d345e5db5.tar.bz2
Some improvements to the Makefiles
Diffstat (limited to 'Make.config.template')
-rw-r--r--Make.config.template33
1 files changed, 17 insertions, 16 deletions
diff --git a/Make.config.template b/Make.config.template
index 0de5bb97..f128c5b3 100644
--- a/Make.config.template
+++ b/Make.config.template
@@ -6,15 +6,15 @@
# See the main source file 'vdr.c' for copyright information and
# how to reach the author.
#
-# $Id: Make.config.template 2.4 2011/12/04 14:41:00 kls Exp $
+# $Id: Make.config.template 2.5 2012/01/18 12:20:51 kls Exp $
### The C compiler and options:
-CC = gcc
-CFLAGS = -g -O3 -Wall
+CC ?= gcc
+CFLAGS ?= -g -O3 -Wall
-CXX = g++
-CXXFLAGS = -g -O3 -Wall -Woverloaded-virtual -Wno-parentheses
+CXX ?= g++
+CXXFLAGS ?= -g -O3 -Wall -Woverloaded-virtual -Wno-parentheses
ifdef PLUGIN
CFLAGS += -fPIC
@@ -23,23 +23,24 @@ endif
### The directory environment:
-#DVBDIR = /usr/src/v4l-dvb/linux
-MANDIR = /usr/local/man
-BINDIR = /usr/local/bin
+PREFIX ?= $(DESTDIR)/usr/local
+#DVBDIR ?= /usr/src/v4l-dvb/linux
+MANDIR ?= $(PREFIX)/man
+BINDIR ?= $(PREFIX)/bin
-LOCDIR = ./locale
-PLUGINDIR= ./PLUGINS
-PLUGINLIBDIR= $(PLUGINDIR)/lib
-VIDEODIR = /video
-CONFDIR = $(VIDEODIR)
+LOCDIR ?= ./locale
+PLUGINDIR ?= ./PLUGINS
+PLUGINLIBDIR ?= $(PLUGINDIR)/lib
+VIDEODIR ?= /video
+CONFDIR ?= $(VIDEODIR)
### The remote control:
-LIRC_DEVICE = /var/run/lirc/lircd
-RCU_DEVICE = /dev/ttyS1
+LIRC_DEVICE ?= /var/run/lirc/lircd
+RCU_DEVICE ?= /dev/ttyS1
## Define if you want vdr to not run as root
-#VDR_USER = vdr
+#VDR_USER ?= vdr
### You don't need to touch the following: