[Spice-devel] [PATCH 13/18] Add reds_stat to compiled software

Christophe Fergeau cfergeau at redhat.com
Tue Sep 27 12:42:45 UTC 2016


On Mon, Sep 26, 2016 at 09:12:46AM +0100, Frediano Ziglio wrote:
> Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
> ---
>  Makefile.am       |  2 +-
>  configure.ac      |  1 +
>  tools/Makefile.am | 19 +++++++++++++++++++
>  3 files changed, 21 insertions(+), 1 deletion(-)
>  create mode 100644 tools/Makefile.am
> 
> diff --git a/Makefile.am b/Makefile.am
> index 7eb0f28..5272d5a 100644
> --- a/Makefile.am
> +++ b/Makefile.am
> @@ -1,7 +1,7 @@
>  NULL =
>  ACLOCAL_AMFLAGS = -I m4
>  
> -SUBDIRS = spice-common server docs
> +SUBDIRS = spice-common server docs tools
>  
>  pkgconfigdir = $(libdir)/pkgconfig
>  pkgconfig_DATA = spice-server.pc
> diff --git a/configure.ac b/configure.ac
> index f8284f6..a194204 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -272,6 +272,7 @@ server/spice-version.h
>  server/tests/Makefile
>  docs/Makefile
>  docs/manual/Makefile
> +tools/Makefile
>  ])
>  
>  dnl ==========================================================================
> diff --git a/tools/Makefile.am b/tools/Makefile.am
> new file mode 100644
> index 0000000..03980c5
> --- /dev/null
> +++ b/tools/Makefile.am
> @@ -0,0 +1,19 @@
> +NULL =
> +
> +AM_CPPFLAGS = \
> +	$(COMMON_CFLAGS) \
> +	$(SPICE_PROTOCOL_CFLAGS) \
> +	$(WARN_CFLAGS) \
> +	$(NULL)
> +
> +AM_LDFLAGS = \
> +	$(LIBRT) \
> +	$(NULL)
> +
> +noinst_PROGRAMS = \
> +	reds_stat \
> +	$(NULL)
> +
> +reds_stat_SOURCES = \
> +	reds_stat.c \
> +	$(NULL)

Fwiw, automake will automatically look for reds_stat.c when trying to
build the reds_stat PROGRAMS. So reds_stat_SOURCES isn't strictly
needed. But I personally prefer to have it explicit.

Acked-by: Christophe Fergeau <cfergeau at redhat.com>

Christophe

> -- 
> 2.7.4
> 
> _______________________________________________
> Spice-devel mailing list
> Spice-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/spice-devel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/spice-devel/attachments/20160927/9f744fca/attachment.sig>


More information about the Spice-devel mailing list