From patchwork Fri Oct 9 20:35:31 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Brad Bishop X-Patchwork-Id: 1381354 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [203.11.71.2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4C9RTt3lFDz9sTs for ; Tue, 13 Oct 2020 18:08:34 +1100 (AEDT) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=fuzziesquirrel.com Received: from bilbo.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 4C9RTt2vmCzDqjv for ; Tue, 13 Oct 2020 18:08:34 +1100 (AEDT) X-Original-To: pdbg@lists.ozlabs.org Delivered-To: pdbg@lists.ozlabs.org Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=fuzziesquirrel.com (client-ip=173.167.31.197; helo=bajor.fuzziesquirrel.com; envelope-from=bradleyb@fuzziesquirrel.com; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=fuzziesquirrel.com X-Greylist: delayed 543 seconds by postgrey-1.36 at bilbo; Sat, 10 Oct 2020 07:44:59 AEDT Received: from bajor.fuzziesquirrel.com (mail.fuzziesquirrel.com [173.167.31.197]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4C7Knl5GtSzDqR2 for ; Sat, 10 Oct 2020 07:44:58 +1100 (AEDT) X-Virus-Scanned: amavisd-new at fuzziesquirrel.com From: Brad Bishop To: pdbg@lists.ozlabs.org Date: Fri, 9 Oct 2020 16:35:31 -0400 Message-Id: <20201009203531.1808109-1-bradleyb@fuzziesquirrel.com> MIME-Version: 1.0 X-Mailman-Approved-At: Tue, 13 Oct 2020 18:08:32 +1100 Subject: [Pdbg] [PATCH] libpdbg: Add pkgconfig X-BeenThere: pdbg@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "mailing list for https://github.com/open-power/pdbg development" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: pdbg-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Pdbg" Add a pdbg.pc for build systems that make use of pkgconfig. Signed-off-by: Brad Bishop --- Makefile.am | 3 +++ configure.ac | 1 + libpdbg/pdbg.pc.in | 11 +++++++++++ 3 files changed, 15 insertions(+) create mode 100644 libpdbg/pdbg.pc.in diff --git a/Makefile.am b/Makefile.am index dce09ab..385529c 100644 --- a/Makefile.am +++ b/Makefile.am @@ -122,6 +122,9 @@ pdbg_LDADD = libpdbg.la libccan.a \ pdbg_LDFLAGS = -Wl,--whole-archive,-lpdbg,--no-whole-archive lib_LTLIBRARIES = libpdbg.la +pkgconfiglibdir = ${libdir}/pkgconfig +pkgconfiglib_DATA = libpdbg/pdbg.pc + noinst_LTLIBRARIES = libcronus.la libsbefifo.la libcronus_la_SOURCES = \ diff --git a/configure.ac b/configure.ac index 0f8b9de..04b14aa 100644 --- a/configure.ac +++ b/configure.ac @@ -35,6 +35,7 @@ fi AC_CONFIG_MACRO_DIR([m4]) AC_CONFIG_HEADERS([config.h]) AC_CONFIG_FILES([Makefile]) +AC_CONFIG_FILES([libpdbg/pdbg.pc]) AC_LANG(C) case "$host" in diff --git a/libpdbg/pdbg.pc.in b/libpdbg/pdbg.pc.in new file mode 100644 index 0000000..f39d56e --- /dev/null +++ b/libpdbg/pdbg.pc.in @@ -0,0 +1,11 @@ +prefix=@prefix@ +exec_prefix=@exec_prefix@ +libdir=@libdir@ +includedir=@includedir@ + +Name: pdbg +Description: POWER processor debugger +URL: https://github.com/open-power/pdbg +Version: @VERSION@ +Libs: -L@libdir@ -lpdbg +Cflags: -I@includedir@