summaryrefslogtreecommitdiff
path: root/Makefile.am
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2010-08-20 12:08:10 +0300
committerPanu Matilainen <pmatilai@redhat.com>2010-08-20 13:49:18 +0300
commitb217529967f972225dc9b7d2e37860885fde1ee1 (patch)
tree8697d585eb08ca8a692c313540f47359d24a1e27 /Makefile.am
parent04b1816f008d465ea5d7fa686e092280c3f104c3 (diff)
downloadrpm-b217529967f972225dc9b7d2e37860885fde1ee1.tar.gz
rpm-b217529967f972225dc9b7d2e37860885fde1ee1.tar.bz2
rpm-b217529967f972225dc9b7d2e37860885fde1ee1.zip
Add a convenience library for stuff common cli-bits into
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am12
1 files changed, 10 insertions, 2 deletions
diff --git a/Makefile.am b/Makefile.am
index 21a5663c5..2b56df7c7 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -84,14 +84,22 @@ rpmconfig_SCRIPTS = find-provides find-requires mkinstalldirs \
DISTCLEANFILES = find-provides
DISTCLEANFILES += find-requires
+noinst_LTLIBRARIES = libcliutils.la
+libcliutils_la_SOURCES = cliutils.h cliutils.c
+libcliutils_la_CPPFLAGS = $(AM_CPPFLAGS)
+libcliutils_la_LIBADD = lib/librpm.la rpmio/librpmio.la
+libcliutils_la_LIBADD += @WITH_POPT_LIB@
+
rpm_SOURCES = rpmqv.c debug.h system.h
rpm_CPPFLAGS = $(AM_CPPFLAGS) -DIAM_RPMDB -DIAM_RPMEIU -DIAM_RPMK -DIAM_RPMQV
-rpm_LDADD = build/librpmbuild.la lib/librpm.la rpmio/librpmio.la
+rpm_LDADD = libcliutils.la
+rpm_LDADD += build/librpmbuild.la lib/librpm.la rpmio/librpmio.la
rpm_LDADD += @WITH_NSS_LIB@ @WITH_POPT_LIB@ @WITH_ZLIB_LIB@
rpmbuild_SOURCES = rpmbuild.c debug.h system.h
rpmbuild_CPPFLAGS = $(AM_CPPFLAGS)
-rpmbuild_LDADD = build/librpmbuild.la lib/librpm.la rpmio/librpmio.la
+rpmbuild_LDADD = libcliutils.la
+rpmbuild_LDADD += build/librpmbuild.la lib/librpm.la rpmio/librpmio.la
rpmbuild_LDADD += @WITH_NSS_LIB@ @WITH_POPT_LIB@ @WITH_ZLIB_LIB@
rpm2cpio_SOURCES = rpm2cpio.c debug.h system.h