summaryrefslogtreecommitdiff
path: root/tools/Makefile.am
blob: 6b7d2eed9fad46b34a1d472a2a1f825784514345 (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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
# Makefile for rpm tools.

AM_CPPFLAGS = -I. \
	-I$(top_srcdir) \
	-I$(top_srcdir)/build \
	-I$(top_srcdir)/lib \
	-I$(top_srcdir)/rpmdb \
	-I$(top_srcdir)/rpmio \
	@WITH_BEECRYPT_INCLUDE@ \
	@WITH_POPT_INCLUDE@ \
	@WITH_LIBELF_INCLUDE@ \
	@WITH_MAGIC_INCLUDE@ \
	-I$(top_srcdir)/misc

EXTRA_PROGRAMS =

LDADD = ../lib/librpm.la

staticLDFLAGS = @LDFLAGS_STATIC@ @LDFLAGS_NPTL@

check_PROGRAMS = dumpdb

pkgbindir = @RPMCONFIGDIR@
pkgbin_PROGRAMS =

EXTRA_PROGRAMS +=	convertdb1
convertdb1_SOURCES =	convertdb1.c

if LIBELF
if LIBDWARF
pkgbin_PROGRAMS +=	debugedit
debugedit_SOURCES =	debugedit.c hashtab.c hashtab.h
# debugedit_LDFLAGS =	$(staticLDFLAGS) \
debugedit_LDFLAGS =	@WITH_LIBELF_LIB@ \
	@WITH_BEECRYPT_LIB@ \
	@WITH_POPT_LIB@
endif
endif

pkgbin_PROGRAMS +=	javadeps
javadeps_SOURCES =	javadeps.c

pkgbin_PROGRAMS +=	rpmcache
rpmcache_SOURCES =	rpmcache.c
#rpmcache_LDFLAGS =	-L$(libdir) # $(staticLDFLAGS)

pkgbin_PROGRAMS +=	rpmdeps
rpmdeps_SOURCES =	rpmdeps.c
#rpmdeps_LDFLAGS =	$(staticLDFLAGS)
rpmdeps_LDADD =		../build/librpmbuild.la

bin_PROGRAMS =		rpmgraph
rpmgraph_SOURCES =	rpmgraph.c
#rpmgraph_LDFLAGS =	$(staticLDFLAGS)

check_PROGRAMS +=	rpminject
rpminject_SOURCES =	rpminject.c
#rpminject_LDFLAGS =	$(staticLDFLAGS)
rpminject_LDADD =	../build/librpmbuild.la

check_PROGRAMS +=	rpmsort
rpmsort_SOURCES =	rpmsort.c
#rpmsort_LDFLAGS =	$(staticLDFLAGS)

if LIBXML2
check_PROGRAMS +=	rpmtool
rpmtool_SOURCES =	rpmtool.c rpmxp.c rpmxp.h
rpmtool_CPPFLAGS =	$(AM_CPPFLAGS) $(libxml2_CFLAGS)
#rpmtool_LDFLAGS =	$(staticLDFLAGS)
rpmtool_LDADD =		../lib/librpm.la $(libxml2_LIBS)

check_PROGRAMS +=	rpmxml
rpmxml_SOURCES =	rpmxml.c rpmxp.h
rpmxml_CPPFLAGS =	$(AM_CPPFLAGS) $(libxml2_CFLAGS)
#rpmxml_LDFLAGS =	$(staticLDFLAGS)
rpmxml_LDADD =		../lib/librpm.la $(libxml2_LIBS)
endif