diff options
author | methodus <methodus@web.de> | 2012-10-22 16:55:42 +0200 |
---|---|---|
committer | methodus <methodus@web.de> | 2012-10-22 16:55:42 +0200 |
commit | 1868f2796534c293a302f043448a05a2d3dae5b7 (patch) | |
tree | 7184a61083f18f2d3d285b36b85cf01357210589 | |
parent | 5093394ed0e8d4124709432fac420907a8d97c93 (diff) | |
download | vdr-plugin-upnp-1868f2796534c293a302f043448a05a2d3dae5b7.tar.gz vdr-plugin-upnp-1868f2796534c293a302f043448a05a2d3dae5b7.tar.bz2 |
Rearraged makefiles
-rw-r--r-- | Makefile | 24 | ||||
-rw-r--r-- | common.mk | 27 | ||||
-rw-r--r-- | plugins/profiler/vdrDVBProfiler/Makefile | 2 | ||||
-rw-r--r-- | plugins/provider/recProvider/Makefile | 5 | ||||
-rw-r--r-- | upnp.h | 2 |
5 files changed, 30 insertions, 30 deletions
@@ -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 diff --git a/common.mk b/common.mk new file mode 100644 index 0000000..382c101 --- /dev/null +++ b/common.mk @@ -0,0 +1,27 @@ +### The directory environment: + +VDRDIR ?= ../../.. +LIBDIR ?= ../../lib +TMPDIR ?= /tmp +UPNPDIR ?= . + +### The version number of VDR's plugin API (taken from VDR's "config.h"): + +VDRAPIVERSION = $(shell sed -ne '/define APIVERSION/s/^.*"\(.*\)".*$$/\1/p' $(VDRDIR)/config.h) +UPNPAPIVERSION = $(shell sed -ne '/define UPNPPLUGIN_VERSION/s/^.*"\(.*\)".*$$/\1/p' $(UPNPDIR)/include/plugin.h) + +SUBPLUGINVERSION = + +### The C++ compiler and options: + +CXX ?= g++ +ECPPC ?= ecppc +CXXFLAGS ?= -g -O3 -Wall -Werror=overloaded-virtual -Wno-parentheses -fPIC + +### Implicit rules: + +%.cpp: %.ecpp + $(ECPPC) $(ECPPFLAGS) $(ECPPFLAGS_CPP) $< + +%.o: %.cpp + $(CXX) $(CXXFLAGS) -c $(DEFINES) $(INCLUDES) -o $@ $< diff --git a/plugins/profiler/vdrDVBProfiler/Makefile b/plugins/profiler/vdrDVBProfiler/Makefile index 879edb2..d625cb2 100644 --- a/plugins/profiler/vdrDVBProfiler/Makefile +++ b/plugins/profiler/vdrDVBProfiler/Makefile @@ -53,7 +53,7 @@ $(DEPFILE): Makefile libupnp-$(PROFILE)-profiler.so: $(OBJS) $(CXX) $(CXXFLAGS) $(LDFLAGS) -shared $(OBJS) $(LIBS) -o $@ - @cp --remove-destination $@ $@.$(APIVERSION) + @cp --remove-destination $@ $(VDRLIBDIR)/$@.$(APIVERSION) clean: @-rm -f $(OBJS) $(DEPFILE) *.so *.so.$(APIVERSION) core* *~ diff --git a/plugins/provider/recProvider/Makefile b/plugins/provider/recProvider/Makefile index 95f8f41..5de3337 100644 --- a/plugins/provider/recProvider/Makefile +++ b/plugins/provider/recProvider/Makefile @@ -16,14 +16,9 @@ VERSION = $(shell grep 'static const char \*VERSION *=' $(SCHEMA)Provider.cpp | ### The C++ compiler and options: -CXX ?= g++ -CXXFLAGS ?= -g -O3 -Wall -Werror=overloaded-virtual -Wno-parentheses -fPIC - UPNPDIR ?= ../../.. VDRLIBDIR ?= $(UPNPDIR)/../../lib -APIVERSION = $(shell sed -ne '/define UPNPPLUGIN_VERSION/s/^.*"\(.*\)".*$$/\1/p' $(UPNPDIR)/include/plugin.h) - VDRDIR ?= $(UPNPDIR)/../../.. VDRAPIVERSION = $(shell sed -ne '/define APIVERSION/s/^.*"\(.*\)".*$$/\1/p' $(VDRDIR)/config.h) @@ -13,7 +13,7 @@ using namespace upnp; -static const char *VERSION = "0.0.1"; +static const char *VERSION = "1.0.0"; static const char *DESCRIPTION = "UPnP/DLNA compliant Media Server functionality for VDR"; class cPluginUpnp : public cPlugin { |