From 9f20f94efc7c87d8e6b81d17c40dc3c2c04cdfa9 Mon Sep 17 00:00:00 2001 From: Martin Dummer Date: Mon, 5 Nov 2012 07:00:24 +0100 Subject: Makefile: merged changes from vdr plugin sample Makefile --- Makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 2ce3c50..a70724b 100644 --- a/Makefile +++ b/Makefile @@ -22,9 +22,9 @@ CXXFLAGS ?= -fPIC -g -O2 -Wall -Wextra -Woverloaded-virtual -Wno-parentheses ### The directory environment: -VDRDIR = ../../.. -LIBDIR = ../../lib -TMPDIR = /tmp +VDRDIR ?= ../../.. +LIBDIR ?= ../../lib +TMPDIR ?= /tmp ### Allow user defined options to overwrite defaults: @@ -96,7 +96,7 @@ i18n: $(I18Nmsgs) $(I18Npot) ### Targets: libvdr-$(PLUGIN).so: $(OBJS) - $(CXX) $(CXXFLAGS) -shared $(OBJS) -o $@ + $(CXX) $(CXXFLAGS) $(LDFLAGS) -shared $(OBJS) -o $@ @cp --remove-destination $@ $(LIBDIR)/$@.$(APIVERSION) dist: clean -- cgit v1.2.3