summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJohns <johns98@gmx.net>2011-12-21 12:50:14 +0100
committerJohns <johns98@gmx.net>2011-12-22 18:01:17 +0100
commitafd7dfe40218fba6172625c51798787a48fce9af (patch)
treea543bc7592e91e5b717407fef5e5424f3e9acd55 /Makefile
parent37192d5b5394a9208a720058f704e433baa70aea (diff)
downloadvdr-plugin-softhddevice-afd7dfe40218fba6172625c51798787a48fce9af.tar.gz
vdr-plugin-softhddevice-afd7dfe40218fba6172625c51798787a48fce9af.tar.bz2
Initial vdpau support.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 9 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 83c1aa3..c14bf51 100644
--- a/Makefile
+++ b/Makefile
@@ -15,12 +15,18 @@ PLUGIN = softhddevice
VERSION = $(shell grep 'static const char \*const VERSION *=' $(PLUGIN).cpp | awk '{ print $$7 }' | sed -e 's/[";]//g')
+### Configuration (edit this for your needs)
+
+CONFIG := -DDEBUG
+CONFIG += $(shell pkg-config --exists libva && echo "-DUSE_VAAPI")
+CONFIG += $(shell pkg-config --exists vdpau && echo "-DUSE_VDPAU")
+
### The C++ compiler and options:
CXX ?= g++
-CXXFLAGS ?= -g -O3 -W -Wall -Wextra -Woverloaded-virtual -fPIC
+CXXFLAGS ?= -g -O2 -W -Wall -Wextra -Woverloaded-virtual -fPIC
override CXXFLAGS += $(DEFINES) $(INCLUDES)
-CFLAGS ?= -g -O3 -W -Wall -Wextra -Winit-self \
+CFLAGS ?= -g -O2 -W -Wall -Wextra -Winit-self \
-Wdeclaration-after-statement -fPIC
#CFLAGS += -Werror
override CFLAGS += $(DEFINES) $(INCLUDES) \
@@ -60,7 +66,7 @@ PACKAGE = vdr-$(ARCHIVE)
INCLUDES += -I$(VDRDIR)/include
-DEFINES += -D_GNU_SOURCE -DPLUGIN_NAME_I18N='"$(PLUGIN)"'
+DEFINES += $(CONFIG) -D_GNU_SOURCE -DPLUGIN_NAME_I18N='"$(PLUGIN)"'
### The object files (add further files here):