X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=src%2FMakefile.am;h=68cabba7fc63130719d67092dd4a3d5c3862be7e;hb=e83181345f8bedc8c3196184f3e3274c6a1c41a3;hp=d900e3af33a5b0d7de42608abfda773a6ad30d12;hpb=b6233d1fff5d9a6bbc61e7123a57bdd7d8cbc792;p=libguestfs.git diff --git a/src/Makefile.am b/src/Makefile.am index d900e3a..68cabba 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -17,4 +17,27 @@ lib_LTLIBRARIES = libguestfs.la -libguestfs_la_SOURCES = guestfs.c guestfs.h +# NB. guestfs-actions.c is #include'd into guestfs.c, so it should not +# be listed as a source file. +EXTRA_DIST = guestfs-actions.c + +libguestfs_la_SOURCES = \ + guestfs.c \ + guestfs.h \ + guestfs_protocol.c \ + guestfs_protocol.h \ + guestfs-actions.h + +libguestfs_la_CFLAGS = -Wall + +if RPCGEN +guestfs_protocol.c: guestfs_protocol.x + rm -f $@-t + $(RPCGEN) -c -o $@-t $< + mv $@-t $@ + +guestfs_protocol.h: guestfs_protocol.x + rm -f $@-t + $(RPCGEN) -h -o $@-t $< + mv $@-t $@ +endif \ No newline at end of file