summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2006-04-03 14:57:48 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:15:53 -0500
commitb562459fbfdbfa25c774d631b48f1187fc3e15eb (patch)
treec08843ae2f46efbc63d95dc255fb663b70724894 /source
parent0f087fd40ad502513c3775587c07c86fc53bf718 (diff)
downloadsamba-b562459fbfdbfa25c774d631b48f1187fc3e15eb.tar.gz
samba-b562459fbfdbfa25c774d631b48f1187fc3e15eb.tar.xz
samba-b562459fbfdbfa25c774d631b48f1187fc3e15eb.zip
r14892: allow:
CC_CHECKER=mycheker make metze
Diffstat (limited to 'source')
-rw-r--r--source/Makefile.in11
1 files changed, 9 insertions, 2 deletions
diff --git a/source/Makefile.in b/source/Makefile.in
index f7aba689ff3..4d43fea7626 100644
--- a/source/Makefile.in
+++ b/source/Makefile.in
@@ -833,9 +833,12 @@ MAKEDIR = || exec false; \
.c.o:
@if (: >> $@ || : > $@) >/dev/null 2>&1; then rm -f $@; else \
dir=`echo $@ | sed 's,/[^/]*$$,,;s,^$$,.,'` $(MAKEDIR); fi
+ @if test -n "$(CC_CHECKER)"; then \
+ echo "Checking $*.c with '$(CC_CHECKER)'";\
+ $(CC_CHECKER) -I. -I$(srcdir) $(FLAGS) @PIE_CFLAGS@ -c $< -o $@;\
+ fi
@echo Compiling $*.c
- @$(CC) -I. -I$(srcdir) $(FLAGS) @PIE_CFLAGS@ -c $< \
- -o $@
+ @$(CC) -I. -I$(srcdir) $(FLAGS) @PIE_CFLAGS@ -c $< -o $@
@BROKEN_CC@ -mv `echo $@ | sed 's%^.*/%%g'` $@
# this adds support for precompiled headers. To use it, install a snapshot
@@ -883,6 +886,10 @@ smbd/build_options.c: include/config.h.in script/mkbuildoptions.awk
.c.@PICSUFFIX@:
@if (: >> $@ || : > $@) >/dev/null 2>&1; then rm -f $@; else \
dir=`echo $@ | sed 's,/[^/]*$$,,;s,^$$,.,'` $(MAKEDIR); fi
+ @if test -n "$(CC_CHECKER)"; then \
+ echo "Checking $*.c with '$(CC_CHECKER)' and @PICFLAGS@";\
+ $(CC_CHECKER) -I. -I$(srcdir) $(FLAGS) @PICFLAGS@ -c $< -o $*.@PICSUFFIX@;\
+ fi
@echo Compiling $*.c with @PICFLAGS@
@$(CC) -I. -I$(srcdir) $(FLAGS) @PICFLAGS@ -c $< -o $*.@PICSUFFIX@
@BROKEN_CC@ -mv `echo $@ | sed -e 's%^.*/%%g' -e 's%\.@PICSUFFIX@$$%.o%'` $@