]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Makefile updates: remove MAKEPROG/MAKEORDER
authordanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>
Sat, 30 May 2009 15:31:53 +0000 (15:31 +0000)
committerdanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>
Sat, 30 May 2009 15:31:53 +0000 (15:31 +0000)
Also update the output on "make debug" to look better and avoid
interleaving header output on a parallel make.

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11391 e03df62e-2008-0410-955e-edbf42e46eb7

.Makefile.inc
configure

index 92eb68090e72cf13123abd610abef5caebeacab2..1c5c77fb6ceee30cb24ea7de72a3b0026e789461 100644 (file)
@@ -6,13 +6,23 @@
 # Please do not edit unless you know what you're doing.
 #
 
+ifdef D
+  ifeq ("$(origin D)", "command line")
+    NICEFLAGS = @DEVELOPER@
+    HEADER = debug-header
+  endif
+endif
+
+ifndef NICEFLAGS
+    NICEFLAGS = @FLAGS@
+endif
+
+ifndef HEADER
+    HEADER = std-header
+endif
+
 CC = @CC@
-MAKE = @MAKEPROG@ -s
-PROGS = inspircd
-NICEFLAGS = @FLAGS@
 FLAGS = $(NICEFLAGS) -pedantic
-NICEDEBUG = @DEVELOPER@
-DEBUG = $(NICEDEBUG) -pedantic
 LDLIBS = @LDLIBS@
 BASE = "$(DESTDIR)@BASE_DIR@"
 CONPATH = "$(DESTDIR)@CONFIG_DIR@"
@@ -22,27 +32,42 @@ LAUNCHDPATH = "$(DESTDIR)/System/Library/LaunchDaemons"
 LIBPATH = "$(DESTDIR)@LIBRARY_DIR@"
 MODULES = @MODULES@
 INSTMODE = 0755
-MAKEARGS = 'PROGS=${PROGS}' 'FLAGS=${FLAGS}' 'NICEFLAGS=${NICEFLAGS}' 'CC=${CC}' 'LDLIBS=${LDLIBS}' 'MODULES=${MODULES}' 'MODPATH=${MODPATH}' 'LIBPATH=${LIBPATH}' 'INSTMODE=${INSTMODE}'
+MAKEFLAGS += --no-print-directory
+MAKEARGS = 'FLAGS=${FLAGS}' 'NICEFLAGS=${NICEFLAGS}' 'CC=${CC}' 'LDLIBS=${LDLIBS}' 'MODULES=${MODULES}' 'MODPATH=${MODPATH}' 'LIBPATH=${LIBPATH}' 'INSTMODE=${INSTMODE}'
 
-all: @MAKEORDER@ finishmessage
+all: ircd mods finishmessage
 
 debug:
-       @echo ""
+       @${MAKE} D=1 all
+
+debug-header:
        @echo "*************************************"
        @echo "*    BUILDING WITH DEBUG SYMBOLS    *"
        @echo "*                                   *"
+       @echo "*   This will take a *long* time.   *"
        @echo "*  Please be aware that this build  *"
        @echo "*  will consume a very large amount *"
-       @echo "*   of disk space (350mb+) and may  *"
-       @echo "*  run noticably slower. Only build *"
-       @echo "*   InspIRCd with debug symbols if  *"
-       @echo "* you are developing modules or are *"
-       @echo "*      experiencing problems.       *"
+       @echo "*  of disk space (150MB+), and can  *"
+       @echo "*  run slower. Use the debug build  *"
+       @echo "*  for module development or if you *"
+       @echo "*    are experiencing problems.     *"
        @echo "*                                   *"
        @echo "*************************************"
-       @${MAKE} -C . 'FLAGS=${DEBUG}' 'NICEFLAGS=${NICEDEBUG}' all
 
-mods:
+std-header:
+       @echo "*************************************"
+       @echo "*       BUILDING INSPIRCD           *"
+       @echo "*                                   *"
+       @echo "*   This will take a *long* time.   *"
+       @echo "*     Why not read our wiki at      *"
+       @echo "*     http://wiki.inspircd.org      *"
+       @echo "*  while you wait for make to run?  *"
+       @echo "*************************************"
+
+ircd: $(HEADER)
+       @${MAKE} -C src DIRNAME="src" $(MAKEARGS)
+
+mods: $(HEADER)
        @${MAKE} -C src/modules DIRNAME="src/modules" $(MAKEARGS)
 
 # Make this depend on 'ircd' and 'mods', so its always output last even with -j
@@ -55,17 +80,6 @@ finishmessage: ircd mods
        @echo "*         make install              *"
        @echo "*************************************"
 
-ircd:
-       @echo "*************************************"
-       @echo "*       BUILDING INSPIRCD           *"
-       @echo "*                                   *"
-       @echo "*   This will take a *long* time.   *"
-       @echo "*     Why not read our wiki at      *"
-       @echo "*     http://wiki.inspircd.org      *"
-       @echo "*  while you wait for make to run?  *"
-       @echo "*************************************"
-       @${MAKE} -C src DIRNAME="src" $(MAKEARGS)
-
 install: all@EXTRA_DIR@
        @-install -d -m $(INSTMODE) $(BASE)
        @-install -d -m $(INSTMODE) $(LIBPATH)
index 7d16af9a309b4318233be49262fb5531cdca2811..c67dc3fb7d18ea1b8ea1757bae46a823fcd93dd8 100755 (executable)
--- a/configure
+++ b/configure
@@ -333,7 +333,6 @@ our $exec = $config{CC} . " -dumpversion | cut -c 1";
 chomp($config{GCCVER}          = `$exec`);                             # Major GCC Version
 $exec = $config{CC} . " -dumpversion | cut -c 3";
 chomp($config{GCCMINOR}                = `$exec`);
-$config{MAKEORDER}             = "ircd mods";                          # build order
 $config{MAXBUF}                        = "512";                                # Max buffer size
 
 if ($config{HAS_OPENSSL} =~ /^([-[:digit:].]+)([a-z])?(\-[a-z][0-9])?$/) {
@@ -1298,7 +1297,6 @@ EOF
 
                        print "Writing \e[1;32m$file\e[0m ...\n";
                        $tmp =~ s/\@CC\@/$config{CC}/ if defined $config{CC};
-                       $tmp =~ s/\@MAKEPROG\@/$config{MAKEPROG}/ if defined $config{MAKEPROG};
                        $tmp =~ s/\@FLAGS\@/$config{FLAGS}/ if defined $config{FLAGS};
                        $tmp =~ s/\@DEVELOPER\@/$config{DEVELOPER}/ if defined $config{DEVELOPER};
                        $tmp =~ s/\@LDLIBS\@/$config{LDLIBS}/ if defined $config{LDLIBS};
@@ -1312,7 +1310,6 @@ EOF
                        $tmp =~ s/\@DESTINATION\@/$config{DESTINATION}/ if defined $config{DESTINATION};
                        $tmp =~ s/\@EXTRA_DIR\@/$config{EXTRA_DIR}/ if defined $config{EXTRA_DIR};
                        $tmp =~ s/\@EXECUTABLE\@/$exe/ if defined $exe;
-                       $tmp =~ s/\@MAKEORDER\@/$config{MAKEORDER}/ if defined $config{MAKEORDER};
                        $tmp =~ s/\@VERSION\@/$version/ if defined $version;
                        $tmp =~ s/\@INSTALL_LIST\@/$install_list/ if defined $install_list;
                        $tmp =~ s/\@UNINSTALL_LIST\@/$uninstall_list/ if defined $uninstall_list;