Makefile.am 1.4 KB
Newer Older
K
Karel Zak 已提交
1 2
## Process this file with automake to produce Makefile.in

3
SUBDIRS = virshdata confdata sexpr2xmldata xml2sexprdata
4

K
Karel Zak 已提交
5 6 7 8 9
LIBVIRT = $(top_builddir)/src/.libs/libvirt.a

INCLUDES = \
	-I$(top_builddir)/include \
	-I$(top_builddir)/src \
10 11
	-I$(top_srcdir)/include \
	-I$(top_srcdir)/src \
12 13
	@LIBXML_CFLAGS@ \
        -D_XOPEN_SOURCE=600 -D_POSIX_C_SOURCE=199506L
K
Karel Zak 已提交
14 15 16 17 18 19

LDADDS = \
	@STATIC_BINARIES@ \
	@LIBXML_LIBS@ \
	$(LIBVIRT)

D
Daniel Veillard 已提交
20
EXTRA_DIST = xmlrpcserver.py test_conf.sh
K
Karel Zak 已提交
21

D
Daniel Veillard 已提交
22
noinst_PROGRAMS = xmlrpctest xml2sexprtest sexpr2xmltest virshtest conftest
23

D
Daniel Veillard 已提交
24
TESTS = xml2sexprtest sexpr2xmltest virshtest test_conf.sh
K
Karel Zak 已提交
25

26 27 28
valgrind:
	$(MAKE) check TESTS_ENVIRONMENT="valgrind --quiet"

K
Karel Zak 已提交
29 30 31 32 33 34 35 36 37 38
# Note: xmlrpc.[c|h] is not in libvirt yet
xmlrpctest_SOURCES = \
	xmlrpctest.c \
	testutils.c testutils.h \
	$(top_builddir)/src/xmlrpc.c \
	$(top_builddir)/src/xmlrpc.h

xmlrpctest_LDFLAGS =
xmlrpctest_LDADD = $(LDADDS)

39 40 41 42 43 44 45 46 47 48 49 50
xml2sexprtest_SOURCES = \
	xml2sexprtest.c \
	testutils.c testutils.h
xml2sexprtest_LDFLAGS =
xml2sexprtest_LDADD = $(LDADDS)

sexpr2xmltest_SOURCES = \
	sexpr2xmltest.c \
	testutils.c testutils.h
sexpr2xmltest_LDFLAGS =
sexpr2xmltest_LDADD = $(LDADDS)

51 52 53 54 55 56
virshtest_SOURCES = \
	virshtest.c \
	testutils.c testutils.h
virshtest_LDFLAGS =
virshtest_LDADD = $(LDADDS)

D
Daniel Veillard 已提交
57 58 59 60 61
conftest_SOURCES = \
	conftest.c
conftest_LDFLAGS =
conftest_LDADD = $(LDADDS)

K
Karel Zak 已提交
62 63
$(LIBVIRT):
	-@(cd $(top_builddir)/src && $(MAKE) MAKEFLAGS+=--silent)