summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.Makefile.inc4
-rwxr-xr-xconfigure2
2 files changed, 6 insertions, 0 deletions
diff --git a/.Makefile.inc b/.Makefile.inc
index d1e464aaa..54b50e0c7 100644
--- a/.Makefile.inc
+++ b/.Makefile.inc
@@ -11,6 +11,7 @@ CC = @CC@
MAKE = @MAKEPROG@
PROGS = inspircd
FLAGS = @FLAGS@
+DEBUG = @DEVELOPER@
LDLIBS = @LDLIBS@
BASE = $(DESTDIR)@BASE_DIR@
CONPATH = $(DESTDIR)@CONFIG_DIR@
@@ -22,6 +23,9 @@ STATICLIBS = @STATICLIBS@
INSTMODE = 0700
MAKEARGS = 'PROGS=${PROGS}' 'FLAGS=${FLAGS}' 'CC=${CC}' 'LDLIBS=${LDLIBS}' 'MODULES=${MODULES}' 'MODPATH=${MODPATH}' 'LIBPATH=${LIBPATH}' 'STATICLIBS=${STATICLIBS}' 'INSTMODE=${INSTMODE}'
+debug:
+ ${MAKE} -C . 'FLAGS=${DEBUG}' all
+
all : @MAKEORDER@ finishmessage
mods:
diff --git a/configure b/configure
index 0faa2917e..ac814035b 100755
--- a/configure
+++ b/configure
@@ -844,6 +844,7 @@ sub getosflags {
$config{LDLIBS} = "-lstdc++";
$config{FLAGS} = "-fno-strict-aliasing -fPIC -Wall -Woverloaded-virtual $config{OPTIMISATI}";
+ $config{DEVELOPER} = "-fno-strict-aliasing -fPIC -Wall -Woverloaded-virtual -g";
$config{MAKEPROG} = "make";
if ($config{OSNAME} =~ /OpenBSD/i) {
@@ -1077,6 +1078,7 @@ EOF
$tmp =~ s/\@CC\@/$config{CC}/;
$tmp =~ s/\@MAKEPROG\@/$config{MAKEPROG}/;
$tmp =~ s/\@FLAGS\@/$config{FLAGS}/;
+ $tmp =~ s/\@DEVELOPER\@/$config{DEVELOPER}/;
$tmp =~ s/\@LDLIBS\@/$config{LDLIBS}/;
$tmp =~ s/\@BASE_DIR\@/$config{BASE_DIR}/;
$tmp =~ s/\@CONFIG_DIR\@/$config{CONFIG_DIR}/;