From 14ed7bbd4d5ebbfd83d39af16d2185432d63a808 Mon Sep 17 00:00:00 2001 From: methodus Date: Thu, 4 Oct 2012 06:12:02 +0200 Subject: Finnally got the plugin interface working, hurray... --- plugins/provider/vdrProvider/Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'plugins/provider/vdrProvider') diff --git a/plugins/provider/vdrProvider/Makefile b/plugins/provider/vdrProvider/Makefile index 1220a55..7a798d2 100644 --- a/plugins/provider/vdrProvider/Makefile +++ b/plugins/provider/vdrProvider/Makefile @@ -16,10 +16,11 @@ VERSION = $(shell grep 'static const char \*VERSION *=' $(SCHEMA)Provider.cpp | ### The C++ compiler and options: -CXX ?= gcc +CXX ?= g++ CXXFLAGS ?= -g -O3 -Wall -Werror=overloaded-virtual -Wno-parentheses -fPIC UPNPDIR ?= ../../.. +VDRPLUGINDIR = /usr/lib/vdr/plugins/ APIVERSION = $(shell sed -ne '/define UPNPPLUGIN_VERSION/s/^.*"\(.*\)".*$$/\1/p' $(UPNPDIR)/include/plugin.h) @@ -29,6 +30,8 @@ DEFINES += -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFIL OBJS = $(SCHEMA)Provider.o +LIBS = -L$(VDRPLUGINDIR) -Wl,-R$(VDRPLUGINDIR) -lvdr-upnp + all: libupnp-$(SCHEMA)-provider.so ### Implicit rules: -- cgit v1.2.3