mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-24 06:35:24 +00:00
9262d88e28
* src/Makefile.am: Create a convenience library, libvirt_test.la, and don't restrict access to *its* symbols. * tests/Makefile.am (LDADDS): Add ../src/libvirt_test.la, so that "configure --disable-shared" no longer provokes link errors. (LIBVIRT): Remove definition. (LDADDS): Remove use. ($(LIBVIRT)): Remove rule. (LDADDS): Use the new convenience library instead. (CLEANFILES): Define. * docs/examples/index.py (dump_Makefile): Append $(COVERAGE_LDFLAGS), to the LDADDS definition, to avoid link error with the combination of --enable-test-coverage and --disable-shared. * docs/examples/Makefile.am: Regenerate. * docs/examples/index.html: Likewise. * qemud/Makefile.am (libvirtd_LDFLAGS): Append $(COVERAGE_LDFLAGS). * src/libvirt_sym.version: Remove some SP-before-TAB.
46 lines
1.2 KiB
Makefile
46 lines
1.2 KiB
Makefile
# -*- buffer-read-only: t -*- vi: set ro:
|
|
# Beware this is autogenerated by index.py
|
|
SUBDIRS=python
|
|
INCLUDES = -I$(top_builddir)/include -I$(top_srcdir)/include -I@srcdir@/include
|
|
DEPS = $(top_builddir)/src/libvirt.la
|
|
LDADDS = @STATIC_BINARIES@ $(WARN_CFLAGS) $(top_builddir)/src/libvirt.la $(COVERAGE_LDFLAGS)
|
|
|
|
rebuild: examples.xml index.html
|
|
|
|
examples.xml: index.py info1.c suspend.c
|
|
-@($(srcdir)/index.py)
|
|
|
|
index.html: examples.xml examples.xsl $(top_srcdir)/docs/site.xsl
|
|
-@(if [ -x $(XSLTPROC) ] ; then \
|
|
$(XSLTPROC) examples.xsl examples.xml \
|
|
&& echo "Rebuilt web page" \
|
|
&& xmllint --valid --noout index.html; \
|
|
fi)
|
|
|
|
install-data-local:
|
|
$(mkinstalldirs) $(DESTDIR)$(HTML_DIR)
|
|
-@INSTALL@ -m 0644 $(srcdir)/*.html $(srcdir)/*.c $(srcdir)/*.xml \
|
|
$(srcdir)/*.xsl $(srcdir)/*.res $(DESTDIR)$(HTML_DIR)
|
|
|
|
EXTRA_DIST=examples.xsl index.py examples.xml
|
|
|
|
noinst_PROGRAMS=info1 suspend
|
|
|
|
info1_SOURCES=info1.c
|
|
info1_LDFLAGS=
|
|
info1_DEPENDENCIES= $(DEPS)
|
|
info1_LDADD= $(LDADDS)
|
|
|
|
suspend_SOURCES=suspend.c
|
|
suspend_LDFLAGS=
|
|
suspend_DEPENDENCIES= $(DEPS)
|
|
suspend_LDADD= $(LDADDS)
|
|
|
|
valgrind:
|
|
$(MAKE) CHECKER='valgrind' tests
|
|
|
|
tests: $(noinst_PROGRAMS)
|
|
@(echo '## examples regression tests')
|
|
@($(CHECKER) ./info1)
|
|
@($(CHECKER) ./suspend)
|