From patchwork Thu Dec 18 14:16:53 2008 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [2/2] Makefile export libraries headers Date: Thu, 18 Dec 2008 04:16:53 -0000 From: Sidney Amani X-Patchwork-Id: 14674 Message-Id: <52e42efe0812180616u59242b0eucccaccdd5e276f22@mail.gmail.com> To: linux-mtd@lists.infradead.org >From 9d61143fdeb85b0239bd8e755114c50a45a151ef Mon Sep 17 00:00:00 2001 From: Sidney Amani Date: Wed, 17 Dec 2008 12:50:54 +0100 Subject: [PATCH] Makefile export libraries headers Export headers, if we want to use the previoulsy exported shared libraries we will need them. Signed-off-by: Sidney Amani Signed-off-by: Corentin Chary --- ubi-utils/new-utils/Makefile | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/ubi-utils/new-utils/Makefile b/ubi-utils/new-utils/Makefile index a975a99..560e391 100644 --- a/ubi-utils/new-utils/Makefile +++ b/ubi-utils/new-utils/Makefile @@ -6,7 +6,7 @@ KERNELHDR := ../../include DESTDIR := /usr/local SBINDIR=/usr/sbin MANDIR=/usr/man -INCLUDEDIR=/usr/include +INCLUDEDIR=/include LIBDIR=/lib CC := $(CROSS)gcc @@ -74,6 +74,9 @@ clean: install: ${UTILS} mkdir -p ${DESTDIR}/${SBINDIR} install -m 0755 ${UTILS} ${DESTDIR}/${SBINDIR}/ + for i in $(addsuffix .h, $(LIBS)); do \ + [ -f include/$$i ] && install -m 0755 include/$$i ${DESTDIR}/${LIBDIR}/; \ + done for i in $(addsuffix .so, $(LIBS)); do \ [ -f $$i ] && install -m 0755 $$i ${DESTDIR}/${LIBDIR}/; \ done