X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=src%2FMakefile.am;h=6c0cc33dc94705215273a280722fc4862e4d497c;hb=08910ee60cfac9aa648e59dda5dbb429825c561e;hp=4827e271a92c6e6a4b99b1efe3ec8bdbf4e16461;hpb=e1aca6323e33e0dd50e23dc0d638f5789c9188e4;p=libguestfs.git diff --git a/src/Makefile.am b/src/Makefile.am index 4827e27..6c0cc33 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -52,13 +52,10 @@ include_HEADERS = guestfs.h lib_LTLIBRARIES = libguestfs.la -# This convenience library is solely to avoid compiler warnings -# in its generated sources. -libprotocol_la_SOURCES = \ - guestfs_protocol.c \ - guestfs_protocol.h - -libprotocol_la_CFLAGS = +# This convenience library is solely to compile its generated sources with +# custom flags. +libprotocol_la_SOURCES = guestfs_protocol.c guestfs_protocol.h +libprotocol_la_CFLAGS = -Wall -Wno-unused -fno-strict-aliasing # Build the errnostring perfect hash code. The generated code has lots # of warnings so we must compile it in a separate mini-library. @@ -127,10 +124,19 @@ libguestfs_la_SOURCES = \ actions.c \ appliance.c \ bindtests.c \ + dbdump.c \ + events.c \ filearch.c \ inspect.c \ + inspect_apps.c \ + inspect_fs.c \ + inspect_fs_cd.c \ + inspect_fs_unix.c \ + inspect_fs_windows.c \ + inspect_icon.c \ launch.c \ listfs.c \ + match.c \ proto.c \ virt.c \ libguestfs.syms @@ -146,6 +152,7 @@ libguestfs_la_LIBADD += liberrnostring.la libprotocol.la libguestfs_la_CFLAGS = \ -DGUESTFS_DEFAULT_PATH='"$(libdir)/guestfs"' \ + -DGUESTFS_WARN_DEPRECATED=1 \ $(HIVEX_CFLAGS) $(AUGEAS_CFLAGS) $(PCRE_CFLAGS) \ $(LIBVIRT_CFLAGS) $(LIBXML2_CFLAGS) \ $(WARN_CFLAGS) $(WERROR_CFLAGS) @@ -186,14 +193,3 @@ stamp-guestfs.pod: guestfs.pod \ --insert guestfs-structs.pod:@STRUCTS@ \ $< touch $@ - -# Check user doesn't try to do 'make all' or 'make check' as root. -# https://www.redhat.com/archives/libguestfs/2010-April/msg00098.html - -all-local: checkroot -check-local: checkroot -checkroot: - @if [ "`id -u`" = 0 ]; then \ - echo "*** Error: Don't run 'make' or 'make check' as root."; \ - exit 1; \ - fi