summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--plugins/profiler/vdrDVBProfiler/Makefile47
-rw-r--r--plugins/provider/vdrProvider/Makefile47
2 files changed, 94 insertions, 0 deletions
diff --git a/plugins/profiler/vdrDVBProfiler/Makefile b/plugins/profiler/vdrDVBProfiler/Makefile
new file mode 100644
index 0000000..78affa5
--- /dev/null
+++ b/plugins/profiler/vdrDVBProfiler/Makefile
@@ -0,0 +1,47 @@
+#
+# Makefile for a UPnP profiler plugin
+#
+# $Id$
+#
+
+#
+# This is the profile of the profiler plugin. It is used
+# to determine how a resource may be accessed.
+#
+PROFILE = dvb
+
+### The version number of this plugin (taken from the main source file):
+
+VERSION = $(shell grep 'static const char \*VERSION *=' $(PROFILE).cpp | awk '{ print $$6 }' | sed -e 's/[";]//g')
+
+### The C++ compiler and options:
+
+CXX ?= gcc
+CXXFLAGS ?= -g -O3 -Wall -Werror=overloaded-virtual -Wno-parentheses -fPIC
+
+UPNPDIR ?= ../../..
+
+INCLUDES += -I$(UPNPDIR)/include
+
+DEFINES += -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE
+
+OBJS = $(PROFILE).cpp
+
+all: libupnp-$(PROFILE)-profiler.so
+
+### Implicit rules:
+
+%.o: %.cpp
+ $(CXX) $(CXXFLAGS) -c $(DEFINES) $(INCLUDES) -o $@ $<
+
+### Dependencies:
+
+MAKEDEP = $(CXX) -MM -MG
+DEPFILE = .dependencies
+$(DEPFILE): Makefile
+ @$(MAKEDEP) $(DEFINES) $(INCLUDES) $(OBJS:%.o=%.cpp) > $@
+
+-include $(DEPFILE)
+
+libupnp-$(PROFILE)-provider.so: $(OBJS)
+ $(CXX) $(CXXFLAGS) $(LDFLAGS) -shared $(OBJS) $(LIBS) -o $@
diff --git a/plugins/provider/vdrProvider/Makefile b/plugins/provider/vdrProvider/Makefile
new file mode 100644
index 0000000..8bc602e
--- /dev/null
+++ b/plugins/provider/vdrProvider/Makefile
@@ -0,0 +1,47 @@
+#
+# Makefile for a UPnP provider plugin
+#
+# $Id$
+#
+
+#
+# This is the schema of the provider plugin. It is used
+# to determine how a resource may be accessed.
+#
+SCHEMA = vdr
+
+### The version number of this plugin (taken from the main source file):
+
+VERSION = $(shell grep 'static const char \*VERSION *=' $(SCHEMA)Provider.cpp | awk '{ print $$6 }' | sed -e 's/[";]//g')
+
+### The C++ compiler and options:
+
+CXX ?= gcc
+CXXFLAGS ?= -g -O3 -Wall -Werror=overloaded-virtual -Wno-parentheses -fPIC
+
+UPNPDIR ?= ../../..
+
+INCLUDES += -I$(UPNPDIR)/include
+
+DEFINES += -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE
+
+OBJS = $(SCHEMA)Provider.cpp
+
+all: libupnp-$(SCHEMA)-provider.so
+
+### Implicit rules:
+
+%.o: %.cpp
+ $(CXX) $(CXXFLAGS) -c $(DEFINES) $(INCLUDES) -o $@ $<
+
+### Dependencies:
+
+MAKEDEP = $(CXX) -MM -MG
+DEPFILE = .dependencies
+$(DEPFILE): Makefile
+ @$(MAKEDEP) $(DEFINES) $(INCLUDES) $(OBJS:%.o=%.cpp) > $@
+
+-include $(DEPFILE)
+
+libupnp-$(SCHEMA)-provider.so: $(OBJS)
+ $(CXX) $(CXXFLAGS) $(LDFLAGS) -shared $(OBJS) $(LIBS) -o $@