2002-03-25 23:16:26 +03:00
# Makefile for rpm library.
AUTOMAKE_OPTIONS = 1.4 foreign
2014-02-16 01:53:11 +04:00
AM_CPPFLAGS = -I. \
2002-03-25 23:16:26 +03:00
-I$( top_srcdir) /build \
-I$( top_srcdir) /rpmdb \
-I$( top_srcdir) /rpmio \
@INCPATH@
pkgincdir = $( pkgincludedir)
noinst_HEADERS = \
2017-01-14 16:42:53 +03:00
header.h misc.h rpmcli.h rpmlib.h stringbuf.h \
2009-10-02 11:47:28 +04:00
al.h cpio.h depends.h fsm.h header_internal.h \
2002-03-25 23:16:26 +03:00
manifest.h psm.h \
2010-09-11 01:34:05 +04:00
rpmlead.h set.h signature.h
2002-03-25 23:16:26 +03:00
mylibpaths = \
-L$( top_builddir) /lib/.libs \
-L$( top_builddir) /rpmdb/.libs \
2002-03-25 23:58:05 +03:00
-L$( top_builddir) /rpmio/.libs
2002-03-25 23:16:26 +03:00
2003-11-24 23:44:29 +03:00
mylibs = -lrpm -lrpmdb -lrpmio @LIBS@ @LIBINTL@
2002-03-25 23:16:26 +03:00
LIBS =
lib_LTLIBRARIES = librpm.la
librpm_la_SOURCES = \
2012-09-01 00:11:21 +04:00
al.c closeall.c cpio.c depends.c formats.c fs.c fsm.c \
2009-10-04 16:30:36 +04:00
header_internal.c manifest.c misc.c order.c package.c \
2002-03-25 23:16:26 +03:00
problems.c poptI.c poptK.c poptQV.c psm.c query.c \
2005-10-15 18:44:31 +04:00
rpmchecksig.c rpminstall.c rpmlead.c rpmlibprov.c rpmrc.c \
2010-09-11 01:34:05 +04:00
set.c signature.c stringbuf.c transaction.c \
2002-03-25 23:16:26 +03:00
verify.c
librpm_la_LDFLAGS = -release @VERSION@
2010-10-20 13:04:43 +04:00
librpm_la_LIBADD = $( top_builddir) /rpmdb/librpmdb.la $( top_builddir) /rpmio/librpmio.la @LIBPOPT@ @LIBBEECRYPT@ @WITH_SELINUX_LIB@
2003-11-24 23:44:29 +03:00
librpm_la_DEPENDENCIES = $( top_builddir) /rpmdb/librpmdb.la $( top_builddir) /rpmio/librpmio.la
2002-03-25 23:16:26 +03:00
2011-06-07 10:30:59 +04:00
noinst_PROGRAMS = test-set
test_set_SOURCES = set.c
2014-02-16 01:53:11 +04:00
test_set_CPPFLAGS = $( AM_CPPFLAGS) -DSELF_TEST
2011-06-07 10:30:59 +04:00
test_set_LDADD = $( top_builddir) /rpmio/librpmio.la
2002-03-25 23:16:26 +03:00
.PHONY : sources
sources :
@echo $( librpm_la_SOURCES:%= lib/%)
.PHONY : lclint
lclint :
2014-02-16 01:53:11 +04:00
lclint $( DEFS) $( AM_CPPFLAGS) $( librpm_la_SOURCES)
2002-03-25 23:16:26 +03:00
th : th .c librpm .la
2014-02-16 01:53:11 +04:00
$( CC) $( CFLAGS) $( DEFS) $( AM_CPPFLAGS) -o $@ $< $( mylibpaths) $( mylibs) $( LIBS)
2002-03-25 23:16:26 +03:00
trb : trb .o librpm .la
2014-02-16 01:53:11 +04:00
$( LINK) @LDFLAGS_STATIC@ $( CFLAGS) $( DEFS) $( AM_CPPFLAGS) -o $@ trb.o $( mylibs) $( LIBS)
2002-03-25 23:16:26 +03:00
trhn : trhn .o librpm .la
2014-02-16 01:53:11 +04:00
$( LINK) @LDFLAGS_STATIC@ $( CFLAGS) $( DEFS) $( AM_CPPFLAGS) -o $@ trhn.o $( mylibs) $( LIBS)