mirror of
git://sourceware.org/git/libabigail.git
synced 2024-12-20 17:00:36 +00:00
36ed6e0583
* configure.ac: Support a new --enable-zip-archive option. By default its value is set to the 'auto', meaning that if libzip is installed, that turns the option on -- just like if --enable-zip-archive was called with the value 'yes'; if libzip is not installed, that turns the option off -- just like if --enable-zip-archive was called with the value 'no'. If libzip is detected, the pre-processor macro HAVE_LIBZIP is set to 1. If --enable-zip-archive is turned on, the pre-processor macro WITH_ZIP_ARCHIVE is set to 1. * config.h.in (HAVE_LIBZIP, WITH_ZIP): New define. * src/abg-corpus.cc: Include config.h. Guard the inclusion of abg-libzip-utils.h with the WITH_ZIP_ARCHIVE macro. Likewise for the use of declarations coming from abg-libzip-utils.h. * src/abg-libzip-utils.cc: Include config.h. Guard the file's content with the WITH_ZIP_ARCHIVE macro. * src/abg-reader.cc: Include config.h. Guard the inclusion of abg-libzip-utils.h with the WITH_ZIP_ARCHIVE. Likewise for the use of declarations coming from abg-libzip-utils.h. * src/abg-writer.cc: Likewise. * tests/Makefile.am: Build runtestwritereadarchive and runtestdot only if zip archives are supported. * tools/Makefile.am: The biar program is built only if zip archives are supported. * tools/bidiff.cc: Handle zip archives only if the WITH_ZIP_ARCHIVE macros is defined. * tools/bilint.cc: Likewise. Signed-off-by: Dodji Seketeli <dodji@redhat.com>
44 lines
1.2 KiB
Makefile
44 lines
1.2 KiB
Makefile
AUTOMAKE_OPTIONS=subdir-objects
|
|
|
|
h=$(abs_srcdir)
|
|
|
|
noinst_LTLIBRARIES = libtoolsutils.la
|
|
libtoolsutils_la_SOURCES= \
|
|
abg-tools-utils.h \
|
|
abg-tools-utils.cc
|
|
|
|
if ENABLE_ZIP_ARCHIVE
|
|
bin_PROGRAMS = biar bidiff bilint bidw bisym
|
|
else
|
|
bin_PROGRAMS = bidiff bilint bidw bisym
|
|
endif
|
|
|
|
|
|
if ENABLE_ZIP_ARCHIVE
|
|
biar_SOURCES = biar.cc
|
|
biardir = $(bindir)
|
|
biar_LDFLAGS = $(abs_top_builddir)/src/libabigail.la $(abs_top_builddir)/tools/libtoolsutils.la
|
|
biar_DEPENDENCIES = libtoolsutils.la
|
|
endif
|
|
|
|
bidiff_SOURCES = bidiff.cc
|
|
bidiffdir = $(bindir)
|
|
bidiff_LDFLAGS = $(abs_top_builddir)/src/libabigail.la $(abs_top_builddir)/tools/libtoolsutils.la
|
|
bidiff_DEPENDENCIES = libtoolsutils.la
|
|
|
|
bilint_SOURCES = bilint.cc
|
|
bilintdir = $(bindir)
|
|
bilint_LDFLAGS = $(abs_top_builddir)/src/libabigail.la $(abs_top_builddir)/tools/libtoolsutils.la
|
|
bilint_DEPENDENCIES = libtoolsutils.la
|
|
|
|
bidw_SOURCES = bidw.cc
|
|
bidwdir = $(bindir)
|
|
bidw_LDFLAGS = $(abs_top_builddir)/src/libabigail.la $(abs_top_builddir)/tools/libtoolsutils.la
|
|
bidw_DEPENDENCIES = libtoolsutils.la
|
|
|
|
bisym_SOURCES = bisym.cc
|
|
bisymdir = $(bindir)
|
|
bisym_LDFLAGS = $(abs_top_builddir)/src/libabigail.la
|
|
|
|
AM_CPPFLAGS=-I$(abs_top_srcdir)/include -I$(abs_top_srcdir)/tools
|