mirror of
https://github.com/vdr-projects/vdr.git
synced 2025-03-01 10:50:46 +00:00
Removed some redundancy in the Makefile/Make.global/Make.config mechanism
This commit is contained in:
@@ -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:
|
||||
|
Reference in New Issue
Block a user