X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=blobdiff_plain;f=examples%2FMakefile.am;h=04bbe5e45f5e0e9991a54be100cfd499559ffab4;hp=d2187cbb16b7ff8c240c6375d7f60719e7a2bac3;hb=61da709722ec244da1c3c7d4f1a8706f76687cb3;hpb=197f0ceeac625a20b923b274c6025eb0ccaeaed1 diff --git a/examples/Makefile.am b/examples/Makefile.am index d2187cb..04bbe5e 100644 --- a/examples/Makefile.am +++ b/examples/Makefile.am @@ -1,9 +1,17 @@ # libguestfs examples -noinst_PROGRAMS = hello +include $(top_srcdir)/subdir-rules.mk + +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 -CLEANFILES = *~ $(noinst_PROGRAMS) +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)