summaryrefslogtreecommitdiff
path: root/.Makefile.inc
diff options
context:
space:
mode:
authordanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2009-05-30 15:31:53 +0000
committerdanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2009-05-30 15:31:53 +0000
commitbc56f3dc975f4e3a3261cb16d8d7eec78553aade (patch)
treec9f3ae27d32c97a6cc1ac7860018ef2a410078cd /.Makefile.inc
parentfed2216d997d57c2931fd59946c6d48bc9544311 (diff)
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
Diffstat (limited to '.Makefile.inc')
-rw-r--r--.Makefile.inc66
1 files changed, 40 insertions, 26 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)