summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile.am1
-rwxr-xr-xbootstrap3
-rw-r--r--configure.ac20
-rw-r--r--src/Makefile.am2
4 files changed, 26 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am
new file mode 100644
index 0000000..af437a6
--- /dev/null
+++ b/Makefile.am
@@ -0,0 +1 @@
+SUBDIRS = src
diff --git a/bootstrap b/bootstrap
new file mode 100755
index 0000000..c5a7472
--- /dev/null
+++ b/bootstrap
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+autoreconf --install
diff --git a/configure.ac b/configure.ac
new file mode 100644
index 0000000..cfe6dca
--- /dev/null
+++ b/configure.ac
@@ -0,0 +1,20 @@
+AC_INIT([libiou], [0.1], [vcaputo@pengaru.com])
+AM_INIT_AUTOMAKE([-Wall -Werror foreign])
+AC_PROG_CC
+AM_PROG_CC_C_O
+AM_PROG_AR
+AC_PROG_RANLIB
+AM_SILENT_RULES([yes])
+
+CFLAGS="$CFLAGS -Wall"
+
+dnl Check for liburing
+PKG_CHECK_MODULES(URING, liburing)
+CFLAGS="$CFLAGS $URING_CFLAGS"
+LIBS="$LIBS $URING_LIBS"
+
+AC_CONFIG_FILES([
+ Makefile
+ src/Makefile
+])
+AC_OUTPUT
diff --git a/src/Makefile.am b/src/Makefile.am
new file mode 100644
index 0000000..ddc89af
--- /dev/null
+++ b/src/Makefile.am
@@ -0,0 +1,2 @@
+noinst_LIBRARIES = libiou.a
+libiou_a_SOURCES = iou.c iou.h
© All Rights Reserved