summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorchriszero <zerov83@gmail.com>2015-03-15 12:46:04 +0100
committerchriszero <zerov83@gmail.com>2015-03-15 12:46:04 +0100
commit5ffd91556f73336f91e1fc96da2af36e6e7e5660 (patch)
treee397497642a9a154a1ef4fde82c8265c3cd4331d /Makefile
parent2788b2cbe68b4b481f3a080658cc433d2927b4fb (diff)
downloadvdr-plugin-plex-5ffd91556f73336f91e1fc96da2af36e6e7e5660.tar.gz
vdr-plugin-plex-5ffd91556f73336f91e1fc96da2af36e6e7e5660.tar.bz2
Refactoring0.1.4
Own files for OsdMenus Bump version to 0.1.4
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile23
1 files changed, 6 insertions, 17 deletions
diff --git a/Makefile b/Makefile
index a7fec6f..705cb85 100644
--- a/Makefile
+++ b/Makefile
@@ -16,9 +16,6 @@ LIBS += -lPocoUtil -lPocoNet -lPocoNetSSL -lPocoXML -lPocoFoundation -lpcrecpp
CONFIG := #-DDEBUG # uncomment to build DEBUG
-
-_CFLAGS += $(shell pkg-config --cflags libpcrecpp)
-
### The version number of this plugin (taken from the main source file):
VERSION = $(shell grep 'static const char \*const VERSION *=' $(PLUGIN).h | awk '{ print $$7 }' | sed -e 's/[";]//g')
@@ -42,13 +39,6 @@ export CXXFLAGS = $(call PKGCFG,cxxflags)
CXXFLAGS += -std=gnu++0x
#CXXFLAGS += -std=c++11
-ifeq ($(CFLAGS),)
-$(error CFLAGS not set)
-endif
-ifeq ($(CXXFLAGS),)
-$(error CXXFLAGS not set)
-endif
-
### The version number of VDR's plugin API:
APIVERSION = $(call PKGCFG,apiversion)
@@ -73,13 +63,6 @@ INCLUDES +=
DEFINES += -DPLUGIN_NAME_I18N='"$(PLUGIN)"' -DPLUGIN='"$(PLUGIN)"' -D_GNU_SOURCE $(CONFIG) \
$(if $(GIT_REV), -DGIT_REV='"$(GIT_REV)"')
-### Make it standard
-
-override CXXFLAGS += $(_CFLAGS) $(DEFINES) $(INCLUDES) \
- -g -W -Wall -Wextra -Winit-self -Werror=overloaded-virtual
-override CFLAGS += $(_CFLAGS) $(DEFINES) $(INCLUDES) \
- -g -W -Wall -Wextra -Winit-self -Wdeclaration-after-statement
-
### The object files (add further files here):
OBJS = $(PLUGIN).o \
@@ -103,6 +86,7 @@ OBJS = $(PLUGIN).o \
PVideo.o \
Stream.o \
Media.o \
+ plexOsd.o \
SRCS = $(wildcard $(OBJS:.o=.c)) $(PLUGIN).cpp
@@ -110,6 +94,11 @@ SRCS = $(wildcard $(OBJS:.o=.c)) $(PLUGIN).cpp
all: $(SOFILE) i18n
+### Implicit rules:
+
+%.o: %.cpp
+ $(CXX) $(CXXFLAGS) -c $(DEFINES) $(INCLUDES) -o $@ $<
+
### Dependencies:
MAKEDEP = $(CXX) -MM -MG