summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile.am17
-rwxr-xr-xautogen.sh6
-rw-r--r--configure.ac33
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
+
+])