From 1868f2796534c293a302f043448a05a2d3dae5b7 Mon Sep 17 00:00:00 2001 From: methodus Date: Mon, 22 Oct 2012 16:55:42 +0200 Subject: Rearraged makefiles --- common.mk | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 common.mk (limited to 'common.mk') 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 $@ $< -- cgit v1.2.3