1998-10-08 18:40:27 +08:00
|
|
|
# Makefile for rpm library.
|
|
|
|
|
2008-05-12 17:28:12 +08:00
|
|
|
include $(top_srcdir)/rpm.am
|
2016-12-09 16:31:58 +08:00
|
|
|
AM_CFLAGS = @RPMCFLAGS@
|
2008-05-12 17:28:12 +08:00
|
|
|
|
2007-12-08 20:02:32 +08:00
|
|
|
AM_CPPFLAGS = -I$(top_builddir) -I$(top_srcdir) -I$(top_builddir)/include/
|
2016-02-22 09:08:20 +08:00
|
|
|
AM_CPPFLAGS += @WITH_BEECRYPT_INCLUDE@
|
2007-11-02 16:02:40 +08:00
|
|
|
AM_CPPFLAGS += @WITH_NSS_INCLUDE@
|
2007-10-17 21:08:01 +08:00
|
|
|
AM_CPPFLAGS += @WITH_POPT_INCLUDE@
|
2017-07-30 08:25:51 +08:00
|
|
|
AM_CPPFLAGS += $(LMDB_CFLAGS)
|
2007-10-17 21:08:01 +08:00
|
|
|
AM_CPPFLAGS += -I$(top_srcdir)/misc
|
2007-08-28 12:46:20 +08:00
|
|
|
AM_CPPFLAGS += -DLOCALEDIR="\"$(localedir)\""
|
2007-08-28 17:33:39 +08:00
|
|
|
AM_CPPFLAGS += -DSYSCONFDIR="\"$(sysconfdir)\""
|
2007-08-31 14:56:21 +08:00
|
|
|
AM_CPPFLAGS += -DLOCALSTATEDIR="\"$(localstatedir)\""
|
2008-11-23 00:08:40 +08:00
|
|
|
AM_CPPFLAGS += -DLIBRPMALIAS_FILENAME="\"rpmpopt-${VERSION}\""
|
2010-11-15 16:18:49 +08:00
|
|
|
AM_CPPFLAGS += -DLIBRPMALIAS_EXECPATH="\"$(bindir)\""
|
1998-10-08 18:40:27 +08:00
|
|
|
|
2010-09-29 17:01:49 +08:00
|
|
|
usrlibdir = $(libdir)
|
|
|
|
|
2007-08-27 23:18:04 +08:00
|
|
|
check_PROGRAMS =
|
2008-05-12 17:28:12 +08:00
|
|
|
CLEANFILES =
|
2010-09-21 19:47:46 +08:00
|
|
|
EXTRA_DIST = gentagtbl.sh tagtbl.C rpmhash.C rpmhash.H
|
2008-05-12 17:28:12 +08:00
|
|
|
EXTRA_PROGRAMS =
|
2000-03-23 23:49:50 +08:00
|
|
|
|
2010-10-22 20:00:49 +08:00
|
|
|
usrlib_LTLIBRARIES = librpm.la
|
1999-01-23 02:42:31 +08:00
|
|
|
librpm_la_SOURCES = \
|
2019-02-01 21:22:30 +08:00
|
|
|
backend/dbi.c backend/dbi.h backend/dummydb.c \
|
2013-03-19 14:38:41 +08:00
|
|
|
backend/dbiset.c backend/dbiset.h \
|
2009-12-22 18:34:19 +08:00
|
|
|
headerutil.c header.c headerfmt.c header_internal.h \
|
2010-09-03 21:57:50 +08:00
|
|
|
rpmdb.c rpmdb_internal.h \
|
2008-05-21 22:59:05 +08:00
|
|
|
fprint.c fprint.h tagname.c rpmtd.c \
|
2010-02-03 22:41:58 +08:00
|
|
|
cpio.c cpio.h depends.c order.c formats.c tagexts.c fsm.c fsm.h \
|
2011-03-10 15:00:07 +08:00
|
|
|
manifest.c manifest.h package.c \
|
2010-03-29 22:14:55 +08:00
|
|
|
poptALL.c poptI.c poptQV.c psm.c query.c \
|
2012-10-05 15:07:52 +08:00
|
|
|
rpmal.c rpmal.h rpmchecksig.c rpmds.c rpmds_internal.h \
|
|
|
|
rpmfi.c rpmfi_internal.h \
|
2010-03-20 01:15:44 +08:00
|
|
|
rpmgi.h rpmgi.c rpminstall.c rpmts_internal.h \
|
2010-03-25 22:46:39 +08:00
|
|
|
rpmlead.c rpmlead.h rpmps.c rpmprob.c rpmrc.c \
|
2010-03-12 14:32:15 +08:00
|
|
|
rpmte.c rpmte_internal.h rpmts.c rpmfs.h rpmfs.c \
|
2007-11-23 14:11:42 +08:00
|
|
|
rpmvercmp.c signature.c signature.h transaction.c \
|
2013-11-15 18:31:00 +08:00
|
|
|
verify.c rpmlock.c rpmlock.h misc.h relocation.c \
|
2016-10-24 17:25:14 +08:00
|
|
|
rpmscript.h rpmscript.c \
|
2011-03-28 17:47:34 +08:00
|
|
|
rpmchroot.c rpmchroot.h \
|
2015-05-12 22:47:23 +08:00
|
|
|
rpmplugins.c rpmplugins.h rpmplugin.h rpmug.c rpmug.h \
|
2017-04-28 15:32:24 +08:00
|
|
|
rpmtriggers.h rpmtriggers.c rpmvs.c rpmvs.h
|
2007-11-27 17:34:23 +08:00
|
|
|
|
2014-06-25 18:13:31 +08:00
|
|
|
librpm_la_LDFLAGS = -version-info $(rpm_version_info)
|
2007-09-11 08:33:56 +08:00
|
|
|
|
|
|
|
librpm_la_LIBADD = \
|
2002-12-15 05:39:19 +08:00
|
|
|
$(top_builddir)/rpmio/librpmio.la \
|
2005-02-17 10:36:37 +08:00
|
|
|
@WITH_POPT_LIB@ \
|
2008-10-26 20:17:16 +08:00
|
|
|
@WITH_CAP_LIB@ \
|
2008-10-26 20:18:17 +08:00
|
|
|
@WITH_ACL_LIB@ \
|
2007-07-24 19:21:32 +08:00
|
|
|
@LIBINTL@
|
2000-06-08 07:25:41 +08:00
|
|
|
|
2011-03-28 17:47:34 +08:00
|
|
|
if WITH_LUA
|
|
|
|
AM_CPPFLAGS += @LUA_CFLAGS@
|
|
|
|
librpm_la_LIBADD += @LUA_LIBS@
|
|
|
|
librpm_la_SOURCES += rpmliblua.c rpmliblua.h
|
|
|
|
endif
|
|
|
|
|
2019-02-01 21:08:24 +08:00
|
|
|
if BDB
|
|
|
|
librpm_la_SOURCES += backend/db3.c
|
2019-02-01 21:36:00 +08:00
|
|
|
if WITH_INTERNAL_DB
|
2008-05-12 17:28:12 +08:00
|
|
|
librpm_la_LIBADD += $(libdb_la)
|
|
|
|
else
|
|
|
|
librpm_la_LIBADD += @WITH_DB_LIB@
|
|
|
|
endif
|
2019-02-01 21:08:24 +08:00
|
|
|
endif
|
2008-05-12 17:28:12 +08:00
|
|
|
|
2015-07-16 23:20:51 +08:00
|
|
|
if NDB
|
|
|
|
librpm_la_SOURCES += \
|
|
|
|
backend/ndb/glue.c \
|
|
|
|
backend/ndb/rpmpkg.c \
|
2015-08-19 17:01:00 +08:00
|
|
|
backend/ndb/rpmpkg.h \
|
2015-07-16 23:20:51 +08:00
|
|
|
backend/ndb/rpmidx.c \
|
2015-08-19 17:01:00 +08:00
|
|
|
backend/ndb/rpmidx.h \
|
|
|
|
backend/ndb/rpmxdb.c \
|
|
|
|
backend/ndb/rpmxdb.h
|
2015-07-16 23:20:51 +08:00
|
|
|
endif
|
|
|
|
|
2017-07-30 08:25:51 +08:00
|
|
|
if LMDB
|
|
|
|
AM_CPPFLAGS += $(LMDB_CFLAGS)
|
|
|
|
librpm_la_LIBADD += $(LMDB_LIBS)
|
|
|
|
librpm_la_SOURCES += \
|
|
|
|
backend/lmdb.c
|
|
|
|
endif
|
|
|
|
|
2010-09-21 19:47:46 +08:00
|
|
|
tagtbl.C: Makefile.am $(srcdir)/rpmtag.h gentagtbl.sh
|
2009-06-12 13:52:38 +08:00
|
|
|
@AWK=${AWK} ${SHELL} $(srcdir)/gentagtbl.sh \
|
|
|
|
$(srcdir)/rpmtag.h > $@.new && \
|
|
|
|
mv -f $@.new $@
|
2010-09-21 19:47:46 +08:00
|
|
|
BUILT_SOURCES = tagtbl.C
|
2008-05-12 17:28:12 +08:00
|
|
|
|
|
|
|
if WITH_INTERNAL_DB
|
|
|
|
# XXX watchout, $(top_builddir)/db3/libdb.la created by this Makefile may surprise
|
|
|
|
libdb_la = $(top_builddir)/db3/libdb.la
|
|
|
|
|
|
|
|
# XXX grrr, force noinst libdb.la for db3.
|
|
|
|
# there are more reliable ways to get the BDB version info, just a dirty
|
|
|
|
# hack for now...
|
|
|
|
BDBVER = $(shell grep ^LIBVERSION $(top_builddir)/db3/Makefile|cut -f2)
|
|
|
|
$(libdb_la): $(top_builddir)/db3/libdb-$(BDBVER).la
|
|
|
|
sed -e"/^libdir=/s/^.*$$/libdir=''/" \
|
|
|
|
< $(top_builddir)/db3/libdb-$(BDBVER).la > $(libdb_la)
|
|
|
|
CLEANFILES += $(libdb_la)
|
|
|
|
|
2010-09-29 17:01:49 +08:00
|
|
|
|
2008-05-12 17:28:12 +08:00
|
|
|
rpmlibexec_PROGRAMS =
|
|
|
|
|
|
|
|
rpmlibexec_PROGRAMS += rpmdb_dump
|
|
|
|
rpmdb_dump_SOURCES =
|
|
|
|
rpmdb_dump_LDADD = \
|
|
|
|
$(top_builddir)/db3/db_dump.o \
|
|
|
|
$(top_builddir)/db3/util_cache.o \
|
|
|
|
$(top_builddir)/db3/util_sig.o \
|
|
|
|
librpm.la
|
|
|
|
|
|
|
|
rpmlibexec_PROGRAMS += rpmdb_load
|
|
|
|
rpmdb_load_SOURCES =
|
|
|
|
rpmdb_load_LDADD = \
|
|
|
|
$(top_builddir)/db3/db_load.o \
|
|
|
|
$(top_builddir)/db3/util_cache.o \
|
|
|
|
$(top_builddir)/db3/util_sig.o \
|
|
|
|
librpm.la
|
|
|
|
|
|
|
|
rpmlibexec_PROGRAMS += rpmdb_recover
|
|
|
|
rpmdb_recover_SOURCES =
|
|
|
|
rpmdb_recover_LDADD = \
|
|
|
|
$(top_builddir)/db3/db_recover.o \
|
|
|
|
$(top_builddir)/db3/util_cache.o \
|
|
|
|
$(top_builddir)/db3/util_sig.o \
|
|
|
|
librpm.la
|
|
|
|
|
|
|
|
rpmlibexec_PROGRAMS += rpmdb_stat
|
|
|
|
rpmdb_stat_SOURCES =
|
|
|
|
rpmdb_stat_LDADD = \
|
|
|
|
$(top_builddir)/db3/db_stat.o \
|
|
|
|
$(top_builddir)/db3/util_cache.o \
|
|
|
|
$(top_builddir)/db3/util_sig.o \
|
|
|
|
librpm.la
|
|
|
|
|
|
|
|
rpmlibexec_PROGRAMS += rpmdb_upgrade
|
|
|
|
rpmdb_upgrade_SOURCES =
|
|
|
|
rpmdb_upgrade_LDADD = \
|
|
|
|
$(top_builddir)/db3/db_upgrade.o \
|
|
|
|
$(top_builddir)/db3/util_cache.o \
|
|
|
|
$(top_builddir)/db3/util_sig.o \
|
|
|
|
librpm.la
|
|
|
|
|
|
|
|
rpmlibexec_PROGRAMS += rpmdb_verify
|
|
|
|
rpmdb_verify_SOURCES =
|
|
|
|
rpmdb_verify_LDADD = \
|
|
|
|
$(top_builddir)/db3/db_verify.o \
|
|
|
|
$(top_builddir)/db3/util_cache.o \
|
|
|
|
$(top_builddir)/db3/util_sig.o \
|
|
|
|
librpm.la
|
|
|
|
endif
|
|
|
|
|
|
|
|
CLEANFILES += $(BUILT_SOURCES)
|