diff options
| author | methodus <methodus@web.de> | 2012-10-22 17:01:03 +0200 |
|---|---|---|
| committer | methodus <methodus@web.de> | 2012-10-22 17:01:03 +0200 |
| commit | 418f4f3ba61c5b148bf0a591071a563b5de2fc19 (patch) | |
| tree | d7338317285697bce86e505a3d3ae1ca1547c9dc /Makefile | |
| parent | 55c6770e0c592cc4c3e6fb1e2ca709b5f0cc5044 (diff) | |
| download | vdr-plugin-upnp-418f4f3ba61c5b148bf0a591071a563b5de2fc19.tar.gz vdr-plugin-upnp-418f4f3ba61c5b148bf0a591071a563b5de2fc19.tar.bz2 | |
Revert "Rearraged makefiles"
This reverts commit 1868f2796534c293a302f043448a05a2d3dae5b7.
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 24 |
1 files changed, 23 insertions, 1 deletions
@@ -15,7 +15,17 @@ PLUGIN = upnp VERSION = $(shell grep 'static const char \*VERSION *=' $(PLUGIN).h | awk '{ print $$6 }' | sed -e 's/[";]//g') -include common.mk +### 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 PLUGINDIR= ./PLUGINS PLUGINLIBDIR= /usr/lib/vdr/plugins/upnp @@ -28,6 +38,10 @@ 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) @@ -70,6 +84,14 @@ 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 |
