Make.config

Aus VDR Wiki
(Unterschied zwischen Versionen)
Wechseln zu: Navigation, Suche
K (cp)
(Version 2.0.0)
Zeile 8: Zeile 8:
 
# how to reach the author.
 
# how to reach the author.
 
#
 
#
# $Id: Make.config.template 1.8 2006/04/15 12:28:03 kls Exp $
+
# $Id: Make.config.template 2.19 2013/02/18 10:55:39 kls Exp $
  
 
### The C compiler and options:
 
### The C compiler and options:
  
 
CC      = gcc
 
CC      = gcc
CFLAGS  = -O2
+
CFLAGS  = -g -O3 -Wall
  
 
CXX      = g++
 
CXX      = g++
CXXFLAGS = -fPIC -g -O2 -Wall -Woverloaded-virtual
+
CXXFLAGS = -g -O3 -Wall -Werror=overloaded-virtual -Wno-parentheses
 +
 
 +
# 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:
 
### The directory environment:
  
#DVBDIR  = /usr/src/v4l-dvb/linux
+
# Default directories (adjust as necessary or desired):
MANDIR  = /usr/local/man
+
BINDIR  = /usr/local/bin
+
  
PLUGINDIR= ./PLUGINS
+
#PREFIX    = /usr/local
PLUGINLIBDIR= $(PLUGINDIR)/lib
+
#BINDIR    = $(PREFIX)/bin
VIDEODIR = /video
+
#INCDIR    = $(PREFIX)/include
 +
#LIBDIR    = $(PREFIX)/lib/vdr
 +
#LOCDIR    = $(PREFIX)/share/locale
 +
#MANDIR    = $(PREFIX)/share/man
 +
#PCDIR    = $(PREFIX)/lib/pkgconfig
 +
#RESDIR    = $(PREFIX)/share/vdr
 +
#DVBDIR    = /usr/src/v4l-dvb/linux/include/uapi
 +
 
 +
#VIDEODIR  = /srv/vdr/video
 +
#CONFDIR  = /var/lib/vdr
 +
#CACHEDIR  = /var/cache/vdr
 +
 
 +
# Overrides for preset/legacy configurations:
 +
 
 +
# Use 'make LCLBLD=1' to build locale and plugin files under the source directory:
 +
ifdef LCLBLD
 +
LOCDIR      = $(CWD)/locale
 +
PLUGINDIR   = $(CWD)/PLUGINS
 +
ifndef PLUGIN # don't overwrite for plugins with old makefiles
 +
LIBDIR      = $(PLUGINDIR)/lib
 +
endif
 +
HDRDIR      = $(CWD)/include
 +
endif
 +
 
 +
# Use 'make ONEDIR=1' to have all data in one single directory:
 +
ifdef ONEDIR
 +
VIDEODIR     = /video
 +
CACHEDIR    = $(VIDEODIR)
 +
CONFDIR      = $(VIDEODIR)
 +
RESDIR      = $(VIDEODIR)
 +
endif
 +
 
 +
# Use this if you want to have a central place where you configure compile time
 +
# parameters for plugins:
 +
#PLGCFG = $(CONFDIR)/plugins.mk
  
 
### The remote control:
 
### The remote control:
  
LIRC_DEVICE = /dev/lircd
+
LIRC_DEVICE = /var/run/lirc/lircd
RCU_DEVICE  = /dev/ttyS1
+
  
## Define if you want vdr to not run as root
+
### Define if you want vdr to not run as root:
 
#VDR_USER = vdr
 
#VDR_USER = vdr
  
### You don't need to touch the following:
+
### Fallback for plugins with old makefiles:
 
+
ifdef PLUGIN
ifdef DVBDIR
+
CFLAGS  += -fPIC
INCLUDES += -I$(DVBDIR)/include
+
CXXFLAGS += -fPIC
 
endif
 
endif
 
</pre>
 
</pre>
  
 
[[Kategorie:Entwicklung]]
 
[[Kategorie:Entwicklung]]

Version vom 31. März 2013, 12:06 Uhr

#
# User defined Makefile options for the Video Disk Recorder
#
# Copy this file to 'Make.config' and change the parameters as necessary.
#
# See the main source file 'vdr.c' for copyright information and
# how to reach the author.
#
# $Id: Make.config.template 2.19 2013/02/18 10:55:39 kls Exp $

### The C compiler and options:

CC       = gcc
CFLAGS   = -g -O3 -Wall

CXX      = g++
CXXFLAGS = -g -O3 -Wall -Werror=overloaded-virtual -Wno-parentheses

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

# Default directories (adjust as necessary or desired):

#PREFIX    = /usr/local
#BINDIR    = $(PREFIX)/bin
#INCDIR    = $(PREFIX)/include
#LIBDIR    = $(PREFIX)/lib/vdr
#LOCDIR    = $(PREFIX)/share/locale
#MANDIR    = $(PREFIX)/share/man
#PCDIR     = $(PREFIX)/lib/pkgconfig
#RESDIR    = $(PREFIX)/share/vdr
#DVBDIR    = /usr/src/v4l-dvb/linux/include/uapi

#VIDEODIR  = /srv/vdr/video
#CONFDIR   = /var/lib/vdr
#CACHEDIR  = /var/cache/vdr

# Overrides for preset/legacy configurations:

# Use 'make LCLBLD=1' to build locale and plugin files under the source directory:
ifdef LCLBLD
LOCDIR       = $(CWD)/locale
PLUGINDIR    = $(CWD)/PLUGINS
ifndef PLUGIN # don't overwrite for plugins with old makefiles
LIBDIR       = $(PLUGINDIR)/lib
endif
HDRDIR       = $(CWD)/include
endif

# Use 'make ONEDIR=1' to have all data in one single directory:
ifdef ONEDIR
VIDEODIR     = /video
CACHEDIR     = $(VIDEODIR)
CONFDIR      = $(VIDEODIR)
RESDIR       = $(VIDEODIR)
endif

# Use this if you want to have a central place where you configure compile time
# parameters for plugins:
#PLGCFG = $(CONFDIR)/plugins.mk

### The remote control:

LIRC_DEVICE = /var/run/lirc/lircd

### Define if you want vdr to not run as root:
#VDR_USER = vdr

### Fallback for plugins with old makefiles:
ifdef PLUGIN
CFLAGS   += -fPIC
CXXFLAGS += -fPIC
endif