X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;ds=inline;f=src%2FMakefile.am;h=38e3f037e1af71b2d156c887d7a379beb0956b76;hb=74cd1b4a707f0e495f072476e9425b0218d2ab3e;hp=4827e271a92c6e6a4b99b1efe3ec8bdbf4e16461;hpb=e1aca6323e33e0dd50e23dc0d638f5789c9188e4;p=libguestfs.git diff --git a/src/Makefile.am b/src/Makefile.am index 4827e27..38e3f03 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. @@ -186,14 +183,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