2002-11-01 14:05:36 +01:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
#
|
2013-02-18 11:01:28 +01:00
|
|
|
# $Id: Make.config.template 2.19 2013/02/18 10:55:39 kls Exp $
|
2002-11-01 14:05:36 +01:00
|
|
|
|
|
|
|
### The C compiler and options:
|
|
|
|
|
2012-03-20 11:22:30 +01:00
|
|
|
CC = gcc
|
|
|
|
CFLAGS = -g -O3 -Wall
|
2002-11-01 14:05:36 +01:00
|
|
|
|
2012-03-20 11:22:30 +01:00
|
|
|
CXX = g++
|
2013-01-06 18:48:29 +01:00
|
|
|
CXXFLAGS = -g -O3 -Wall -Werror=overloaded-virtual -Wno-parentheses
|
2012-12-22 12:08:31 +01:00
|
|
|
|
2012-10-09 10:43:28 +02:00
|
|
|
# Use 'make M32=1 ...' to build a 32-bit version of VDR on a 64-bit machine:
|
|
|
|
ifdef M32
|
|
|
|
CFLAGS += -m32
|
2013-01-06 18:48:29 +01:00
|
|
|
CXXFLAGS += -m32
|
2012-10-09 10:43:28 +02:00
|
|
|
endif
|
|
|
|
|
2002-11-01 14:05:36 +01:00
|
|
|
### The directory environment:
|
|
|
|
|
2013-01-12 13:50:17 +01:00
|
|
|
# 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
|
2013-02-08 10:31:38 +01:00
|
|
|
#DVBDIR = /usr/src/v4l-dvb/linux/include/uapi
|
2013-01-12 13:50:17 +01:00
|
|
|
|
|
|
|
#VIDEODIR = /srv/vdr/video
|
|
|
|
#CONFDIR = /var/lib/vdr
|
|
|
|
#CACHEDIR = /var/cache/vdr
|
|
|
|
|
|
|
|
# Overrides for preset/legacy configurations:
|
2012-12-28 10:09:41 +01:00
|
|
|
|
2013-01-06 18:48:29 +01:00
|
|
|
# Use 'make LCLBLD=1' to build locale and plugin files under the source directory:
|
|
|
|
ifdef LCLBLD
|
2012-12-19 12:10:28 +01:00
|
|
|
LOCDIR = $(CWD)/locale
|
|
|
|
PLUGINDIR = $(CWD)/PLUGINS
|
2013-01-06 18:48:29 +01:00
|
|
|
ifndef PLUGIN # don't overwrite for plugins with old makefiles
|
2012-12-19 12:10:28 +01:00
|
|
|
LIBDIR = $(PLUGINDIR)/lib
|
2013-01-06 18:48:29 +01:00
|
|
|
endif
|
|
|
|
HDRDIR = $(CWD)/include
|
|
|
|
endif
|
|
|
|
|
|
|
|
# Use 'make ONEDIR=1' to have all data in one single directory:
|
|
|
|
ifdef ONEDIR
|
2012-03-20 11:22:30 +01:00
|
|
|
VIDEODIR = /video
|
2013-01-06 18:48:29 +01:00
|
|
|
CACHEDIR = $(VIDEODIR)
|
|
|
|
CONFDIR = $(VIDEODIR)
|
|
|
|
RESDIR = $(VIDEODIR)
|
2012-09-01 14:03:45 +02:00
|
|
|
endif
|
2005-07-31 11:38:40 +02:00
|
|
|
|
2013-01-12 13:50:17 +01:00
|
|
|
# Use this if you want to have a central place where you configure compile time
|
|
|
|
# parameters for plugins:
|
2013-02-18 11:01:28 +01:00
|
|
|
#PLGCFG = $(CONFDIR)/plugins.mk
|
2013-01-06 18:48:29 +01:00
|
|
|
|
2005-07-31 11:38:40 +02:00
|
|
|
### The remote control:
|
|
|
|
|
2012-03-20 11:22:30 +01:00
|
|
|
LIRC_DEVICE = /var/run/lirc/lircd
|
2006-01-13 16:16:32 +01:00
|
|
|
|
2013-01-06 18:48:29 +01:00
|
|
|
### Define if you want vdr to not run as root:
|
2012-03-20 11:22:30 +01:00
|
|
|
#VDR_USER = vdr
|
2013-01-06 18:48:29 +01:00
|
|
|
|
|
|
|
### Fallback for plugins with old makefiles:
|
|
|
|
ifdef PLUGIN
|
|
|
|
CFLAGS += -fPIC
|
|
|
|
CXXFLAGS += -fPIC
|
|
|
|
endif
|