1 # Makefile for rpm library.
3 include $(top_srcdir)/rpm.am
4 AM_CFLAGS = @RPMCFLAGS@
6 AM_CPPFLAGS = -I$(top_builddir) -I$(top_srcdir) -I$(top_builddir)/include/
7 AM_CPPFLAGS += @WITH_NSS_INCLUDE@
8 AM_CPPFLAGS += @WITH_BEECRYPT_INCLUDE@
9 AM_CPPFLAGS += @WITH_OPENSSL_INCLUDE@
10 AM_CPPFLAGS += @WITH_POPT_INCLUDE@
11 AM_CPPFLAGS += $(ZSTD_CFLAGS)
12 AM_CPPFLAGS += -I$(top_srcdir)/misc
13 AM_CPPFLAGS += -DRPMCONFIGDIR="\"@RPMCONFIGDIR@\""
14 AM_CPPFLAGS += -DLOCALSTATEDIR="\"$(localstatedir)\""
17 usrlib_LTLIBRARIES = librpmio.la
18 librpmio_la_SOURCES = \
19 argv.c base64.c digest.h digest.c macro.c \
20 rpmhook.c rpmio.c rpmlog.c rpmmalloc.c \
21 rpmpgp.c rpmsq.c rpmsw.c url.c \
22 rpmio_internal.h rpmhook.h \
23 rpmstring.c rpmfileutil.c rpmglob.c \
24 rpmkeyring.c rpmstrpool.c
27 librpmio_la_SOURCES += digest_beecrypt.c
30 librpmio_la_SOURCES += digest_openssl.c
32 librpmio_la_SOURCES += digest_nss.c
37 librpmio_la_LDFLAGS = -version-info $(rpm_version_info)
38 librpmio_la_LIBADD = \
51 if WITH_INTERNAL_BEECRYPT
52 librpmio_la_LIBADD += $(libbeecrypt_la)
54 libbeecrypt_la = $(top_builddir)/beecrypt/libbeecrypt_nolibdir.la
56 $(top_builddir)/beecrypt/libbeecrypt_nolibdir.la: $(top_builddir)/beecrypt/libbeecrypt.la
57 sed -e 's/libdir=.*/libdir=/' < $(top_builddir)/beecrypt/libbeecrypt.la > $(top_builddir)/beecrypt/libbeecrypt_nolibdir.la
61 AM_CPPFLAGS += -I$(top_srcdir)/luaext/
62 AM_CPPFLAGS += @LUA_CFLAGS@
63 librpmio_la_SOURCES += rpmlua.c rpmlua.h
64 librpmio_la_LIBADD += @LUA_LIBS@
65 librpmio_la_LIBADD += $(top_builddir)/luaext/libluaext.la