Skip to content

Commit

Permalink
Added 'make debug' which does 'make all' with -g rather than -O2 -g1.
Browse files Browse the repository at this point in the history
To correct your config for this new feature, ./configure -modupdate.


git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6452 e03df62e-2008-0410-955e-edbf42e46eb7
  • Loading branch information
braindigitalis committed Jan 28, 2007
1 parent 8703e1b commit 5b657c3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .Makefile.inc
Expand Up @@ -11,6 +11,7 @@ CC = @CC@
MAKE = @MAKEPROG@
PROGS = inspircd
FLAGS = @FLAGS@
DEBUG = @DEVELOPER@
LDLIBS = @LDLIBS@
BASE = $(DESTDIR)@BASE_DIR@
CONPATH = $(DESTDIR)@CONFIG_DIR@
Expand All @@ -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:
Expand Down
2 changes: 2 additions & 0 deletions configure
Expand Up @@ -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) {
Expand Down Expand Up @@ -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}/;
Expand Down

0 comments on commit 5b657c3

Please sign in to comment.