summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Gallagher <sgallagh@redhat.com>2009-04-06 15:29:07 -0400
committerStephen Gallagher <sgallagh@redhat.com>2009-04-06 15:59:21 -0400
commite54786d970c3a4643644b99f7b5f0d4332d7db5d (patch)
tree7bc60b611a3036eb822b63562c9ac2ccff60116a
parentbf2e070c3cd0fa434fe2969844a55f292b26a8ff (diff)
Fix build system for Collection and INI parser.
Adds ini subdirectory so it will be built, adds some clarification to the README, makes the configure --help more clear about the trace level and enables -Wall reporting.
-rw-r--r--Makefile.am2
-rw-r--r--README8
-rw-r--r--collection/Makefile.am2
-rw-r--r--configure.ac4
-rw-r--r--ini/Makefile.am2
5 files changed, 12 insertions, 6 deletions
diff --git a/Makefile.am b/Makefile.am
index 5d39b42..b06c0e7 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1 +1 @@
-SUBDIRS = collection
+SUBDIRS = collection ini
diff --git a/README b/README
index a7db004..1b03573 100644
--- a/README
+++ b/README
@@ -1,6 +1,12 @@
TO BUILD EXECUTE:
-autoreconf
+autoreconf -i
./configure
make
+If you build first time after getting source use:
+
+autoreconf -i -f
+
+Most information about how to use the interfaces can be found in header files
+and in the unit tests (*_ut.c).
diff --git a/collection/Makefile.am b/collection/Makefile.am
index 06cf953..bdc1111 100644
--- a/collection/Makefile.am
+++ b/collection/Makefile.am
@@ -2,7 +2,7 @@
TRACE_LEVEL=@TRACE_VAR@
topdir=..
-AM_CPPFLAGS = -I$(topdir) -I$(topdir)/trace $(TRACE_LEVEL)
+AM_CPPFLAGS = -Wall -I$(topdir) -I$(topdir)/trace $(TRACE_LEVEL)
# Build static libraty
noinst_LIBRARIES = libcollection.a
diff --git a/configure.ac b/configure.ac
index 83a2c18..941125d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -11,13 +11,13 @@ AC_CONFIG_HEADERS([config.h])
# Enable trace build
AC_ARG_ENABLE([trace],
- [AS_HELP_STRING([--enable-trace],[build with low level tracing enabled])],
+ [AS_HELP_STRING([--enable-trace[=LEVEL]],[build with low level tracing enabled])],
[trace_level="$enableval"],
[trace_level="0"])
AS_IF([test ["$trace_level" -gt "0"] -a ["$trace_level" -lt "8"] ],[AC_SUBST([TRACE_VAR],["-DTRACE_LEVEL=$trace_level"])])
-AC_CONFIG_FILES([Makefile collection/Makefile])
+AC_CONFIG_FILES([Makefile collection/Makefile ini/Makefile])
AC_OUTPUT
diff --git a/ini/Makefile.am b/ini/Makefile.am
index a0131e9..a673aec 100644
--- a/ini/Makefile.am
+++ b/ini/Makefile.am
@@ -2,7 +2,7 @@
TRACE_LEVEL=@TRACE_VAR@
topdir=..
-AM_CPPFLAGS = -I$(topdir) -I$(topdir)/trace -I$(topdir)/collection $(TRACE_LEVEL)
+AM_CPPFLAGS = -Wall -I$(topdir) -I$(topdir)/trace -I$(topdir)/collection $(TRACE_LEVEL)
# Build static libraty
noinst_LIBRARIES = libini_config.a