diff options
author | Marc-André Lureau <marcandre.lureau@gmail.com> | 2013-05-18 02:42:40 +0200 |
---|---|---|
committer | Arnon Gilboa <agilboa@redhat.com> | 2013-05-19 09:19:56 +0300 |
commit | dac342f3079de9b0e8c207022313edf7773b7a27 (patch) | |
tree | d36fe2aa95e7283ad2e7c9b803ea46281c5a0b2a | |
parent | d9087356a1b44633354653b00496547ce4267560 (diff) |
build-sys: autotoolize usbclerk
-rw-r--r-- | Makefile.am | 17 | ||||
-rwxr-xr-x | autogen.sh | 6 | ||||
-rw-r--r-- | configure.ac | 33 |
3 files changed, 56 insertions, 0 deletions
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@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 + +]) |