From 33108091a580ac0c9f23dc2571e36ab22c58ca89 Mon Sep 17 00:00:00 2001 From: darkcoven Date: Mon, 7 Oct 2013 22:20:23 +0200 Subject: [PATCH] Lib: provide libngadmin.pc --- .gitignore | 1 + configure.ac | 1 + lib/src/Makefile.am | 3 +++ lib/src/libngadmin.pc.in | 13 +++++++++++++ 4 files changed, 18 insertions(+) create mode 100644 lib/src/libngadmin.pc.in diff --git a/.gitignore b/.gitignore index 4c5b258..3fdd61b 100644 --- a/.gitignore +++ b/.gitignore @@ -5,6 +5,7 @@ *.so *.a *.la +*.pc ngcli ngspy lib/doc/ diff --git a/configure.ac b/configure.ac index ff5d019..eeafab3 100644 --- a/configure.ac +++ b/configure.ac @@ -97,6 +97,7 @@ AC_CONFIG_FILES([ lib/Makefile lib/include/Makefile lib/src/Makefile + lib/src/libngadmin.pc cli/Makefile cli/man/Makefile cli/src/Makefile diff --git a/lib/src/Makefile.am b/lib/src/Makefile.am index 11c6d34..58371ab 100644 --- a/lib/src/Makefile.am +++ b/lib/src/Makefile.am @@ -1,4 +1,7 @@ +pkgconfigdir = $(libdir)/pkgconfig +pkgconfig_DATA = libngadmin.pc + lib_LTLIBRARIES = libngadmin.la libngadmin_la_SOURCES = network.c bitrate.c firmware.c libconf.c mirror.c misc.c \ diff --git a/lib/src/libngadmin.pc.in b/lib/src/libngadmin.pc.in new file mode 100644 index 0000000..3655f66 --- /dev/null +++ b/lib/src/libngadmin.pc.in @@ -0,0 +1,13 @@ + +prefix=@prefix@ +exec_prefix=@exec_prefix@ +libdir=@libdir@ +includedir=@includedir@ + +Name: libngadmin +Description: Library to manage Netgear switches using NSDP protocol +Version: @VERSION@ +Requires: +Libs: -L${libdir} -lngadmin +Cflags: -I${includedir} + -- 2.39.5