X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=blobdiff_plain;f=examples%2FMakefile.am;h=04bbe5e45f5e0e9991a54be100cfd499559ffab4;hp=13302d9b9270416c99dad3a947181b71bcfadefa;hb=ed74706d80394fef709ec0258fc5cf7d974ff8b1;hpb=41b959fd9b057354f642d84398b875d02b88b864 diff --git a/examples/Makefile.am b/examples/Makefile.am index 13302d9..04bbe5e 100644 --- a/examples/Makefile.am +++ b/examples/Makefile.am @@ -1,13 +1,17 @@ # libguestfs examples +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 to_xml_SOURCES = to-xml.c -to_xml_CFLAGS = -I$(top_builddir)/src -Wall +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)