From dac342f3079de9b0e8c207022313edf7773b7a27 Mon Sep 17 00:00:00 2001 From: Marc-André Lureau Date: Sat, 18 May 2013 02:42:40 +0200 Subject: build-sys: autotoolize usbclerk --- 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@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 + +]) -- cgit v1.2.3