summaryrefslogtreecommitdiff
path: root/Makefile.am
diff options
context:
space:
mode:
authorjbj <devnull@localhost>2001-05-08 00:03:14 +0000
committerjbj <devnull@localhost>2001-05-08 00:03:14 +0000
commit9c636fed5b7e038315b77114b1ba9e46051351f4 (patch)
tree33dbf6c6993e679a16a7a7f6ac41f7535b5c232c /Makefile.am
parentd9e5d40dd5b8be2e1304452e61a797f66b5c0a1f (diff)
downloadlibrpm-tizen-9c636fed5b7e038315b77114b1ba9e46051351f4.tar.gz
librpm-tizen-9c636fed5b7e038315b77114b1ba9e46051351f4.tar.bz2
librpm-tizen-9c636fed5b7e038315b77114b1ba9e46051351f4.zip
- create rpmdb.la so that linkage against rpm's db-3.2.9 is possible.
CVS patchset: 4752 CVS date: 2001/05/08 00:03:14
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am31
1 files changed, 20 insertions, 11 deletions
diff --git a/Makefile.am b/Makefile.am
index a731be5ff..0a6596d49 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -10,10 +10,15 @@ EXTRA_DIST = CHANGES CREDITS Doxyheader GROUPS README.amiga INSTALL \
rpm.magic rpmpopt-$(VERSION) rpmqv.c
# XXX TODO: perl
-SUBDIRS = intl po @WITH_DB_SUBDIR@ popt rpmio lib build misc @WITH_PYTHON_SUBDIR@ tools scripts tests doc .
+SUBDIRS = intl po @WITH_DB_SUBDIR@ popt rpmio rpmdb lib build misc @WITH_PYTHON_SUBDIR@ tools scripts tests doc .
-INCLUDES = -I$(top_srcdir)/build -I$(top_srcdir)/lib -I$(top_srcdir)/rpmio \
- -I$(top_srcdir)/popt @INCPATH@
+INCLUDES = \
+ -I$(top_srcdir)/build \
+ -I$(top_srcdir)/lib \
+ -I$(top_srcdir)/rpmdb \
+ -I$(top_srcdir)/rpmio \
+ -I$(top_srcdir)/popt \
+ @INCPATH@
LIBS =
@@ -23,9 +28,10 @@ myLDFLAGS = # -L$(top_builddir)/build/.libs -L$(top_builddir)/lib/.libs \
# XXX libtool can/should generate dependent libs.
# XXX solaris2.6 cannot use *.la with --all-static (downrev binutils/egcs?)
# XXX top_builddir ldpaths are wrong building in tree
-myLDADD = $(top_builddir)/build/librpmbuild.la \
+myLDADD = \
+ $(top_builddir)/build/librpmbuild.la \
$(top_builddir)/lib/librpm.la \
- @libdb3a@ \
+ $(top_builddir)/rpmdb/librpmdb.la \
$(top_builddir)/rpmio/librpmio.la \
$(top_builddir)/popt/libpopt.la \
@INTLLIBS@ @LIBMISC@
@@ -37,7 +43,7 @@ bin_PROGRAMS = rpm2cpio
bin_SCRIPTS = gendiff
pkglibdir = @RPMCONFIGDIR@
-pkglib_PROGRAMS = rpmb rpmdb rpmi rpmk rpmq
+pkglib_PROGRAMS = rpmb rpmd rpmi rpmk rpmq
pkglib_DATA = rpmrc rpmpopt-$(VERSION) macros
pkglib_SCRIPTS = find-provides find-requires mkinstalldirs \
config.guess config.sub
@@ -58,10 +64,10 @@ rpmb_LDADD = rpmb.o $(myLDADD)
rpmb.o: rpmqv.c
$(COMPILE) -DIAM_RPMBT -o $@ -c rpmqv.c
-rpmdb_SOURCES =
-rpmdb_LDFLAGS = @LDFLAGS_STATIC@ $(myLDFLAGS)
-rpmdb_LDADD = rpmdb.o $(myLDADD)
-rpmdb.o: rpmqv.c
+rpmd_SOURCES =
+rpmd_LDFLAGS = @LDFLAGS_STATIC@ $(myLDFLAGS)
+rpmd_LDADD = rpmd.o $(myLDADD)
+rpmd.o: rpmqv.c
$(COMPILE) -DIAM_RPMDB -o $@ -c rpmqv.c
rpmi_SOURCES =
@@ -93,6 +99,7 @@ lclint:
lclint $(DEFS) $(INCLUDES) rpmqv.c $(rpmb_SOURCES) \
`make -s sources -C build` \
`make -s sources -C lib` \
+ `make -s sources -C rpmdb` \
`make -s sources -C rpmio` \
`make -s sources -C popt`
@@ -122,7 +129,9 @@ install-data-local:
@LN_S@ ../lib/rpm/rpmv $(DESTDIR)$(bindir)/rpmverify
rm -f $(DESTDIR)$(bindir)/rpmsign
@LN_S@ ../lib/rpm/rpmk $(DESTDIR)$(bindir)/rpmsign
- for bf in db e i u ; do \
+ rm -f $(DESTDIR)$(bindir)/rpmdb ; \
+ @LN_S@ ../lib/rpm/rpmd $(DESTDIR)$(bindir)/rpmdb ; \
+ for bf in e i u ; do \
rm -f $(DESTDIR)$(bindir)/rpm$$bf ; \
@LN_S@ ../lib/rpm/rpm$$bf $(DESTDIR)$(bindir)/rpm$$bf ; \
done