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

3 4
SUBDIRS = virshdata

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 20 21

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

EXTRA_DIST = xmlrpcserver.py

22
noinst_PROGRAMS = xmlrpctest xml2sexprtest sexpr2xmltest virshtest
23

24
TESTS = xml2sexprtest sexpr2xmltest virshtest
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)

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