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
|
|
|
|
|
2007-12-08 20:02:32 +08:00
|
|
|
AM_CPPFLAGS = -I$(top_builddir) -I$(top_srcdir) -I$(top_builddir)/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@
|
|
|
|
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}\""
|
1998-10-08 18:40:27 +08:00
|
|
|
|
2007-08-27 23:18:04 +08:00
|
|
|
check_PROGRAMS =
|
2008-05-12 17:28:12 +08:00
|
|
|
CLEANFILES =
|
2008-11-26 00:06:31 +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
|
|
|
|
2007-07-25 22:10:57 +08:00
|
|
|
usrlibdir = $(libdir)
|
2002-12-02 05:34:06 +08:00
|
|
|
usrlib_LTLIBRARIES = librpm.la
|
1999-01-23 02:42:31 +08:00
|
|
|
librpm_la_SOURCES = \
|
2008-05-12 17:28:12 +08:00
|
|
|
backend/dbconfig.c backend/db3.c \
|
2009-12-22 18:34:19 +08:00
|
|
|
headerutil.c header.c headerfmt.c header_internal.h \
|
2008-05-12 17:28:12 +08:00
|
|
|
poptDB.c rpmhash.c rpmhash.h 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 \
|
2008-03-17 17:53:27 +08:00
|
|
|
manifest.c manifest.h misc.c package.c \
|
2007-08-10 20:10:52 +08:00
|
|
|
poptALL.c poptI.c poptQV.c psm.c psm.h query.c \
|
2009-04-03 18:07:42 +08:00
|
|
|
rpmal.c rpmal.h rpmchecksig.c rpmds.c rpmfi.c rpmfi_internal.h rpmgi.c \
|
2008-03-17 18:04:39 +08:00
|
|
|
rpminstall.c rpmts_internal.h \
|
2008-02-05 17:43:38 +08:00
|
|
|
rpmlead.c rpmlead.h rpmps.c rpmrc.c \
|
2007-12-03 16:15:46 +08:00
|
|
|
rpmte.c rpmte_internal.h rpmts.c \
|
2007-11-23 14:11:42 +08:00
|
|
|
rpmvercmp.c signature.c signature.h transaction.c \
|
2007-11-27 17:34:23 +08:00
|
|
|
verify.c rpmlock.c rpmlock.h misc.h \
|
2009-01-14 21:09:25 +08:00
|
|
|
legacy.c merge.c \
|
|
|
|
rpmliblua.c rpmliblua.h
|
2007-11-27 17:34:23 +08:00
|
|
|
|
2009-12-07 19:35:53 +08:00
|
|
|
librpm_la_LDFLAGS = -version-info 1:0:0
|
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@ \
|
2005-01-18 07:58:09 +08:00
|
|
|
@WITH_SELINUX_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
|
|
|
|
2008-05-12 17:28:12 +08:00
|
|
|
if WITH_INTERNAL_DB
|
|
|
|
librpm_la_LIBADD += $(libdb_la)
|
|
|
|
else
|
|
|
|
librpm_la_LIBADD += @WITH_DB_LIB@
|
|
|
|
endif
|
|
|
|
|
2009-06-12 13:52:38 +08:00
|
|
|
tagtbl.c: Makefile.am $(srcdir)/rpmtag.h gentagtbl.sh
|
|
|
|
@AWK=${AWK} ${SHELL} $(srcdir)/gentagtbl.sh \
|
|
|
|
$(srcdir)/rpmtag.h > $@.new && \
|
|
|
|
mv -f $@.new $@
|
2008-05-12 17:28:12 +08:00
|
|
|
BUILT_SOURCES = tagtbl.c
|
|
|
|
|
|
|
|
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)
|
|
|
|
|
|
|
|
rpmlibexec_PROGRAMS =
|
|
|
|
|
|
|
|
rpmlibexec_PROGRAMS += rpmdb_archive
|
|
|
|
rpmdb_archive_SOURCES =
|
|
|
|
rpmdb_archive_LDADD = \
|
|
|
|
$(top_builddir)/db3/db_archive.o \
|
|
|
|
$(top_builddir)/db3/util_sig.o \
|
|
|
|
librpm.la
|
|
|
|
|
|
|
|
rpmlibexec_PROGRAMS += rpmdb_checkpoint
|
|
|
|
rpmdb_checkpoint_SOURCES =
|
|
|
|
rpmdb_checkpoint_LDADD = \
|
|
|
|
$(top_builddir)/db3/db_checkpoint.o \
|
|
|
|
$(top_builddir)/db3/util_log.o \
|
|
|
|
$(top_builddir)/db3/util_sig.o \
|
|
|
|
librpm.la
|
|
|
|
|
|
|
|
rpmlibexec_PROGRAMS += rpmdb_deadlock
|
|
|
|
rpmdb_deadlock_SOURCES =
|
|
|
|
rpmdb_deadlock_LDADD = \
|
|
|
|
$(top_builddir)/db3/db_deadlock.o \
|
|
|
|
$(top_builddir)/db3/util_log.o \
|
|
|
|
$(top_builddir)/db3/util_sig.o \
|
|
|
|
librpm.la
|
|
|
|
|
|
|
|
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_printlog
|
|
|
|
rpmdb_printlog_SOURCES =
|
|
|
|
rpmdb_printlog_LDADD = \
|
|
|
|
$(top_builddir)/db3/db_printlog.o \
|
|
|
|
$(top_builddir)/db3/btree_autop.o \
|
|
|
|
$(top_builddir)/db3/crdel_autop.o \
|
|
|
|
$(top_builddir)/db3/db_autop.o \
|
|
|
|
$(top_builddir)/db3/dbreg_autop.o \
|
|
|
|
$(top_builddir)/db3/fileops_autop.o \
|
|
|
|
$(top_builddir)/db3/hash_autop.o \
|
|
|
|
$(top_builddir)/db3/qam_autop.o \
|
|
|
|
$(top_builddir)/db3/rep_autop.o \
|
|
|
|
$(top_builddir)/db3/txn_autop.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_svc
|
|
|
|
rpmdb_svc_SOURCES =
|
|
|
|
rpmdb_svc_LDADD = \
|
|
|
|
$(top_builddir)/db3/db_server_proc.o \
|
|
|
|
$(top_builddir)/db3/db_server_svc.o \
|
|
|
|
$(top_builddir)/db3/db_server_util.o \
|
|
|
|
$(top_builddir)/db3/gen_db_server.o \
|
|
|
|
$(top_builddir)/db3/util_log.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)
|