aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fsousaged/configure.ac8
-rw-r--r--fsousaged/src/plugins/dbus_service/Makefile.am7
-rw-r--r--fsousaged/src/plugins/lowlevel_kernel26/Makefile.am7
-rw-r--r--fsousaged/src/plugins/lowlevel_kernel26_staysalive/Makefile.am7
-rw-r--r--fsousaged/src/plugins/lowlevel_openmoko/Makefile.am7
5 files changed, 31 insertions, 5 deletions
diff --git a/fsousaged/configure.ac b/fsousaged/configure.ac
index 30b939c0..50d4c1b2 100644
--- a/fsousaged/configure.ac
+++ b/fsousaged/configure.ac
@@ -1,4 +1,4 @@
-AC_INIT([fsousaged], [0.9.3], [smartphones-userland@linuxtogo.org], [fsousaged])
+AC_INIT([fsousaged], [0.9.4], [smartphones-userland@linuxtogo.org], [fsousaged])
AC_CONFIG_SRCDIR([Makefile.am])
AC_CONFIG_HEADERS(config.h)
AM_INIT_AUTOMAKE([dist-bzip2])
@@ -79,6 +79,12 @@ PKG_CHECK_MODULES(FSO,
AC_SUBST(FSO_CFLAGS)
AC_SUBST(FSO_LIBS)
+# check for debugging
+AC_ARG_ENABLE(debug,
+ [ --enable-debug Enable debug build (default=disabled)],
+ debug="yes", debug="no")
+AM_CONDITIONAL( [WANT_DEBUG], [test x"$debug" = x"yes"])
+
# git version
GITV=`cat ../.git/refs/heads/master || echo "unknown"`
AC_DEFINE_UNQUOTED([PACKAGE_GITV], ["${GITV}"], [git version])
diff --git a/fsousaged/src/plugins/dbus_service/Makefile.am b/fsousaged/src/plugins/dbus_service/Makefile.am
index 9bd3baea..893cc636 100644
--- a/fsousaged/src/plugins/dbus_service/Makefile.am
+++ b/fsousaged/src/plugins/dbus_service/Makefile.am
@@ -2,7 +2,7 @@ include $(top_srcdir)/Makefile.decl
NULL =
-AM_CPPFLAGS = \
+AM_CFLAGS = \
-I$(top_srcdir)/src/lib \
$(DBUS_CFLAGS) \
$(GEE_CFLAGS) \
@@ -30,6 +30,11 @@ VALAC_ARGS = \
--pkg fso-glib-1.0 \
--pkg fsousage-2.0
+if WANT_DEBUG
+VALAC_ARGS += -g -D DEBUG
+AM_CFLAGS += -ggdb -O0
+endif
+
#
# plugin
#
diff --git a/fsousaged/src/plugins/lowlevel_kernel26/Makefile.am b/fsousaged/src/plugins/lowlevel_kernel26/Makefile.am
index cef58e7c..fbe774ed 100644
--- a/fsousaged/src/plugins/lowlevel_kernel26/Makefile.am
+++ b/fsousaged/src/plugins/lowlevel_kernel26/Makefile.am
@@ -2,7 +2,7 @@ include $(top_srcdir)/Makefile.decl
NULL =
-AM_CPPFLAGS = \
+AM_CFLAGS = \
-I$(top_srcdir)/src/lib \
$(GEE_CFLAGS) \
$(FSO_CFLAGS) \
@@ -29,6 +29,11 @@ VALAC_ARGS = \
--pkg fso-glib-1.0 \
--pkg fsousage-2.0
+if WANT_DEBUG
+VALAC_ARGS += -g -D DEBUG
+AM_CFLAGS += -ggdb -O0
+endif
+
#
# plugin
#
diff --git a/fsousaged/src/plugins/lowlevel_kernel26_staysalive/Makefile.am b/fsousaged/src/plugins/lowlevel_kernel26_staysalive/Makefile.am
index 0f27b4bb..7b2fc67c 100644
--- a/fsousaged/src/plugins/lowlevel_kernel26_staysalive/Makefile.am
+++ b/fsousaged/src/plugins/lowlevel_kernel26_staysalive/Makefile.am
@@ -2,7 +2,7 @@ include $(top_srcdir)/Makefile.decl
NULL =
-AM_CPPFLAGS = \
+AM_CFLAGS = \
-I$(top_srcdir)/src/lib \
$(GEE_CFLAGS) \
$(FSO_CFLAGS) \
@@ -29,6 +29,11 @@ VALAC_ARGS = \
--pkg fso-glib-1.0 \
--pkg fsousage-2.0
+if WANT_DEBUG
+VALAC_ARGS += -g -D DEBUG
+AM_CFLAGS += -ggdb -O0
+endif
+
#
# plugin
#
diff --git a/fsousaged/src/plugins/lowlevel_openmoko/Makefile.am b/fsousaged/src/plugins/lowlevel_openmoko/Makefile.am
index 3d87bf94..499220de 100644
--- a/fsousaged/src/plugins/lowlevel_openmoko/Makefile.am
+++ b/fsousaged/src/plugins/lowlevel_openmoko/Makefile.am
@@ -2,7 +2,7 @@ include $(top_srcdir)/Makefile.decl
NULL =
-AM_CPPFLAGS = \
+AM_CFLAGS = \
-I$(top_srcdir)/src/lib \
$(GEE_CFLAGS) \
$(FSO_CFLAGS) \
@@ -29,6 +29,11 @@ VALAC_ARGS = \
--pkg fso-glib-1.0 \
--pkg fsousage-2.0
+if WANT_DEBUG
+VALAC_ARGS += -g -D DEBUG
+AM_CFLAGS += -ggdb -O0
+endif
+
#
# plugin
#