Makefile.am 1.3 KB
Newer Older
D
Daniel Veillard 已提交
1 2
## Process this file with automake to produce Makefile.in

3
INCLUDES = -I$(top_builddir)/include -I@top_srcdir@/include @LIBXML_CFLAGS@ \
4 5
	   -DBINDIR=\""$(libexecdir)"\" -DLOCALEBASEDIR=\""$(datadir)/locale"\" \
           -DGETTEXT_PACKAGE=\"$(PACKAGE)\"
6 7
DEPS = libvirt.la
LDADDS = @STATIC_BINARIES@ libvirt.la
K
Karel Zak 已提交
8
VIRSH_LIBS = @VIRSH_LIBS@
D
Daniel Veillard 已提交
9

10
EXTRA_DIST = libvirt_sym.version
11

12
lib_LTLIBRARIES = libvirt.la
13
libvirt_la_LIBADD = @LIBXML_LIBS@
K
Karel Zak 已提交
14

15
libvirt_la_LDFLAGS = -Wl,--version-script=$(srcdir)/libvirt_sym.version \
16
                    -version-info @LIBVIRT_VERSION_INFO@
K
Karel Zak 已提交
17

18 19
libvirt_la_SOURCES =						\
		libvirt.c internal.h				\
20
		hash.c hash.h					\
21
		test.c test.h                                   \
22
		xml.c xml.h					\
23
		xen_internal.c xen_internal.h			\
24
		xs_internal.c xs_internal.h			\
25
		xend_internal.c xend_internal.h			\
26
		sexpr.c sexpr.h					\
27
		virterror.c					\
28
		driver.h					\
D
Daniel Veillard 已提交
29
		proxy_internal.c proxy_internal.h		\
30 31
		conf.c conf.h                                   \
		xm_internal.c xm_internal.h
32

K
Karel Zak 已提交
33
bin_PROGRAMS = virsh
34

K
Karel Zak 已提交
35
virsh_SOURCES = virsh.c
36 37
virsh_LDFLAGS =
virsh_DEPENDENCIES = $(DEPS)
K
Karel Zak 已提交
38
virsh_LDADD = $(LDADDS) $(VIRSH_LIBS)
39

40 41 42 43 44
#
# target to ease building test programs
#
tst: tst.c
	$(CC) $(CFLAGS) -I../include -o tst tst.c .libs/libvirt.a -lxml2 -lxenstore -lpthread