Permalink
Browse files

Build with Autotools

  • Loading branch information...
1 parent 76600f6 commit 00f721983c68f45315975b2c0c828db20cfb99fe @kmcallister committed Apr 19, 2012
Showing with 23 additions and 0 deletions.
  1. +2 −0 Makefile.am
  2. +6 −0 build.sh
  3. +13 −0 configure.ac
  4. +2 −0 src/Makefile.am
View
@@ -0,0 +1,2 @@
+ACLOCAL_AMFLAGS = --install -I m4
+SUBDIRS = src
View
@@ -0,0 +1,6 @@
+#!/bin/sh -xe
+
+autoreconf -fi
+./configure "$@"
+make clean
+make
View
@@ -0,0 +1,13 @@
+AC_PREREQ([2.60])
+AC_INIT([autoharden], [1.0])
+AM_INIT_AUTOMAKE([-Wall -Werror foreign])
+AC_CONFIG_SRCDIR([src/main.cc])
+
+AC_PROG_CC
+AC_PROG_CXX
+
+AC_CONFIG_FILES([
+ Makefile
+ src/Makefile
+])
+AC_OUTPUT
View
@@ -0,0 +1,2 @@
+noinst_PROGRAMS = test
+test_SOURCES = main.cc fun.c

0 comments on commit 00f7219

Please sign in to comment.