diff options
| author | louis <louis.braun@gmx.de> | 2015-04-12 17:26:21 +0200 |
|---|---|---|
| committer | louis <louis.braun@gmx.de> | 2015-04-12 17:26:21 +0200 |
| commit | fc54961f39e27c141d5b0764c22414117eaf2910 (patch) | |
| tree | c2363dd96aadd7729b3981c558793a33d3c1fd58 /Makefile | |
| parent | b2ae6071fcf736178bb85dee69c7cad954fc9261 (diff) | |
| download | vdr-plugin-weatherforecast-fc54961f39e27c141d5b0764c22414117eaf2910.tar.gz vdr-plugin-weatherforecast-fc54961f39e27c141d5b0764c22414117eaf2910.tar.bz2 | |
adapted makefile for LCLBLD
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -54,10 +54,26 @@ DEFINES += -DPLUGIN_NAME_I18N='"$(PLUGIN)"' LIBS += $(shell pkg-config --libs libcurl) LIBS += $(shell pkg-config --cflags --libs jansson) +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 \ |
