From bc56f3dc975f4e3a3261cb16d8d7eec78553aade Mon Sep 17 00:00:00 2001 From: danieldg Date: Sat, 30 May 2009 15:31:53 +0000 Subject: Makefile updates: remove MAKEPROG/MAKEORDER 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 | 66 ++++++++++++++++++++++++++++++++++++----------------------- configure | 3 --- 2 files changed, 40 insertions(+), 29 deletions(-) diff --git a/.Makefile.inc b/.Makefile.inc index 92eb68090..1c5c77fb6 100644 --- a/.Makefile.inc +++ b/.Makefile.inc @@ -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) diff --git a/configure b/configure index 7d16af9a3..c67dc3fb7 100755 --- 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; -- cgit v1.2.3