csomh / source-git / rpm

Forked from source-git/rpm 4 years ago
Clone
2ff057
# Makefile for rpm library.
2ff057
2ff057
include $(top_srcdir)/rpm.am
2ff057
AM_CFLAGS = @RPMCFLAGS@
2ff057
2ff057
AM_CPPFLAGS = -I$(top_builddir) -I$(top_srcdir) -I$(top_builddir)/include/
2ff057
AM_CPPFLAGS += @WITH_NSS_INCLUDE@
2ff057
AM_CPPFLAGS += @WITH_BEECRYPT_INCLUDE@
2ff057
AM_CPPFLAGS += @WITH_OPENSSL_INCLUDE@
2ff057
AM_CPPFLAGS += @WITH_POPT_INCLUDE@
2ff057
AM_CPPFLAGS += $(ZSTD_CFLAGS)
2ff057
AM_CPPFLAGS += -I$(top_srcdir)/misc
2ff057
AM_CPPFLAGS += -DRPMCONFIGDIR="\"@RPMCONFIGDIR@\""
2ff057
AM_CPPFLAGS += -DLOCALSTATEDIR="\"$(localstatedir)\""
2ff057
2ff057
usrlibdir = $(libdir)
2ff057
usrlib_LTLIBRARIES = librpmio.la
2ff057
librpmio_la_SOURCES = \
2ff057
	argv.c base64.c digest.h digest.c macro.c \
2ff057
	rpmhook.c rpmio.c rpmlog.c rpmmalloc.c \
2ff057
	rpmpgp.c rpmsq.c rpmsw.c url.c \
2ff057
	rpmio_internal.h rpmhook.h \
2ff057
	rpmstring.c rpmfileutil.c rpmglob.c \
2ff057
	rpmkeyring.c rpmstrpool.c
2ff057
2ff057
if WITH_BEECRYPT
2ff057
librpmio_la_SOURCES += digest_beecrypt.c
2ff057
else
2ff057
if WITH_OPENSSL
2ff057
librpmio_la_SOURCES += digest_openssl.c
2ff057
else
2ff057
librpmio_la_SOURCES += digest_nss.c
2ff057
endif
2ff057
endif
2ff057
2ff057
2ff057
librpmio_la_LDFLAGS = -version-info $(rpm_version_info)
2ff057
librpmio_la_LIBADD = \
2ff057
	../misc/libmisc.la \
2ff057
	@WITH_NSS_LIB@ \
2ff057
	@WITH_BEECRYPT_LIB@ \
2ff057
	@WITH_OPENSSL_LIB@ \
2ff057
	@WITH_BZ2_LIB@ \
2ff057
	@WITH_ZLIB_LIB@ \
2ff057
	@WITH_LIBELF_LIB@ \
2ff057
	@WITH_POPT_LIB@ \
2ff057
	@WITH_LZMA_LIB@ \
2ff057
	$(ZSTD_LIBS) \
2ff057
	-lpthread
2ff057
2ff057
if WITH_INTERNAL_BEECRYPT
2ff057
librpmio_la_LIBADD += $(libbeecrypt_la)
2ff057
2ff057
libbeecrypt_la = $(top_builddir)/beecrypt/libbeecrypt_nolibdir.la
2ff057
2ff057
$(top_builddir)/beecrypt/libbeecrypt_nolibdir.la: $(top_builddir)/beecrypt/libbeecrypt.la
2ff057
	sed -e 's/libdir=.*/libdir=/' < $(top_builddir)/beecrypt/libbeecrypt.la > $(top_builddir)/beecrypt/libbeecrypt_nolibdir.la
2ff057
endif
2ff057
2ff057
if WITH_LUA
2ff057
AM_CPPFLAGS += -I$(top_srcdir)/luaext/
2ff057
AM_CPPFLAGS += @LUA_CFLAGS@
2ff057
librpmio_la_SOURCES += rpmlua.c rpmlua.h
2ff057
librpmio_la_LIBADD += @LUA_LIBS@
2ff057
librpmio_la_LIBADD += $(top_builddir)/luaext/libluaext.la
2ff057
endif
2ff057
2ff057
check_PROGRAMS =
2ff057