From patchwork Thu Dec 18 14:16:53 2008 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sidney Amani X-Patchwork-Id: 14674 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from bombadil.infradead.org (bombadil.infradead.org [18.85.46.34]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id DF180DDF3D for ; Fri, 19 Dec 2008 01:17:59 +1100 (EST) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.68 #1 (Red Hat Linux)) id 1LDJgN-0005Av-4x; Thu, 18 Dec 2008 14:16:55 +0000 Received: from yw-out-1718.google.com ([74.125.46.153]) by bombadil.infradead.org with esmtp (Exim 4.68 #1 (Red Hat Linux)) id 1LDJgL-00058N-QD for linux-mtd@lists.infradead.org; Thu, 18 Dec 2008 14:16:54 +0000 Received: by yw-out-1718.google.com with SMTP id 5so169919ywm.72 for ; Thu, 18 Dec 2008 06:16:53 -0800 (PST) Received: by 10.150.202.9 with SMTP id z9mr3573910ybf.144.1229609813301; Thu, 18 Dec 2008 06:16:53 -0800 (PST) Received: by 10.151.82.16 with HTTP; Thu, 18 Dec 2008 06:16:53 -0800 (PST) Message-ID: <52e42efe0812180616u59242b0eucccaccdd5e276f22@mail.gmail.com> Date: Thu, 18 Dec 2008 15:16:53 +0100 From: "Sidney Amani" To: linux-mtd@lists.infradead.org Subject: [PATCH 2/2] Makefile export libraries headers MIME-Version: 1.0 Content-Disposition: inline X-Google-Sender-Auth: 68ab038345ab9f2e X-Spam-Score: 0.0 (/) X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.9 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-mtd-bounces@lists.infradead.org Errors-To: linux-mtd-bounces+incoming=patchwork.ozlabs.org@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