From 9ca50bebfa45165af50fa166888b593db67d8e21 Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Wed, 2 May 2018 18:53:42 -0700 Subject: build: add rudimentary automake build system --- Makefile.am | 1 + bootstrap | 5 +++++ configure.ac | 13 +++++++++++++ src/Makefile.am | 3 +++ 4 files changed, 22 insertions(+) create mode 100644 Makefile.am create mode 100755 bootstrap create mode 100644 configure.ac create mode 100644 src/Makefile.am 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..99f6f06 --- /dev/null +++ b/bootstrap @@ -0,0 +1,5 @@ +#!/bin/sh + +aclocal \ +&& automake --gnu --add-missing \ +&& autoconf diff --git a/configure.ac b/configure.ac new file mode 100644 index 0000000..425aa59 --- /dev/null +++ b/configure.ac @@ -0,0 +1,13 @@ +AC_INIT([libpulp], [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_OUTPUT diff --git a/src/Makefile.am b/src/Makefile.am new file mode 100644 index 0000000..588cafe --- /dev/null +++ b/src/Makefile.am @@ -0,0 +1,3 @@ +noinst_LIBRARIES = libpulp.a +libpulp_a_SOURCES = pulp.c pulp.h +libpulp_a_CPPFLAGS = -I@top_srcdir@/libthunk -- cgit v1.2.3