diff options
4 files changed, 33 insertions, 4 deletions
diff --git a/ b/
index 30e4c19..e8d6340 100644
--- a/
+++ b/
@@ -9,6 +9,8 @@ SUBDIRS = \
src \
mkdir -p doc
diff --git a/ b/
index 79c2cbd..56b7119 100644
--- a/
+++ b/
@@ -22,17 +22,25 @@ The following dependencies are required and need to be installed to build the li
- [gnunet]( For using GNUnet services and its datatypes
-Then you can simply use the provided Makefile as follows:
+Then you can simply use [Autotools]( as follows:
+./bootstrap # Generate the configure script
+./configure # Configure the Makefiles for your system
+make # Build the library using the Makefiles
+sudo make install # Install the library
- - `make` to just compile everything with default parameters
+Here is a list of some useful build targets in the Makefile:
+ - `make` to just compile everything with configured parameters
- `make clean` to cleanup build files in case you want to recompile
- - `make debug` to compile everything with debug parameters
- - `make release` to compile everything with build optimizations enabled
- `make install` to install the compiled files (you might need sudo permissions to install)
- `make dist` to create a tar file for distribution
- `make docs` to build Doxygen documentation ([Doxygen]( is required to do that)
- `make check` to test the library with automated unit tests ([Check]( is required to do that)
+If you want to change the installation location, use the `--prefix=` parameter in the `configure` script. Also you can enable debugging builds by adding `--enable-debug` as parameter when running the `configure` script.
## Contribution
If you want to contribute to this project as well, the following options are available:
diff --git a/ b/
index 9fb9c7d..fc58e40 100644
--- a/
+++ b/
@@ -51,6 +51,15 @@ LT_INIT([disable-static dlopen])
AS_IF([test "x$enable_shared" = "xno"],
[AC_MSG_ERROR([GNUnet works only with shared libraries, sorry])])
+[ --enable-debug turn on debugging],
+[case "${enableval}" in
+ yes) debug=true ;;
+ no) debug=false ;;
+ *) AC_MSG_ERROR([bad value ${enableval} for --enable-debug]) ;;
+AM_CONDITIONAL([DEBUG], [test x$debug = xtrue])
diff --git a/src/ b/src/
index 38e2cdd..f87788e 100644
--- a/src/
+++ b/src/
@@ -27,3 +27,13 @@ libgnunetchat_la_LIBADD = \
-lgnunetregex \
+libgnunetchat_la_CFLAGS = \
+ -fPIC -pedantic -Wall -Wextra
+libgnunetchat_la_CFLAGS += \
+ -O0 -D _DEBUG -ggdb3
+libgnunetchat_la_CFLAGS += \