summaryrefslogtreecommitdiff
path: root/tools/Makefile.am
blob: 6ed5b295de26310c2d111f394e4f1baa58126a0a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Makefile for rpm tools.

AUTOMAKE_OPTIONS = 1.4 foreign

INCLUDES = \
	-I$(top_srcdir) \
	-I$(top_srcdir)/build \
	-I$(top_srcdir)/lib \
	-I$(top_srcdir)/popt \
	@INCPATH@ \
	-I$(top_srcdir)/misc

EXTRA_DIST =	fstrcmp.c message.c str-list.c rpmchecksig.c
mylibs=	$(top_builddir)/build/.libs/librpmbuild.a \
	$(top_builddir)/lib/.libs/librpm.a \
	$(top_builddir)/popt/.libs/libpopt.a \
	@LIBMISC@

LDADD = $(top_builddir)/lib/.libs/librpm.a @LIBMISC@

noinst_PROGRAMS = \
	dump dumpdb javadeps rpmarchive rpmheader rpminject rpmlead rpmsignature

rpminject_LDADD =	$(mylibs)

pkgbindir = @RPMCONFIGDIR@
pkgbin_PROGRAMS = rpmgettext rpmputtext

rpmgettext_SOURCES =	rpmgettext.c
rpmgettext_LDADD =	$(mylibs)

rpmputtext_SOURCES =	rpmgettext.c
rpmputtext_LDADD =	$(mylibs)

## Dumpdb requires fprint.o (in libmisc) and this requires realpath
## (from libmisc).
dumpdb_LDADD = $(mylibs)

$(PROGRAMS): $(mylibs)