summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile24
1 files changed, 1 insertions, 23 deletions
diff --git a/Makefile b/Makefile
index 71adef3..cae7843 100644
--- a/Makefile
+++ b/Makefile
@@ -15,17 +15,7 @@ PLUGIN = upnp
VERSION = $(shell grep 'static const char \*VERSION *=' $(PLUGIN).h | awk '{ print $$6 }' | sed -e 's/[";]//g')
-### The C++ compiler and options:
-
-CXX ?= g++
-ECPPC ?= ecppc
-CXXFLAGS ?= -g -O3 -Wall -Werror=overloaded-virtual -Wno-parentheses
-
-### The directory environment:
-
-VDRDIR ?= ../../..
-LIBDIR ?= ../../lib
-TMPDIR ?= /tmp
+include common.mk
PLUGINDIR= ./PLUGINS
PLUGINLIBDIR= /usr/lib/vdr/plugins/upnp
@@ -38,10 +28,6 @@ include $(VDRDIR)/Make.global
-include $(VDRDIR)/Make.config
-### The version number of VDR's plugin API (taken from VDR's "config.h"):
-
-APIVERSION = $(shell sed -ne '/define APIVERSION/s/^.*"\(.*\)".*$$/\1/p' $(VDRDIR)/config.h)
-
### The name of the distribution archive:
ARCHIVE = $(PLUGIN)-$(VERSION)
@@ -84,14 +70,6 @@ LIBS += -lupnp -lcxxtools -ltntnet -ltntdb -ldl
all: libvdr-$(PLUGIN).so i18n
-### Implicit rules:
-
-%.o: %.cpp
- $(CXX) $(CXXFLAGS) -c $(DEFINES) $(INCLUDES) -o $@ $<
-
-%.cpp: %.ecpp
- $(ECPPC) $(ECPPFLAGS) $(ECPPFLAGS_CPP) $<
-
### Dependencies:
MAKEDEP = $(CXX) -MM -MG