From d3be5479f0a3eee76ab8b98b1c6488b3cf5e50a5 Mon Sep 17 00:00:00 2001 From: methodus Date: Wed, 3 Oct 2012 22:34:14 +0200 Subject: Splitted tools.h into several tool headers to avoid clashed for example when only requiring string tools but not ixml tools. --- plugins/provider/vdrProvider/Makefile | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'plugins/provider/vdrProvider/Makefile') diff --git a/plugins/provider/vdrProvider/Makefile b/plugins/provider/vdrProvider/Makefile index dfbf54f..1220a55 100644 --- a/plugins/provider/vdrProvider/Makefile +++ b/plugins/provider/vdrProvider/Makefile @@ -21,6 +21,8 @@ CXXFLAGS ?= -g -O3 -Wall -Werror=overloaded-virtual -Wno-parentheses -fPIC UPNPDIR ?= ../../.. +APIVERSION = $(shell sed -ne '/define UPNPPLUGIN_VERSION/s/^.*"\(.*\)".*$$/\1/p' $(UPNPDIR)/include/plugin.h) + INCLUDES += -I$(UPNPDIR)/include DEFINES += -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE @@ -45,3 +47,7 @@ $(DEPFILE): Makefile libupnp-$(SCHEMA)-provider.so: $(OBJS) $(CXX) $(CXXFLAGS) $(LDFLAGS) -shared $(OBJS) $(LIBS) -o $@ + @cp --remove-destination $@ $@.$(APIVERSION) + +clean: + @-rm -f $(OBJS) $(DEPFILE) *.so *.so.$(APIVERSION) core* *~ -- cgit v1.2.3