diff options
author | danieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-06-01 01:26:23 +0000 |
---|---|---|
committer | danieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-06-01 01:26:23 +0000 |
commit | ad13d2293ae8b4353d8051abe63f063622ca623a (patch) | |
tree | 0b2bf9358ba63efbe5313e86f8302e55c6ec1f1d /.Makefile.inc | |
parent | 3954761f11af50ed33b88f1e6609bfa8a5dab750 (diff) |
Makefile updates: Allow run-cc wrapper to be disabled by "make V=1"
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11396 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to '.Makefile.inc')
-rw-r--r-- | .Makefile.inc | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/.Makefile.inc b/.Makefile.inc index 348051af9..1b2010e33 100644 --- a/.Makefile.inc +++ b/.Makefile.inc @@ -6,6 +6,8 @@ # Please do not edit unless you know what you're doing. # +COMPILE_ROOT = $(shell pwd) + ifdef D ifeq ("$(origin D)", "command line") NICEFLAGS = @DEVELOPER@ @@ -21,6 +23,8 @@ ifndef HEADER HEADER = std-header endif +NICEFLAGS += -I$(COMPILE_ROOT)/include + CC = @CC@ FLAGS = $(NICEFLAGS) -pedantic LDLIBS = @LDLIBS@ @@ -32,8 +36,16 @@ LAUNCHDPATH = "/System/Library/LaunchDaemons" LIBPATH = "@LIBRARY_DIR@" MODULES = @MODULES@ INSTMODE = 0755 -MAKEFLAGS += --no-print-directory -s -export FLAGS NICEFLAGS CC LDLIBS MODULES MODPATH LIBPATH INSTMODE +MAKEFLAGS += --no-print-directory + +ifdef V + RUNCC = $(CC) +else + MAKEFLAGS += --silent + RUNCC = $(COMPILE_ROOT)/make/run-cc.pl $(CC) +endif + +export COMPILE_ROOT RUNCC FLAGS NICEFLAGS CC LDLIBS MODULES MODPATH LIBPATH INSTMODE all: ircd mods finishmessage @@ -133,3 +145,4 @@ configureclean: distclean: modclean clean configureclean +.PHONY: all debug debug-header std-header ircd mods finishmessage install module clean modclean deinstall squeakyclean launchd_dir configureclean |