From afd7dfe40218fba6172625c51798787a48fce9af Mon Sep 17 00:00:00 2001 From: Johns Date: Wed, 21 Dec 2011 12:50:14 +0100 Subject: Initial vdpau support. --- Makefile | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'Makefile') 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): -- cgit v1.2.3