From 2384aaad4e4a7a18f5b44165b12f84c033c740fc Mon Sep 17 00:00:00 2001 From: louis Date: Sun, 12 Apr 2015 17:21:41 +0200 Subject: [PATCH] adapted libskindesignerapi makefile for LCLBLD --- HISTORY | 1 + libskindesignerapi/Makefile | 8 ++++++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/HISTORY b/HISTORY index b98e802..0e65a6e 100644 --- a/HISTORY +++ b/HISTORY @@ -292,4 +292,5 @@ Version 0.4.2 - added more info if debugImage is activted in config - added possibility for blinking images, texts, rectangles, ellipses and slopes +- adapted libskindesignerapi makefile for LCLBLD diff --git a/libskindesignerapi/Makefile b/libskindesignerapi/Makefile index fa1ce56..403a764 100644 --- a/libskindesignerapi/Makefile +++ b/libskindesignerapi/Makefile @@ -22,7 +22,7 @@ PKGCFG = $(if $(VDRDIR),$(shell pkg-config --silence-errors --variable=$(1) $(VD CXXFLAGS = $(call PKGCFG,cxxflags) LDFLAGS = -shared -Wl,-soname,$(SONAME) -DEFINES += -DAPIVERSION=$(MAJOR) -DLIBVERSION=\"$(VERSION)\" +DEFINES += -DLIBAPIVERSION=$(MAJOR) -DLIBVERSION=\"$(VERSION)\" INCLUDES += SRCS = $(wildcard *.c) @@ -47,6 +47,10 @@ $(DEPFILE): Makefile $(TARGET_LIB): $(OBJS) $(CXX) ${LDFLAGS} -o $@ $^ + if [ -n "$(LCLBLD)" ] ; then \ + ln -s $(TARGET_LIB) $(LIBNAME).so ; \ + ln -s $(TARGET_LIB) $(SONAME) ; \ + fi # pkg-config @@ -84,7 +88,7 @@ install: install-lib install-pc install-includes .PHONY: clean clean: - -rm -f ${TARGET_LIB} ${OBJS} $(DEPFILE) $(LIBNAME).pc $(LIBNAME).so $(ARCHIVE).tgz + -rm -f ${TARGET_LIB} ${OBJS} $(DEPFILE) $(LIBNAME).pc $(LIBNAME).so $(SONAME) $(ARCHIVE).tgz dist: clean @-rm -rf $(TMPDIR)/$(ARCHIVE)