summaryrefslogtreecommitdiff
path: root/source3
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
commit41c4c103979248c18928fe9fbf5a59532d85ff4e (patch)
tree1e70926e393c68ca770089a87f82303d7a8a44d1 /source3
parent93386ba1cfc5aaaef73d143d2bae7c6c5725f7d8 (diff)
downloadsamba-41c4c103979248c18928fe9fbf5a59532d85ff4e.tar.gz
samba-41c4c103979248c18928fe9fbf5a59532d85ff4e.tar.bz2
samba-41c4c103979248c18928fe9fbf5a59532d85ff4e.zip
r14892: allow:
CC_CHECKER=mycheker make metze (This used to be commit b562459fbfdbfa25c774d631b48f1187fc3e15eb)
Diffstat (limited to 'source3')
-rw-r--r--source3/Makefile.in11
1 files changed, 9 insertions, 2 deletions
diff --git a/source3/Makefile.in b/source3/Makefile.in
index f7aba689ff..4d43fea762 100644
--- a/source3/Makefile.in
+++ b/source3/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%'` $@