[Spice-devel] [PATCH usbclerk 2/6] build-sys: autotoolize usbclerk

Marc-André Lureau marcandre.lureau at gmail.com
Tue Feb 19 02:35:27 PST 2013


---
 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



More information about the Spice-devel mailing list