From 6a69114d64da56b2f23f51eff5b16369e3abe03b Mon Sep 17 00:00:00 2001 From: John Zaitseff Date: Tue, 14 Jun 2011 22:55:48 +1000 Subject: [PATCH] Add build infrastructure for basic processing of various subdirectories --- Makefile.am | 3 +++ configure.ac | 16 +++++++++++++++- src/Makefile.am | 4 ++++ 3 files changed, 22 insertions(+), 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index 40fb0b1..618fd35 100644 --- a/Makefile.am +++ b/Makefile.am @@ -28,3 +28,6 @@ # # You should have received a copy of the GNU General Public License # along with this program. If not, see http://www.gnu.org/licenses/. + + +SUBDIRS = lib src doc diff --git a/configure.ac b/configure.ac index 064fcb0..b773542 100644 --- a/configure.ac +++ b/configure.ac @@ -28,5 +28,19 @@ dnl dnl You should have received a copy of the GNU General Public License dnl along with this program. If not, see http://www.gnu.org/licenses/. -AC_INIT([Star Traders], [7.0], [J.Zaitseff@zap.org.au],, [http://www.zap.org.au/software/trader/]) + +AC_INIT([Star Traders], [7.0], [J.Zaitseff@zap.org.au], , [http://www.zap.org.au/software/trader/]) + +AC_CONFIG_AUX_DIR([build-aux]) +AM_INIT_AUTOMAKE([-Wall -Werror foreign]) +AC_PREREQ(2.60) + +AC_PROG_CC +AC_CONFIG_HEADERS([config.h]) +AC_CONFIG_FILES([ + Makefile + src/Makefile + lib/Makefile + doc/Makefile +]) AC_OUTPUT diff --git a/src/Makefile.am b/src/Makefile.am index 98852ca..859b74e 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -28,3 +28,7 @@ # # You should have received a copy of the GNU General Public License # along with this program. If not, see http://www.gnu.org/licenses/. + + +bin_PROGRAMS = trader +trader_SOURCES = trader.c trader.h