X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=blobdiff_plain;f=examples%2FMakefile.am;h=04bbe5e45f5e0e9991a54be100cfd499559ffab4;hp=9bac5f365b2cb85038417c844f34e2e1d3869cfc;hb=fb998000e60b32219c2bf839044cff59f499dff1;hpb=40ca9a57829f2e82362e391d7d998bf33c8bd671 diff --git a/examples/Makefile.am b/examples/Makefile.am index 9bac5f3..04bbe5e 100644 --- a/examples/Makefile.am +++ b/examples/Makefile.am @@ -1,11 +1,17 @@ # libguestfs examples -noinst_PROGRAMS = df hello +include $(top_srcdir)/subdir-rules.mk -df_SOURCES = df.c -df_CFLAGS = -I$(top_builddir)/src -Wall -df_LDADD = $(top_builddir)/src/libguestfs.la +noinst_PROGRAMS = hello to-xml hello_SOURCES = hello.c -hello_CFLAGS = -I$(top_builddir)/src -Wall +hello_CFLAGS = -I$(top_srcdir)/src -I$(top_builddir)/src -Wall hello_LDADD = $(top_builddir)/src/libguestfs.la + +to_xml_SOURCES = to-xml.c +to_xml_CPPFLAGS = \ + -I$(top_srcdir)/gnulib/lib \ + -I$(top_srcdir)/src -I$(top_builddir)/src -Wall +to_xml_LDADD = $(top_builddir)/src/libguestfs.la + +CLEANFILES = $(noinst_PROGRAMS)