diff options
author | Vito Caputo <vcaputo@pengaru.com> | 2018-12-11 12:12:37 -0800 |
---|---|---|
committer | Vito Caputo <vcaputo@pengaru.com> | 2018-12-11 12:17:21 -0800 |
commit | cb3d1318f05ef8b1451aa9d0fbd0a6f1308e82b6 (patch) | |
tree | 6155fb1759cd35e2a5290ba3bac7ec1aeec0a8b4 | |
parent | f51e6fbbc43cce135e1991f498b4b8b1e7e31129 (diff) |
build: add minimal autotools setup
-rw-r--r-- | Makefile.am | 1 | ||||
-rwxr-xr-x | bootstrap | 3 | ||||
-rw-r--r-- | configure.ac | 18 | ||||
-rw-r--r-- | src/Makefile.am | 4 |
4 files changed, 26 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am new file mode 100644 index 0000000..098ba5b --- /dev/null +++ b/Makefile.am @@ -0,0 +1 @@ +SUBDIRS = libpulp 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..8e6a05c --- /dev/null +++ b/configure.ac @@ -0,0 +1,18 @@ +AC_INIT([randtest], [1.0], [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]) + +AC_CONFIG_FILES([ + Makefile + src/Makefile +]) + +AC_CONFIG_SUBDIRS([ + libpulp +]) + +AC_OUTPUT diff --git a/src/Makefile.am b/src/Makefile.am new file mode 100644 index 0000000..53eabfc --- /dev/null +++ b/src/Makefile.am @@ -0,0 +1,4 @@ +bin_PROGRAMS = randtest +randtest_SOURCES = main.c +randtest_CPPFLAGS = -I@top_srcdir@/libpulp/src -I@top_srcdir@/libpulp/libthunk +randtest_LDADD = @top_builddir@/libpulp/src/libpulp.a |