From 6e2edf7ee4e18ff44c340f36f9b6775e8ba5c3ca Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Tue, 8 Apr 2014 15:30:08 +1000 Subject: [PATCH] Basic build infrastructure --- Makefile.am | 2 ++ autogen.sh | 2 ++ configure.ac | 34 ++++++++++++++++++++++++++++++++++ src/Makefile.am | 4 ++++ src/ckpool.c | 4 ++++ 5 files changed, 46 insertions(+) create mode 100644 src/ckpool.c diff --git a/Makefile.am b/Makefile.am index e69de29b..0a7b9299 100644 --- a/Makefile.am +++ b/Makefile.am @@ -0,0 +1,2 @@ +ACLOCAL_AMFLAGS = -I m4 +SUBDIRS = src diff --git a/autogen.sh b/autogen.sh index e69de29b..b483139f 100755 --- a/autogen.sh +++ b/autogen.sh @@ -0,0 +1,2 @@ +#!/bin/sh +autoreconf --force --install -I m4 diff --git a/configure.ac b/configure.ac index e69de29b..5c00a70b 100644 --- a/configure.ac +++ b/configure.ac @@ -0,0 +1,34 @@ +AC_INIT(ckpool, 0.1, kernel@kolivas.org) + +AC_CANONICAL_SYSTEM +AC_CONFIG_MACRO_DIR([m4]) +AC_CONFIG_SRCDIR([src/ckpool.c]) +AC_CONFIG_HEADERS([config.h]) + +AM_INIT_AUTOMAKE([foreign subdir-objects]) +m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])]) +AC_USE_SYSTEM_EXTENSIONS + +AC_CANONICAL_BUILD +AC_CANONICAL_HOST + +dnl Make sure anyone changing configure.ac/Makefile.am has a clue +AM_MAINTAINER_MODE + +dnl Checks for programs +AC_PROG_CC +# gl_EARLY - maybe later +AC_PROG_GCC_TRADITIONAL +AM_PROG_CC_C_O +LT_INIT([disable-shared]) + +# gl_INIT - maybe later + +dnl Checks for header files. +AC_HEADER_STDC + +AC_FUNC_ALLOCA + +PKG_PROG_PKG_CONFIG() + +AC_OUTPUT([Makefile] [src/Makefile]) diff --git a/src/Makefile.am b/src/Makefile.am index e69de29b..00529772 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -0,0 +1,4 @@ +ACLOCAL_AMFLAGS = -I m4 + +bin_PROGRAMS = ckpool +ckpool_SOURCES = ckpool.c diff --git a/src/ckpool.c b/src/ckpool.c new file mode 100644 index 00000000..31dbf45b --- /dev/null +++ b/src/ckpool.c @@ -0,0 +1,4 @@ +int main(void) +{ + return 0; +}