Removed some redundancy in the Makefile/Make.global/Make.config mechanism

This commit is contained in:
Klaus Schmidinger
2012-12-19 12:10:28 +01:00
parent 8e54caa205
commit 4132f5e745
16 changed files with 244 additions and 385 deletions

View File

@@ -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: