1 # Makefile for rpm library.
3 AM_CPPFLAGS = -I$(top_builddir) -I$(top_srcdir) -I$(top_builddir)/include/
4 AM_CPPFLAGS += @WITH_NSS_INCLUDE@
5 AM_CPPFLAGS += @WITH_BEECRYPT_INCLUDE@
6 AM_CPPFLAGS += @WITH_POPT_INCLUDE@
7 AM_CPPFLAGS += -I$(top_srcdir)/misc
8 AM_CPPFLAGS += -DRPMCONFIGDIR="\"@RPMCONFIGDIR@\""
9 AM_CPPFLAGS += -DLOCALSTATEDIR="\"$(localstatedir)\""
12 usrlib_LTLIBRARIES = librpmio.la
13 librpmio_la_SOURCES = \
14 argv.c base64.c digest.h digest.c macro.c \
15 rpmhook.c rpmio.c rpmlog.c rpmmalloc.c \
16 rpmpgp.c rpmsq.c rpmsw.c url.c \
17 rpmio_internal.h rpmhook.h \
18 rpmstring.c rpmfileutil.c rpmglob.c \
19 rpmkeyring.c rpmstrpool.c
22 librpmio_la_SOURCES += digest_beecrypt.c
24 librpmio_la_SOURCES += digest_nss.c
28 librpmio_la_LDFLAGS = -version-info 4:0:1
29 librpmio_la_LIBADD = \
40 if WITH_INTERNAL_BEECRYPT
41 librpmio_la_LIBADD += $(libbeecrypt_la)
43 libbeecrypt_la = $(top_builddir)/beecrypt/libbeecrypt_nolibdir.la
45 $(top_builddir)/beecrypt/libbeecrypt_nolibdir.la: $(top_builddir)/beecrypt/libbeecrypt.la
46 sed -e 's/libdir=.*/libdir=/' < $(top_builddir)/beecrypt/libbeecrypt.la > $(top_builddir)/beecrypt/libbeecrypt_nolibdir.la
50 AM_CPPFLAGS += -I$(top_srcdir)/luaext/
51 AM_CPPFLAGS += @LUA_CFLAGS@
52 librpmio_la_SOURCES += rpmlua.c rpmlua.h
53 librpmio_la_LIBADD += @LUA_LIBS@
54 librpmio_la_LIBADD += $(top_builddir)/luaext/libluaext.la