X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=blobdiff_plain;f=examples%2FMakefile.am;h=04bbe5e45f5e0e9991a54be100cfd499559ffab4;hp=31707b8b6289d5d1d3d03b52ff17bd735862cb13;hb=d600342b7d29c0176ff96a7807ebb38303ecb3a6;hpb=7fe2b338e4102a23ecd2f89b447b7618f0e93312 diff --git a/examples/Makefile.am b/examples/Makefile.am index 31707b8..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) +CLEANFILES = $(noinst_PROGRAMS)