mirror of
git://sourceware.org/git/libabigail.git
synced 2024-12-21 09:20:38 +00:00
0d738e2b95
* tests/test-utils.h (is_dir, ensure_dir_path_created) (ensure_parent_dir_created): Move these directories manipulation utilities from here to ... * tools/abg-tools-utils.h (is_dir, ensure_dir_path_created) (ensure_parent_dir_created): ... here in this new file. (dir_name, base_name): Declare these new functions. * tests/test-utils.cc (is_dir, ensure_dir_path_created) (ensure_parent_dir_created): Likewise, move these to ... * tools/abg-tools-utils.cc (is_dir, ensure_dir_path_created) (ensure_parent_dir_created): ... here in this new file. (dir_name, base_name): Define these. * tools/Makefile.am: New file. Create a new libtoolsutils.la static library with stuff from tools/abg-tools-utils.cc in it. Also create a new 'biar' program with the stuff from the new tools/biar.cc in it. * tools/biar.cc: New file. Contains the code for the new "biar" archive manipulation command line utility. * tests/test-read-write.cc (main): Adjust for the change about ensure_parent_dir_created above. * tests/test-write-read-archive.cc (main): Likewise. * Makefile.am (SUBDIRS): Add the new tools/ sub-directory to the build system. * configure.ac (AC_CONFIG_FILES): Generate tools/Makefile. * tests/Makefile.am: Make libtestutils.la link with the new libtoolsutils.la. Make sure to express the dependencies between libtestutils.la and the binaries that depend on it. Otherwise parallel builds can go awry. Signed-off-by: Dodji Seketeli <dodji@redhat.com>
75 lines
2.2 KiB
Makefile
75 lines
2.2 KiB
Makefile
h=$(abs_srcdir)
|
|
|
|
TESTS= \
|
|
runtestreadwrite \
|
|
runtestwritereadarchive \
|
|
runtestsvg \
|
|
runtestdot
|
|
|
|
noinst_PROGRAMS= $(TESTS) testwalker
|
|
|
|
noinst_LTLIBRARIES = libtestutils.la
|
|
|
|
libtestutils_la_SOURCES= \
|
|
test-utils.h \
|
|
test-utils.cc
|
|
|
|
libtestutils_la_LIBADD=$(top_builddir)/tools/libtoolsutils.la
|
|
libtestutils_la_DEPENDENCIES=$(top_builddir)/tools/libtoolsutils.la
|
|
|
|
libtestutils_la_CXXFLAGS= \
|
|
-DABIGAIL_SRC_DIR=\"${abs_top_srcdir}\" \
|
|
-DABIGAIL_BUILD_DIR=\"${abs_top_builddir}\"
|
|
|
|
runtestreadwrite_SOURCES=$(h)/test-read-write.cc
|
|
runtestreadwrite_LDADD= libtestutils.la $(top_builddir)/src/libabigail.la
|
|
runtestreadwrite_DEPENDENCIES = libtestutils.la
|
|
|
|
runtestwritereadarchive_SOURCES=$(h)/test-write-read-archive.cc
|
|
runtestwritereadarchive_LDADD= libtestutils.la $(top_builddir)/src/libabigail.la $(top_builddir)/tools/libtoolsutils.la
|
|
runtestwritereadarchive_DEPENDENCIES = libtestutils.la
|
|
|
|
runtestsvg_SOURCES=$(h)/test-svg.cc
|
|
runtestsvg_LDADD=$(top_builddir)/src/libabigail.la
|
|
|
|
runtestdot_SOURCES=$(h)/test-dot.cc
|
|
runtestdot_LDADD=$(top_builddir)/src/libabigail.la
|
|
|
|
testwalker_SOURCES=$(h)/test-walker.cc
|
|
testwalker_LDADD=$(top_builddir)/src/libabigail.la
|
|
|
|
AM_CPPFLAGS=-I${abs_top_srcdir}/include \
|
|
-I${abs_top_builddir}/include -I${abs_top_srcdir}/tools
|
|
AM_CXXFLAGS="-std=gnu++11"
|
|
|
|
EXTRA_DIST= \
|
|
data/test-read-write/test0.xml \
|
|
data/test-read-write/test1.xml \
|
|
data/test-read-write/test2.xml \
|
|
data/test-read-write/test3.xml \
|
|
data/test-read-write/test4.xml \
|
|
data/test-read-write/test5.xml \
|
|
data/test-read-write/test6.xml \
|
|
data/test-read-write/test7.xml \
|
|
data/test-read-write/test8.xml \
|
|
data/test-read-write/test9.xml \
|
|
data/test-read-write/test10.xml \
|
|
data/test-read-write/test11.xml \
|
|
data/test-read-write/test12.xml \
|
|
data/test-read-write/test13.xml \
|
|
data/test-read-write/test14.xml \
|
|
data/test-read-write/test15.xml \
|
|
data/test-read-write/test16.xml \
|
|
\
|
|
data/test-write-read-archive/test0.xml \
|
|
data/test-write-read-archive/test1.xml \
|
|
data/test-write-read-archive/test2.xml \
|
|
data/test-write-read-archive/test3.xml \
|
|
data/test-write-read-archive/test4.xml
|
|
|
|
clean-local: clean-local-check
|
|
.PHONY: clean-local-check
|
|
|
|
clean-local-check:
|
|
-rm -rf ${builddir}/output *.svg *.gv
|