git.samba.org
/
sfrench
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cdd6443
)
r14371: - make 'make CC_CHECKER=foo' possible
author
Stefan Metzmacher
<metze@samba.org>
Tue, 14 Mar 2006 12:53:56 +0000
(12:53 +0000)
committer
Gerald (Jerry) Carter
<jerry@samba.org>
Wed, 10 Oct 2007 18:57:15 +0000
(13:57 -0500)
can be used with sparse (http://www.kernel.org/git/?p=devel/sparse/sparse.git;a=summary)
or other C code analyzers.
metze
(This used to be commit
e616953159ad601414a09536adb21e4e8a294138
)
source4/main.mk
patch
|
blob
|
history
diff --git
a/source4/main.mk
b/source4/main.mk
index f66c5e3c66f7f17f62585eb65a9d558f4f71c972..a024a7f2a0988780428afc4159f162b7beb31549 100644
(file)
--- a/
source4/main.mk
+++ b/
source4/main.mk
@@
-327,6
+327,10
@@
unused_macros:
@$(CC) -MM -MG -MT $(<:.c=.o) -MF $@ $(CFLAGS) $<
.c.o:
+ @if test -n "$(CC_CHECKER)"; then \
+ echo Call \'$(CC_CHECKER)\' for $<; \
+ $(CC_CHECKER) `script/cflags.pl $@` $(CFLAGS) $(PICFLAG) -c $< -o $@; \
+ fi
@echo Compiling $<
@$(CC) `script/cflags.pl $@` $(CFLAGS) $(PICFLAG) -c $< -o $@