diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2012-12-21 10:14:32 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2012-12-21 10:14:32 +0100 |
commit | 62daedf95e3c00597748006798cc0fd812ebe1b5 (patch) | |
tree | 99c2f36ee206d5baf3a48be965221fda21cc434c /PLUGINS/src/osddemo/Makefile | |
parent | 4132f5e7459b10df0faa9c36b632451e7f7d9afc (diff) | |
download | vdr-62daedf95e3c00597748006798cc0fd812ebe1b5.tar.gz vdr-62daedf95e3c00597748006798cc0fd812ebe1b5.tar.bz2 |
The plugin Makefiles now have a separate 'install' target
Diffstat (limited to 'PLUGINS/src/osddemo/Makefile')
-rw-r--r-- | PLUGINS/src/osddemo/Makefile | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/PLUGINS/src/osddemo/Makefile b/PLUGINS/src/osddemo/Makefile index a400658e..db3ba76f 100644 --- a/PLUGINS/src/osddemo/Makefile +++ b/PLUGINS/src/osddemo/Makefile @@ -1,7 +1,7 @@ # # Makefile for a Video Disk Recorder plugin # -# $Id: Makefile 2.6 2012/12/18 13:35:25 kls Exp $ +# $Id: Makefile 2.7 2012/12/20 13:34:45 kls Exp $ # The official name of this plugin. @@ -15,7 +15,6 @@ VERSION = $(shell grep 'static const char \*VERSION *=' $(PLUGIN).c | awk '{ pri # Use package data if installed...otherwise assume we're under the VDR source directory: PKGCFG = $(if $(VDRDIR),$(shell pkg-config --variable=$(1) $(VDRDIR)/vdr.pc),$(shell pkg-config --variable=$(1) vdr || pkg-config --variable=$(1) ../../../vdr.pc)) -INCDIR ?= $(call PKGCFG,incdir) LIBDIR ?= $(call PKGCFG,libdir) LOCDIR ?= $(call PKGCFG,locdir) # @@ -35,9 +34,13 @@ APIVERSION = $(call PKGCFG,apiversion) ARCHIVE = $(PLUGIN)-$(VERSION) PACKAGE = vdr-$(ARCHIVE) +### The name of the shared object file: + +SOFILE = libvdr-$(PLUGIN).so + ### Includes and Defines (add further entries here): -INCLUDES += -I$(INCDIR) +INCLUDES += DEFINES += -DPLUGIN_NAME_I18N='"$(PLUGIN)"' @@ -47,7 +50,7 @@ OBJS = $(PLUGIN).o ### The main target: -all: libvdr-$(PLUGIN).so +all: $(SOFILE) ### Implicit rules: @@ -65,9 +68,14 @@ $(DEPFILE): Makefile ### Targets: -libvdr-$(PLUGIN).so: $(OBJS) +$(SOFILE): $(OBJS) $(CXX) $(CXXFLAGS) $(LDFLAGS) -shared $(OBJS) -o $@ - @cp --remove-destination $@ $(LIBDIR)/$@.$(APIVERSION) + +install-lib: $(SOFILE) + @mkdir -p $(LIBDIR) + @cp --remove-destination $(SOFILE) $(LIBDIR)/$(SOFILE).$(APIVERSION) + +install: install-lib dist: clean @-rm -rf $(TMPDIR)/$(ARCHIVE) |