From cbfa6a761c6fae20b21bd793762462f90f69402d Mon Sep 17 00:00:00 2001 From: louis Date: Sun, 12 Apr 2015 17:24:20 +0200 Subject: adapted makefile for LCLBLD --- HISTORY | 3 +++ Makefile | 16 ++++++++++++++++ 2 files changed, 19 insertions(+) diff --git a/HISTORY b/HISTORY index e9b8826..5ee1e7d 100644 --- a/HISTORY +++ b/HISTORY @@ -29,4 +29,7 @@ Version 0.1.0 Version 0.1.1 - fixed missing delete of channel group grid +- adapted makefile for LCLBLD + +Version 0.1.2 diff --git a/Makefile b/Makefile index 931e01c..c20f671 100644 --- a/Makefile +++ b/Makefile @@ -49,10 +49,26 @@ SOFILE = libvdr-$(PLUGIN).so DEFINES += -DPLUGIN_NAME_I18N='"$(PLUGIN)"' +ifdef LCLBLD + +SKINDESIGNER_PATH = $(shell pwd)/../skindesigner +LIBSKINDESIGNERAPI_PATH = $(SKINDESIGNER_PATH)/libskindesignerapi + +# make sure the lib and pkg-config file exists +DUMMY:=$(shell $(MAKE) -C $(LIBSKINDESIGNERAPI_PATH) LCLBLD=$(LCLBLD)) + +INCLUDES += -I$(SKINDESIGNER_PATH) +LIBS += -L$(LIBSKINDESIGNERAPI_PATH) $(shell pkg-config --libs $(LIBSKINDESIGNERAPI_PATH)/libskindesignerapi.pc) +DEFINES += -DLIBSKINDESIGNERAPIVERSION='"$(shell pkg-config --modversion $(LIBSKINDESIGNERAPI_PATH)/libskindesignerapi.pc)"' + +else + INCLUDES += $(shell pkg-config --cflags libskindesignerapi) LIBS += $(shell pkg-config --libs libskindesignerapi) DEFINES += -DLIBSKINDESIGNERAPIVERSION='"$(shell pkg-config --modversion libskindesignerapi)"' +endif + ### The object files (add further files here): OBJS = $(PLUGIN).o \ -- cgit v1.2.3