[Spice-devel] [PATCH usbclerk 2/6] build-sys: autotoolize usbclerk
Christophe Fergeau
cfergeau at redhat.com
Tue Feb 19 09:49:55 PST 2013
Looks good, ACK
Christophe
On Tue, Feb 19, 2013 at 11:35:27AM +0100, Marc-André Lureau wrote:
> ---
> Makefile.am | 17 +++++++++++++++++
> autogen.sh | 6 ++++++
> configure.ac | 33 +++++++++++++++++++++++++++++++++
> 3 files changed, 56 insertions(+)
> create mode 100644 Makefile.am
> create mode 100755 autogen.sh
> create mode 100644 configure.ac
>
> diff --git a/Makefile.am b/Makefile.am
> new file mode 100644
> index 0000000..77cf7a1
> --- /dev/null
> +++ b/Makefile.am
> @@ -0,0 +1,17 @@
> +ACLOCAL_AMFLAGS = -I m4
> +NULL =
> +
> +bin_PROGRAMS = usbclerk usbclerktest
> +
> +usbclerk_LDFLAGS = $(LIBWDI_LIBS) -lversion -all-static
> +usbclerk_CPPFLAGS = $(LIBWDI_CFLAGS)
> +usbclerk_SOURCES = usbclerk.cpp vdlog.cpp usbclerk.h vdlog.h
> +
> +usbclerktest_LDFLAGS =
> +usbclerktest_SOURCES = usbclerktest.cpp
> +
> +EXTRA_DIST = usbclerk.nsis
> +
> +usbclerk-setup.exe: usbclerk.nsis
> + makensis $^
> +
> diff --git a/autogen.sh b/autogen.sh
> new file mode 100755
> index 0000000..bd867a3
> --- /dev/null
> +++ b/autogen.sh
> @@ -0,0 +1,6 @@
> +#!/bin/bash
> +
> +
> +mkdir -p m4
> +autoreconf -fi
> +
> diff --git a/configure.ac b/configure.ac
> new file mode 100644
> index 0000000..aafb51c
> --- /dev/null
> +++ b/configure.ac
> @@ -0,0 +1,33 @@
> +AC_INIT([usbclerk], [0.0.1.1],
> + [spice-devel at lists.freedesktop.org])
> +AC_PREREQ([2.64])
> +
> +AC_CONFIG_MACRO_DIR([m4])
> +AM_CONFIG_HEADER([config.h])
> +AC_CONFIG_AUX_DIR([build-aux])
> +AM_INIT_AUTOMAKE([foreign dist-bzip2 -Wall -Werror])
> +AM_MAINTAINER_MODE([enable])
> +
> +LT_INIT
> +AC_PROG_CXX
> +
> +PKG_CHECK_MODULES(LIBWDI, libwdi)
> +LIBWDI_LIBS=`$PKG_CONFIG --static --libs libwdi`
> +
> +m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])])
> +
> +AC_OUTPUT([
> +Makefile
> +usbclerk.nsis
> +])
> +
> +AC_MSG_NOTICE([
> +
> + usbclerk $VERSION
> + ==============
> +
> + c++ compiler: ${CXX}
> +
> + Now type 'make' to build $PACKAGE
> +
> +])
> --
> 1.8.1.1.439.g50a6b54
>
> _______________________________________________
> Spice-devel mailing list
> Spice-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/spice-devel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/spice-devel/attachments/20130219/3efacf3c/attachment.pgp>
More information about the Spice-devel
mailing list